Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter with Anaconda on Windows will not run cells

I'm trying to run Jupyter Notebook for Anaconda 2.3.0 (64-bit) on Windows 7 (64-bit), under Python 2.7.11. Jupyter is not displaying syntax highlighting and the notebook isn't connected to the kernel, but it's not clear why. I'm running on Chrome.

Small Edit: NotebookApp (from Windows CMD or from Anaconda command line) gives a "zmq message arrived on closed channel" message. I'm not clear if that's relevant.

Bigger Edit: Based on comments below, I set c.NotebookApp.port = 8889.

like image 892
JMarotta Avatar asked Feb 18 '16 16:02

JMarotta


People also ask

Why is my cell in Jupyter Notebook not running?

Jupyter doesn't load or doesn't work in the browserTry in another browser (e.g. if you normally use Firefox, try with Chrome). This helps pin down where the problem is. Try disabling any browser extensions and/or any Jupyter extensions you have installed. Some internet security software can interfere with Jupyter.

Why the output is not showing in Jupyter Notebook?

It is your expection that needs to be adapted. The Jupyter Notebook only shows what the last statement of a cell evaluates to. If you define a function, this does not evaluate to anything that could be displayed. So you can't see anything in the upper cell.


1 Answers

Looks like the standard port 8888 is not available/blocked. Try:

jupyter notebook --port=8889

You my try a different number for the port such as 8890, 8891etc.

like image 153
Mike Müller Avatar answered Oct 17 '22 01:10

Mike Müller