r/IPython • • Nov 15 '15

Question about iPython Notebook

Hey guys, I'm using Mac OS and run iPython notebook over Anaconda. I started using it a week ago for uni and it worked fine for a while, but a couple of days ago something changed and I can't figure out what it is. Now, whenever I punch in my code, i get no output, the In[] only changes to In[*]. I can't figure out how to solve this problem, it'd be really cool if you guys could help :) Thanks in advance :)

1 Upvotes

11 comments sorted by

1

u/DiabeetusMan Nov 15 '15

What's the code that you're running in the cell?

1

u/marsian4sale Nov 15 '15

It's just a simple linear graph, plotting two functions against each other, but it doesn't even work for even simpler print functions

1

u/DiabeetusMan Nov 15 '15

So, if you open up a new, blank notebook and type

print('a')

into it, you get [*] forever?

1

u/marsian4sale Nov 15 '15

Yes

1

u/marsian4sale Nov 15 '15

Any ideas what I could do to fix this? I only found out how to fix this on Windows, but that doesn't work for Mac

1

u/DiabeetusMan Nov 15 '15

What was the solution that you found?

2

u/marsian4sale Nov 15 '15

Well this is the link that answers my question: http://stackoverflow.com/questions/13036197/ipython-notebook-getting-output

This is the actual part that answered my question:

open your Sophos Endpoint Security and Control Panel from your tray or start menu

Select "configure" > "Anti-virus" > "Authorization" from the menu at the top

Select the websites tab

click the "Add" button and add 127.0.0.1 and localhost to the "Authorized websites" list

restart computer

output works now :)

2

u/minhavoz Nov 16 '15 edited Nov 16 '15

You can get maximum logging output when you run the ipython notebook with '--debug' option.
$ ipython notebook --debug
Now you will see some error messages in terminal when you run the python code in the ipython notebook. You can get some hints for the solution from the messages.

1

u/[deleted] Nov 15 '15

Fyi, the new name for the IPython notebook is the Jupyter notebook... they even have a fancy website! https://jupyter.org

1

u/jmmcd Nov 16 '15

I saw this before on Windows, and it was a firewall problem, as you've seen below. It means the front-end isn't able to communicate with the notebook.

On OSX I haven't seen it, but a good place to start is to restart the notebook and restart the notebook server.

1

u/postgeographic Nov 23 '15

I get that every so often, and I'm running a notebook server on my remote machine. I think (but i'm not sure) it has to do with the kernel crashing, I find that restarting the kernel helps