cool_kid
cool_kid

Reputation: 347

Why my code does'nt execute on ipython notebook?

I am totally new to jupyter notebook and I was trying to run a simple code and its not working.enter image description here

I typed print (1) and hit ctrl + enter, and then that asterisk mark appeared and thats pretty much it. there is a blinking "connected" in the console as well.

Command window looks like this: enter image description here

Any tip regarding this would be highly appreciated. Thank you

Upvotes: 4

Views: 4445

Answers (3)

I had the same issue and changing the host port didn't solve anything. I finally had to uninstalled the jupyter network package. I installed it has well through "pip install", I'd suggest to uninstall it as well using and only reinstalling it with the following through conda:

conda uninstall jupyter notebook 
pip uninstall jupyter 
pip3 uninstall jupyter
conda install jupyter notebook

Upvotes: 2

kwant
kwant

Reputation: 248

using Jupyter on a VM, this was also for me the solution. Additionally, you can create a config file with:

jupyter notebook --generate-config

and search In your jupyter_notebook_config.py file for c.NotebookApp.port = 8888 (and change the port to 8889)

so you don't have to manually add the port every time jupyter is called.

Upvotes: 3

cool_kid
cool_kid

Reputation: 347

yes, as Teemo pointed out all I had to do was use this,

C:\Python27\Scripts>jupyter notebook --port=8889

instead of,

C:\Python27\Scripts>jupyter notebook.

port 8889 , worked like a charm :)

Upvotes: 5

Related Questions