Can not create a "notebook" using ipython Notebook
Solution 1
The answer kindly provided by @Jakob in the comments above did the trick:
"Can you try switching to C:\Users\Stuart\Documents\iPython in the terminal before starting the notebook?"
Solution 2
I just experienced the same problem. I even erased all the untitled.ipynb files in the directory. Then I realized that I had other copies of Anaconda terminal open. When I closed them and tried again, things went back to normal.
Solution 3
Just change the directory where are run your iPython notebook. For make it, you right-click on the shortcut and edit properties. In this properties, a field named "run directory" or something like that. Put your link in this field.
s666
Updated on June 28, 2022Comments
-
s666 almost 2 years
I have recently installed ipython using Enthought's EPD python install - and when starting the iPython HTML notebook from the command prompt by typing:
ipython notebook --pylab=inline
I manage to get the localhost browser notebook screen pop up correctly.
However when I try to create a new notebook by clicking "New Notebook" I get the following error message:
"Creating Notebook Failed The error was: Unexpected error while autosaving notebook: C:\Windows\System32\Untitled0.ipynb [Errno 17] No usable temporary file name found"
I am assuming this i sbecause I may not have write privilege for that particular drive. So I have tried to go into the "ipython_notebook_config.py" file and change the following:
# The directory to use for notebooks and kernels. c.NotebookApp.notebook_dir = u'C:\Users\Stuart\Documents\iPython'
and
c.FileNotebookManager.notebook_dir = u'C:\Users\Stuart\Documents\iPython'
I have then closed down all the cmd windows and started the ipython notebook agaion. But when I click on "New Notebook" I get the same error message as before:
"Creating Notebook Failed The error was: Unexpected error while autosaving notebook: C:\Windows\System32\Untitled0.ipynb [Errno 17] No usable temporary file name found"
Could someone please help me as to how I can get this working? Any help very much appreciated.
-
Jakob over 9 yearsCan you try switching to
C:\Users\Stuart\Documents\iPython
in the terminal before starting the notebook? Btw. it is recommended not to use--pylab inline
see here why. -
s666 over 9 yearsChanging the directory in the CMD before launching the notebook worked - I am now able to create Notebooks as normal. Thank you very much for your help. I tried to read the additional info your linked to - unfortunately I am a complete novice and it didn't really mean much to me. Maybe one day I'll understand! But thanks for your help with this, much appreciated!!!
-
-
Escachator about 9 yearsIn which shortcut? Can you please be more specific? Thanks!