Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load an existing ipython notebook?

Tags:

python

ipython

I'm missing something really obvious here but I want to load an existing .ipynb file in my own ipython session. I've tried the following:

$ ipython dream.ipynb 
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/me/develop/deepdream/dream.ipynb in <module>()
     33     {
     34      "cell_type": "code",
---> 35      "collapsed": false,
     36      "input": [
     37       "# imports and basic notebook setup\n",

NameError: name 'false' is not defined

(Google's deepdream notebook) but the json syntax isn't good? I am using the ipython from Anaconda 2.3.0, python 3.4.0 and ipython qtconsole 3.2.0.

like image 572
user1561108 Avatar asked Jul 08 '15 12:07

user1561108


People also ask

How do I load an IPython notebook?

Double-click on the Jupyter Notebook desktop launcher (icon shows [IPy]) to start the Jupyter Notebook App. The notebook interface will appear in a new browser window or tab. A secondary terminal window (used only for error logging and for shut down) will be also opened.

How do I open an existing Jupyter Notebook?

You can open existing Jupyter Notebook files (. ipynb) in the Jupyter Notebook dashboard by clicking on the name of the file in the dashboard (e.g. filename. ipynb ).


1 Answers

You must start ipython notebook, otherwise ipython tries to execute dream.ipynb as though it were a file containing Python code:

ipython notebook dream.ipynb 
like image 71
unutbu Avatar answered Oct 12 '22 08:10

unutbu