Tuesday, January 10, 2017

remote connection to ipython server

For deep learning to TitanX box:

On  Server:  home user project directory where you are running ipython:
 ipython3 notebook --no-browser --port=8080 or a port which has been port forwarded
If you get errors like module not found and you can access the module from 
the python CLI but not jupyter you are running the wrong install/version.
pip3 install for ipython3 and pip/ipython

On the remote laptop: 
ssh -N -f -L localhost:8888:localhost:8080 remote_user@remote_host
Browser: localhost:8888
if error: bind: Address already in use channel_setup_fwd_listener_tcpip: cannot listen to port: 8888 Could not request local forwarding.
run lsof to find which processes are using the port:
localhost:~ dc$ lsof -ti:8888

Then sudo kill -9 325 1764

No comments:

Post a Comment