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?
            Asked
            
        
        
            Active
            
        
            Viewed 2,018 times
        
    5
            
            
        - 
                    Were you able to figure this out? – tonyslowdown Dec 31 '15 at 17:34
- 
                    No. I have not yet resolved the issue – rambalachandran Jan 01 '16 at 03:10
- 
                    What do you think about setting up emacs and ein on the same server running the ipython notebook, and just ssh to it from your local machine using `ssh -X`? – tonyslowdown Jan 02 '16 at 07:19
2 Answers
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
 
    
    
        T P Saravanan
        
- 39
- 3
- 
                    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.
 
    
    
        Derick Anderson
        
- 21
- 1
