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.
3 Answers 3
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
1 Comment
$ ipython notebook [TerminalIPythonApp] WARNING | File 'notebook' doesn't existYou 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.
Comments
It's better to use jupyter notebook dream.ipynb.
The ipython notebook command will be deprecated in the future.
ipythonwith Python'smultiprocessingmodule. Jupyter notebook and Visual Studio code are fine. More here: stackoverflow.com/q/77453594/315168