Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied: Untitled.ipynb Windows 10 AWS Workspaces

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.

like image 606
J6303 Avatar asked Sep 03 '25 17:09

J6303


2 Answers

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.

like image 150
rogererens Avatar answered Sep 07 '25 19:09

rogererens


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.

like image 38
entpnerd Avatar answered Sep 07 '25 17:09

entpnerd