Use ein (emacs ipython notebook) on the remote server

I 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 laptops on a remote server and run them from the inside. Is this possible, and if someone told me how to do this?

+4
source share
2 answers
Mx ein:notebooklist-open <enter> 

ein asks

 URL or port number (default 8888): 

At this point, enter the full HTTP URL where the ipython server is running, for example.

 http://192.168.1.7:8888 

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

 ipython notebook --ip="*" 

) E.g. Cm. .

0
source

I had the same problem as ein disconnecting.

I solved this by creating an 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 localhost: 8888 by default.

Then, as I recall, I needed to tell the laptop server to bind to all IP addresses (and not just to the local host). There are some potential security issues, so make sure you have authentication and / or setting up the appropriate firewall.

0
source

All Articles