3

I've installed Anaconda 2.5 w/Python 2.7. Upon launching jupyter (which is bundled in Anaconda), the python kernel isn't being detected.

The web server launches and listens on 8888. The browser notebook editor works fine. However, I can't run any python code. The "Cell" menu isn't appearing.

Is there a configuration file or something that needs to be installed?

Here's the output from the console:

[I 21:32:27.625 NotebookApp] Serving notebooks from local directory: C:\Users\smilesydney
[I 21:32:27.625 NotebookApp] **0 active kernels**
[I 21:32:27.625 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 21:32:27.627 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
cel
  • 30,017
  • 18
  • 97
  • 117
SmileSydney
  • 73
  • 1
  • 2
  • 4
  • You should start a kernel from http://localhost:8888/tree interface. You should see a 'New' dropdown menu (upper right area) and you should have, at least, the "Python 2" kernel there. – kikocorreoso Feb 28 '16 at 17:42
  • When you open or create a notebook, does it tell you that the kernel has died or anything? What browser are you using, and can you try in another one? – Thomas K Feb 28 '16 at 20:58
  • Thanks kikocorreoso - I had incorrectly assumed that one could open existing .py files and run them. But you actually need to create a notebook and then paste the code to execute into it. – SmileSydney Feb 29 '16 at 12:06

4 Answers4

4

The default port 8888 is blocked, I think. For single launch this should help:

jupyter notebook --port=8889

To fix that permanently run:

jupyter notebook --generate-config

Then go to ./anaconda/ directory and add

c = get_config()
c.NotebookApp.port = 8889

to file jupyter_notebook_config.py

1

I fixed that through upgrading the Jupyter in Anaconda.

See https://github.com/jupyter/notebook/issues/2382 for more details.

double-beep
  • 5,031
  • 17
  • 33
  • 41
PandaO
  • 86
  • 3
0

I had the same issue. Reinstalling ipython solved the problem.

Erik V
  • 375
  • 1
  • 4
  • 18
-1

Simply restart the jupyter notebook solved the problem for me.

If one restart doesn't help, restart it again.

Statham
  • 4,000
  • 2
  • 32
  • 45