20

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.

asked Jul 8, 2015 at 12:30
1
  • 2024 update: This happens for me if I try to use ipython with Python's multiprocessing module. Jupyter notebook and Visual Studio code are fine. More here: stackoverflow.com/q/77453594/315168 Commented Mar 3, 2024 at 23:13

3 Answers 3

33

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 
answered Jul 8, 2015 at 12:33
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, but doesn't work. Error message not helpful to me. Don't have time to debug. $ ipython notebook [TerminalIPythonApp] WARNING | File 'notebook' doesn't exist
2

You should try to launch an ipython notebook server via ipython notebook, i.e. specifically this command and not the name of the notebook, and to simply load the specific notebook from your webbrowser.

Harsh
3902 gold badges3 silver badges18 bronze badges
answered Jul 8, 2015 at 12:33

Comments

1

It's better to use jupyter notebook dream.ipynb.

The ipython notebook command will be deprecated in the future.

answered May 23, 2016 at 13:23

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.