I have a remote Jupyter server on the port 9292
on the ip 192.168.10.92
.
I can tunnel this port no my http://localhost:9292/
through ssh:
ssh -L localhost:9292:localhost:9292 my.user@192.168.10.92
This enable me to connect to the remote Jupyter server using my local browser:
This also enable me to create, save, write and obviously run notebooks from the remote Jupyter server.
Now what I want is to be able to do the same things on my local Visual Studio Code. With this purpose I opened Visual Studio and run from the Command Palette (Ctrl+Shift+P
) Jupyter: Specify local or remote Jupyter server for connections
and I specified as URI http://localhost:9292
. This made me able to create new notebooks from my local Visual Studio and to run them on the remote server, exploiting its kernel and its resources (RAM, CPUs, GPU). The problem is that I have not found a way to read, save and create notebooks on the remote Jupyter server; if I try to save the notebook I have just create on visual studio, the "Save As" option just let me save it on my local workspace.
TO RESUME:
I just want to know if there is a way to have on my visual studio a sort of "navigator" that let me read and execute notebooks on the remote server with the remote Jupiter kernel.
PS:
Both server and local machine are Linux machines.
Any help will be appreciated.
Not sure whether this is the most elegant solution, but you can do that with VSCode extension: Remote - SSH.
Once you have that installed. To connect to your server and files open Command Palette via Ctrl + Shift + P
and run Remote-SSH: Connect to Host...
command.
It will open new window of VSCode connected to the server, and you should see your files through Explorer on the side panel.