您的位置:首页 > 其它

设置Jupyter notebook默认工作目录

2020-01-14 19:26 513 查看

直接在Anaconda的配置文件jupyter_notebook_config.json中进行修改

代码一

{
"NotebookApp": {
"nbserver_extensions": {
"jupyterlab": true
},
"notebook_dir":"D:\practice\python_codes\jupyter",
}
}

报错一
json.decoder.JSONDecodeError: Invalid \escape: line 6 column 25 (char 114)

代码二

{
"NotebookApp": {
"nbserver_extensions": {
"jupyterlab": true
},
"notebook_dir":"D:\\practice\\python_codes\\jupyter",
}
}

报错二
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 7 column 5 (char 154)

代码三

{
"NotebookApp": {
"nbserver_extensions": {
"jupyterlab": true
},
"notebook_dir":"D:\\practice\\python_codes\\jupyter"
}
}

成功完成配置!

  • 点赞
  • 收藏
  • 分享
  • 文章举报
Seal_Wings 发布了44 篇原创文章 · 获赞 0 · 访问量 1099 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: