Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use remote interpreter with jupyter notebook on pycharm 2018.1

In official documentation, it is explained how to use remote interpreter for jupyter notebook on pycharm 2018.1.

https://www.jetbrains.com/help/pycharm/ipython-notebook-support.html

It's said to choose Remote radio-button, which is not present there, and event not in the screenshot in the documentation itself.

Am I missing smth?

like image 351
Juri Krainjukov Avatar asked Mar 30 '18 12:03

Juri Krainjukov


People also ask

How do I add Jupyter interpreter to PyCharm?

Install Jupyter by selecting PyCharm >> Preferences >> Project Interpreter, then click the “+” button to add new packages.

How do I connect to a remote server with PyCharm?

Connect to a remote server and open the remote project Ensure you have the Remote Development Gateway plugin enabled. On the PyCharm welcome screen, select Remote Development. In the Run the IDE Remotely section, click Connect via SSH.

Can I use Jupyter notebook in PyCharm community?

Jupyter notebook preview in PyCharm Community Unlike PyCharm Professional and DataSpell, PyCharm Community users can preview Jupyter notebooks in read-only mode. Once a notebook is opened, you can view all of its cells with both input and outputs. Editing and cell execution are not allowed.


Video Answer


1 Answers

The documentation seems to be outdated, I created a ticket to fix it PY-29289.

Remote notebook support requires clarification: PyCharm doesn't support running notebooks with remote interpreters: PY-26328. But it supports a connection to Jupyter notebook or Jupyterhub server running on the remote machine: PY-14605. The latter requires:

  • a running notebook server or jupyterhub on the remote machine
  • correct credentials setup as covered by the existed documentation

Remote interpreter, in this case, is only required for a proper code highlighting and inspections. Theoretically one can skip it completely.

Current documentation lacks a good complete setup guide, I created an internal ticket for documentation team to rewrite the corresponding page. Meanwhile, I found the notebook server documentation to be a good step-by-step reference for remote machine configuration if you are interested in this approach.

like image 172
Pavel Karateev Avatar answered Sep 27 '22 21:09

Pavel Karateev