[IPython-User] Error creating a new IPython notebook

Matthias BUSSONNIER bussonniermatthias@gmail....
Mon Nov 5 15:44:13 CST 2012


Le 5 nov. 2012 à 22:29, Jeffrey Roberts a écrit :

> Hello,
> 
> I am a Python newbie who is excited about using IPython notebook but can't seem to get it installed properly. I downloaded and installed EPD Free 7.3. I've worked through a couple of examples in West McKinney's book "Python for Data Analysis" so I know that IPython works via the console.
> 
> At the command prompt, I typed ipython notebook --pylab=inline. A notebook tab appears in my browser (I'm using the latest version of Firefox in Windows Vista, also tried it on my laptop in Windows 7). When I click "Create Notebook" I get "500: Internal Server Error."  The error message that appears in the command prompt is copied below.
> 
> Thanks for any advice on how to get ipython notebook set up.

Hi Jeff, 

I'm neither a windows nor EPD User, But it seem that you don't have permission to write on C:\ directly. 

I suggest you start the notebook with the 
--notebook-dir=\your\favorite\path\where\you\can\write.
(maybe with leading C:\ and maybe double \ I'm not quite sure for windows) 
It should accept new notebook creation then.

Eventually, you can `cd` into the directory where you want to start the notebook, the default directory should be the current one, I don't know if EPD have change the default.

You can of course use --notebook-dir=... to start the notebook in one of the example directory (e.g.  [ipython-dir]/docs/examples/notebook) 
and you can also set it permanently in your profile.

Hope this help, keep us posted of your progress.
-- 
Matthias




> 
> Jeff  
> 
> 
> 
> C:\>ipython notebook --pylab=inline
> [NotebookApp] Using existing profile dir: u'C:\\Users\\Jeff\\.ipython\\profile_d
> efault'
> [NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888
> [NotebookApp] Use Control-C to stop this server and shut down all kernels.
> ERROR:root:Uncaught exception GET /new (127.0.0.1)
> HTTPRequest(protocol='http', host='127.0.0.1:8888', method='GET', uri='/new', ve
> rsion='HTTP/1.1', remote_ip='127.0.0.1', body='', headers={'Connection': 'keep-a
> live', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate',
> 'Referer': 'http://127.0.0.1:8888/', 'Host': '127.0.0.1:8888', 'Accept': 'text/h
> tml,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozil
> la/5.0 (Windows NT 6.0; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0'})
> Traceback (most recent call last):
>   File "C:\Python27\lib\site-packages\tornado\web.py", line 988, in _execute
>     getattr(self, self.request.method.lower())(*args, **kwargs)
>   File "C:\Python27\lib\site-packages\tornado\web.py", line 1739, in wrapper
>     return method(self, *args, **kwargs)
>   File "C:\Python27\lib\site-packages\IPython\frontend\html\notebook\handlers.py
> ", line 245, in get
>     notebook_id = nbm.new_notebook()
>   File "C:\Python27\lib\site-packages\IPython\frontend\html\notebook\notebookman
> ager.py", line 253, in new_notebook
>     with open(path,'w') as f:
> IOError: [Errno 13] Permission denied: u'C:\\Untitled0.ipynb'
> ERROR:root:500 GET /new (127.0.0.1) 8.00ms
> ERROR:root:Uncaught exception GET /new (127.0.0.1)
> HTTPRequest(protocol='http', host='127.0.0.1:8888', method='GET', uri='/new', ve
> rsion='HTTP/1.1', remote_ip='127.0.0.1', body='', headers={'Connection': 'keep-a
> live', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate',
> 'Referer': 'http://127.0.0.1:8888/', 'Host': '127.0.0.1:8888', 'Accept': 'text/h
> tml,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozil
> la/5.0 (Windows NT 6.0; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0'})
> Traceback (most recent call last):
>   File "C:\Python27\lib\site-packages\tornado\web.py", line 988, in _execute
>     getattr(self, self.request.method.lower())(*args, **kwargs)
>   File "C:\Python27\lib\site-packages\tornado\web.py", line 1739, in wrapper
>     return method(self, *args, **kwargs)
>   File "C:\Python27\lib\site-packages\IPython\frontend\html\notebook\handlers.py
> ", line 245, in get
>     notebook_id = nbm.new_notebook()
>   File "C:\Python27\lib\site-packages\IPython\frontend\html\notebook\notebookman
> ager.py", line 253, in new_notebook
>     with open(path,'w') as f:
> IOError: [Errno 13] Permission denied: u'C:\\Untitled0.ipynb'
> ERROR:root:500 GET /new (127.0.0.1) 5.00ms
> 
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user



More information about the IPython-User mailing list