PyCharm 4.0 - How to start ipython notebook server?

Hi -

I am trying to figure out how I can set up PyCharm to start the ipython notebook server - I can't make it a python run command, since it needs to be 'ipython notebook', and a bash command ignores my virtualenv.  Am I missing the right way to set up a command to start up the ipython notebook?

When I open a .ipynb file and click 'run' it asks for a host/port, and then says 'connection refused', so I am assuming I need to start up the server first.  Obviously I could do that by hand in a shell window...but it seems like there should be a way to do it from inside PyCharm?

Thanks!

Tim
6 comments
Comment actions Permalink
Hi,

I have the same problem - first test drive with PyCharm4 and .ipynb.

If you believe the documentation, we are doing nothing wrong and this should work by just starting a server and running your cell:

https://www.jetbrains.com/pycharm/webhelp/running-ipython-notebook-cells.html

Could not find a youtrack issue yet, but will check back tomorrow, as I am quite excited about notebook support and want it to mature as quickly as possible :)

Cheers
Oliver
0
Comment actions Permalink
When I have a notebook server running from a terminal, and I choose a URL in PyCharm that matches, I get a connection refused error.

When I do not have a notebook server running, I can attempt running cells all day, and supply whatever URL I want, and nothing happens. I still see "In [*]:" no matter how simple the execution ought to be.
0
Comment actions Permalink
I'm testing a demo version of Pycharm 4 on Mac Yosemite and I can't get the iPython Notebook server to run either. I get the "IPython Notebook connection refused" message. This message appears whether I first start the IPython Notebook in the terminal or try and start it by executing code in Pycharm. I have tried disabling all firewall settings; doesn't help.

This is potentially a great feature and I would love to see it work.
0
Comment actions Permalink
Hi,

I checked and did not find a bug about this, so I opened https://youtrack.jetbrains.com/issue/PY-14494

Cheers
Oliver
0
Comment actions Permalink
Hi, i had same problem before, So i solved this problem by updating ipython to newest version. By default, my Linux Mint 17 repository  have old version of ipython (1.2) we need (2.1 and later), i download it from ipython cite and install manually - now it works fine!
0
Comment actions Permalink
I'm still having this issue with ipython 3 in both 27 and 34. Mac running Yosemite. Can load notebook that I've been running elsewhere, but connection is refused when I try to run it in pycharm.
0

Please sign in to leave a comment.