5

I have installed and configured ein (emacs ipython notebook) to work on my local linux/mac machines. However, I would like to use ein to open ipython notebooks on a remote server and run them from within ein. Is this possible and if so could someone tell me how can this be done?

rambalachandran
  • 2,091
  • 2
  • 19
  • 34

2 Answers2

3
M-x ein:notebooklist-open <enter>

ein prompts back with

URL or port number (default 8888):

At this point enter the full HTTP-URL of where ipython-server is running e.g.

http://192.168.1.7:8888

(On the ipython server side -- by default it runs only on localhost:8888 . You should have started it with something like:

ipython notebook --ip="*"

). For e.g. See this.

Community
  • 1
  • 1
  • That's actually not the problem. The problem is, that ein seems to loose connection immediately after opening a notebook. At least for me that was the problem. – Plankalkül Jun 23 '16 at 11:57
2

I had the same issue with ein disconnecting immediately.

I solved it by creating a SSH tunnel from port 8888 on my local machine to port 8888 on the remote machine. Then, when ein asks where to connect just accept the default localhost:8888.

I then needed to, as I recall, tell the notebook server to bind on all IP addresses (not just localhost). There are some potential security concerns with that, so make sure that you've got authentication and/or a proper firewall set up.