我从anaconda-navigator打开了jupyter实验室。尽管对我来说一切正常,但错误消息不断出现在我的终端上。
错误消息:
window.addEventListener('DOMContentLoaded', () => {
const replaceText = (selector, text) => {
const element = document.getElementById(selector)
if (element)
element.innerText = text
}
for (const type of ['chrome', 'node', 'electron']) {
replaceText(`${type}-version`, process.versions[type])
}
const remote = require('electron').remote;
const app = remote.app;
const fs = require('fs');
var dialog = remote.dialog;
var filetoupdate = './configuration/config.json'
readFile(filetoupdate);
document.getElementById('save-changes').addEventListener('click', function () {
console.log('save-file');
saveChanges(filetoupdate);
}, false);
function readFile(filepath) {
console.log('readFile ..');
fs.readFile(filepath, 'utf-8', function (err, data) {
if (err) {
alert("An error ocurred reading the file :" + err.message);
return;
}
document.getElementById("content-editor").value = data;
});
}
function saveChanges(filepath, content) {
var content = document.getElementById("content-editor").value;
console.log('ssavechanged ..');
console.log(filepath);
console.log(content);
fs.writeFile(filepath, content, function (err) {
if (err) {
alert("An error ocurred updating the file" + err.message);
console.log(err);
return;
}
alert("The file has been succesfully saved");
});
}})
我正在研究:
Ubuntu 18.04
anaconda命令行客户端(版本1.7.2)
anaconda导航器(1.91.12版)