How to connect to a remote Jupyter notebook?

I usually use my browser to go to the server which shows the file tree with notebooks (like http://remote-host:8888/tree), and I select a notebook from there and work with it.

In this case, the URL to a notebook is like http://remote-host:8888/notebooks/xxx.ipynb.

Note that the notebook itself is truly remote, i.e. any changes are saved on the server, not locally inside PyCharm.

How can I connect to that remote notebook from PyCharm?
How can I get a list of available notebooks?
Looks like most of the posts here are about creating a new notebook inside PyCharm and run it on a remote server, not about actually using an already existing remote notebook, unless I'm missing something.

 

8 comments
Comment actions Permalink

Along these lines, also tried executing an ipynb from PyCharm via Remote Host since I cannot browse the filesystem associated with the remote server automatically.  PyCharm complains that the "Jupyter file is outside of the module" and will not let me execute it on the remote jupyter server

0
Comment actions Permalink

Thank you, that's exactly what I meant.

It would also be great to have a way to select a remote notebook from the remote file tree, the same way you do it in web interface when you connect to a remote Jupyter server in your browser.

0
Comment actions Permalink

Any updates on this issue?

0
Comment actions Permalink

While it's not possible to open notebook file directly from the remote host (at the moment), it's possible to configure the remote Jupyter server and run your code cells remotely. If you need that notebook stored on the remote host, you can also configure automatic deployment.

0
Comment actions Permalink

I've finally figured out how to run the cells on the remote server. However, in the code I need to access the remote resources on that server. When I check the pwd in the notebook, it lists the local directory. How do I set it up to access the remote resources?Some help would really be appreciated.

Btw, my deployment settings are already configured and working. The data I'm working with(saved on the remote server) is too large to fit on my local computer and is excluded from the deployment upload/download.

0

Please sign in to leave a comment.