Jupyter is not able to save, create (I imagene delete) any file type. But I can load them fine
Creating File Failed An error occurred while creating anew file.
''' Unexpected error while saving file: untitled.txt [Errno 2] No such file or directory: 'C:\Users\me\Documents\jupyter_notebooks\untitled.txt' '''
C:\WINDOWS\system32>jupyter notebook
[I 17:15:51.888 NotebookApp] JupyterLab beta preview extension loaded from c:\users\me\appdata\local\programs\python\python35\lib\site-packages\jupyterlab
[I 17:15:51.888 NotebookApp] JupyterLab application directory is c:\users\me\appdata\local\programs\python\python35\share\jupyter\lab
[I 17:15:52.091 NotebookApp] Serving notebooks from local directory: C:\Users\me\Documents\jupyter_notebooks
[I 17:15:52.091 NotebookApp] 0 active kernels
[I 17:15:52.091 NotebookApp] The Jupyter Notebook is running at:
[I 17:15:52.091 NotebookApp] http://localhost:8888/?token=*******************************01d1a67a61
[I 17:15:52.091 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:15:52.127 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=*******************************01d1a67a61
[I 17:15:52.472 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 17:16:01.628 NotebookApp] Kernel started: 77255bad-ad7a-4714-8221-1dd90a3a34b5
[W 17:16:11.656 NotebookApp] Timeout waiting for kernel_info reply from 77255bad-ad7a-4714-8221-1dd90a3a34b5
[I 17:16:25.646 NotebookApp] Adapting to protocol v5.0 for kernel 77255bad-ad7a-4714-8221-1dd90a3a34b5
[I 17:16:26.160 NotebookApp] Saving file at /jupyter_jupyter_lab.ipynb
[E 17:16:26.543 NotebookApp] Error while saving file: jupyter_jupyter_lab.ipynb [Errno 2] No such file or directory: 'C:\\Users\\me\\Documents\\jupyter_notebooks\\.~jupyter_jupyter_lab.ipynb'
Tried: Still the same problem
I double checked the folder location and it matches
C:\Users\me\Documents\jupyter_notebooks
I also tried: It install and runs, able to open and read but no changes allowed
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
~ https://stackoverflow.com/a/42667069/6202092
System:
Possible contributing factors: Made some system changes two days ago, and since the problem started. I believe is a permission issue. I recall deselecting a "permissions check box" for executing scripts. but it only seemed to affect Jupyter
Not acceptable solutions:
"Try Anaconda", "Reinstall windows" - the system was working fine and continues to work, with the exception of Jupyter enability to make changes
Thank you in advance
~eb
I am the author of the question...
The problem was a permissions issue, as I mentioned earlier, I did modify the system and could not remember what I had done to prevent Jupyter Notebook from working as before. I spent the better part of three days researching the problem and could not find an answer, in frustration, today I posted the problem. And with the comments and suggestion from a couple of the users I was able to take a better look at the problem and try a few different approaches.
I had enabled a feature in "Windows Defender Security Center" that prevented Jupyter from working as before, preventing me from running Notebooks
in different locations, more specifically the "Documents" folder.
Should this happen to you:
This was the "global" solution I was looking for
That should fix a similar problem
~ eb
if your OS is Windows10, may you have to flow this
As Enrique Bruzual mentioned above, this behavior can be caused by having "Controlled folder access" enabled in the Windows Defender Security Center. Disabling it fixes the issue.
If you'd like to leave "Controlled folder access" enabled, follow Enrique's steps 1-3, which I have quoted here.
- Go to "Windows Defender Security Center"
- Scroll & Click on "Virus & threat protection settings"
- Scroll down to "Controlled folder access"
Then:
You have to add the files one at a time, so it will take a bunch of clicking. I was able to save my jupyter notebooks without issue after doing this.
NOTE: If you have both Python 2 and 3 installed, you must do this for each Python installation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With