ubuntu中运行jupyter notebook创建Python文件的时候报错
2017-04-29 16:06
1311 查看
创建Python文件的时候遇到下面的错误:
Creating Notebook Failed
An error occurred while creating a new notebook.
Unexpected error while saving file: arma/Untitled.ipynb [Errno 13] Permission denied: ‘/home/wang/.local/share/jupyter/notebook_secret’
解决方案:
修改文件权限:
(my_env) wang@ubuntu:~sudochmod+777.local/share/jupyter/(myenv)wang@ubuntu: cd .local/share/jupyter/
(my_env) wang@ubuntu:~/.local/share/jupyterlsruntime(myenv)wang@ubuntu: /.local/share/jupyter sudo chmod +777 runtime/
(my_env) wang@ubuntu:~/.local/share/jupytercdruntime/(myenv)wang@ubuntu: /.local/share/jupyter/runtime ls
notebook_cookie_secret
(my_env) wang@ubuntu:~/.local/share/jupyter/runtimesudovinotebookcookiesecret(myenv)wang@ubuntu: /.local/share/jupyter/runtime ls
notebook_cookie_secret
(my_env) wang@ubuntu:~/.local/share/jupyter/runtimecd/home/wpython/(myenv)wang@ubuntu:/home/wpython ls
arma blog learn learn2 learning_log PycharmProjects
重新启动jupyter notebook 即可;
(my_env) wang@ubuntu:~/.local/share/jupyter/runtimelsnotebookcookiesecret(myenv)wang@ubuntu: /.local/share/jupyter/runtime cd /home/wpython/
(my_env) wang@ubuntu:/home/wpythonlsarmabloglearnlearn2learninglogPycharmProjects(myenv)wang@ubuntu:/home/wpython jupyter notebook
[I 15:57:54.731 NotebookApp] Serving notebooks from local directory: /home/wpython
[I 15:57:54.732 NotebookApp] 0 active kernels
[I 15:57:54.732 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=487d99c93782f3dab2319c50d2a156ea32f4fabd424bf84e
[I 15:57:54.732 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:57:54.737 NotebookApp]
已在现有的浏览器会话中创建新的窗口。
[I 15:58:17.945 NotebookApp] 302 GET /?token=487d99c93782f3dab2319c50d2a156ea32f4fabd424bf84e (127.0.0.1) 1.40ms
[I 15:58:38.839 NotebookApp] Creating new notebook in /arma
[I 15:58:38.845 NotebookApp] Writing notebook-signing key to /home/wang/.local/share/jupyter/notebook_secret
[I 15:58:40.769 NotebookApp] Kernel started: 4ff8f979-8a16-4cce-b05c-c2a51c448dc6
[I 16:00:40.584 NotebookApp] Saving file at /arma/Untitled.ipynb
Creating Notebook Failed
An error occurred while creating a new notebook.
Unexpected error while saving file: arma/Untitled.ipynb [Errno 13] Permission denied: ‘/home/wang/.local/share/jupyter/notebook_secret’
解决方案:
修改文件权限:
(my_env) wang@ubuntu:~sudochmod+777.local/share/jupyter/(myenv)wang@ubuntu: cd .local/share/jupyter/
(my_env) wang@ubuntu:~/.local/share/jupyterlsruntime(myenv)wang@ubuntu: /.local/share/jupyter sudo chmod +777 runtime/
(my_env) wang@ubuntu:~/.local/share/jupytercdruntime/(myenv)wang@ubuntu: /.local/share/jupyter/runtime ls
notebook_cookie_secret
(my_env) wang@ubuntu:~/.local/share/jupyter/runtimesudovinotebookcookiesecret(myenv)wang@ubuntu: /.local/share/jupyter/runtime ls
notebook_cookie_secret
(my_env) wang@ubuntu:~/.local/share/jupyter/runtimecd/home/wpython/(myenv)wang@ubuntu:/home/wpython ls
arma blog learn learn2 learning_log PycharmProjects
重新启动jupyter notebook 即可;
(my_env) wang@ubuntu:~/.local/share/jupyter/runtimelsnotebookcookiesecret(myenv)wang@ubuntu: /.local/share/jupyter/runtime cd /home/wpython/
(my_env) wang@ubuntu:/home/wpythonlsarmabloglearnlearn2learninglogPycharmProjects(myenv)wang@ubuntu:/home/wpython jupyter notebook
[I 15:57:54.731 NotebookApp] Serving notebooks from local directory: /home/wpython
[I 15:57:54.732 NotebookApp] 0 active kernels
[I 15:57:54.732 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=487d99c93782f3dab2319c50d2a156ea32f4fabd424bf84e
[I 15:57:54.732 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:57:54.737 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time, to login with a token: http://localhost:8888/?token=487d99c93782f3dab2319c50d2a156ea32f4fabd424bf84e
已在现有的浏览器会话中创建新的窗口。
[I 15:58:17.945 NotebookApp] 302 GET /?token=487d99c93782f3dab2319c50d2a156ea32f4fabd424bf84e (127.0.0.1) 1.40ms
[I 15:58:38.839 NotebookApp] Creating new notebook in /arma
[I 15:58:38.845 NotebookApp] Writing notebook-signing key to /home/wang/.local/share/jupyter/notebook_secret
[I 15:58:40.769 NotebookApp] Kernel started: 4ff8f979-8a16-4cce-b05c-c2a51c448dc6
[I 16:00:40.584 NotebookApp] Saving file at /arma/Untitled.ipynb
相关文章推荐
- Ubuntu16.04部署python2和python3共存的Jupyter Notebook
- 用Docker在Ubuntu下 设置一个完整的Python + TensorFlow + GPU support + jupyter notebook + Deep Learning 开发环境
- Ubuntu16.04部署python2和python3共存的Jupyter Notebook
- Python: linux Ubuntu 16.04 下Jupyter notebook改变默认目录路径
- Windows下配置jupyter notebook的python3与R运行环境
- ubuntu设置jupyter notebook默认浏览器为chrome(谷歌浏览器)
- Python开发笔记之一——安装Jupyter Notebook
- Python·Jupyter Notebook各种使用方法记录·持续更新
- 跟我一起学python第二讲 开发工具Jupyter Notebook安装和远程访问设置
- 解决vs2013下创建的python文件,到其他平台(如linux)下中文乱码(或运行时报SyntaxError: (unicode error) 'utf-8' codec can't decode byte...)
- IPython notebook(Jupyter notebook)指定IP和端口运行
- ubuntu安装 Jupyter notebook 显示错误: ImportError: No module named 'pysqlite2'
- Python,Jupyter Notebook,IPython快速安装教程
- 在阿里云ECS云端运行Jupyter Notebook
- Ubuntu 14.04上安装和启动Jupyter Notebook
- 关于Github中的jupyter notebook文件(.ipynb)加载失败的解决方法
- 打开ipynb文件——Jupyter Notebook——怎么设置路径
- jupyter notebook 添加python3 kernel
- 在windows中打开ipynb文件 ipython notebook jupyter
- ubuntu配置spyder和jupyter notebook的工作目录