Permission denied: Untitled.ipynb Windows 10 AWS Workspaces

為{幸葍}努か 提交于 2020-01-24 18:52:31

问题


I have installed anaconda Python 2.7 on my AWS workspace with Windows 10 and I launch Jupyter Notebook from the anaconda command prompt. When I try to create a new notebook, I have an error: [I 20:20:23.697 NotebookApp] Creating new notebook in [W 20:20:23.795 NotebookApp] 403 POST /api/contents (::1): Permission denied: Untitled.ipynb [W 20:20:23.796 NotebookApp] Permission denied: Untitled.ipynb

Could you please help? I have tried to look for a solution but it is not clear what needs to be done for Windows 10.


回答1:


You should just need to ensure that you (or more specifically the user running the program) has write-permissions on the folder where the new file Untitled.ipynb is being created. See this page on changing Windows 10 folder permissions for details.




回答2:


I'm not using AWS, but maybe this can help:

When I launched

jupyter notebook

from the anaconda command prompt, while starting up one of the first lines in the log in that command prompt window said:

[I <some timestamp> NotebookApp] Serving notebooks from local directory: C:\

Unfortunately, I don't have permissions to write into the C:\ directory.

So I generated a configuration file

jupyter notebook --generate-config

that ended up as jupyter_notebook_config.py in

%USERPROFILE%\.jupyter

Use

jupyter --paths

to see which directories your Jupyter on AWS is searching for config files.

Finally, in that config file there is a line you can comment out and point to the directory that should contain your notebooks (and kernels):

## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = ''

Of course, make sure the directory that you mention on that line is actually (created and) writeable by you.



来源:https://stackoverflow.com/questions/54833906/permission-denied-untitled-ipynb-windows-10-aws-workspaces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!