I have used Jupyter notebooks for some time now without any problems. However I use IntelliJ for pretty much all my programming and wanted to try out moving my ipython workflow into IntelliJ. I followed the instructions provided here and everything seems to work fine except when I go to run a cell it keeps trying to start the kernel even though the kernel should already be running.
I can use the kernel in Jupyter like normal when I follow the link, but I can not use it from IntelliJ.
IPython is available on your computer with Anaconda. The corresponding Conda environment is set as the default interpreter for the current project. Once you set a Conda environment as a Python interpreter, PyCharm automatically recognizes IPython, and changes the prompt of the Python console. From the main menu, select Tools | Python Console.
Once you set a Conda environment as a Python interpreter, PyCharm automatically recognizes IPython, and changes the prompt of the Python console. Use the magic commands of IPython From the main menu, select Tools | Python Console. If IPython has been properly installed, PyCharm will report about the version used.
In PyCharm you are not limited to using just any single Python interpreter. You are able to implement several and in doing so choose which interpreter you wish to use for any specific project. PyCharm supports: Standard Python interpreters (see the Supported versions)
The IPython kernel is the Python execution backend for Jupyter. The Jupyter Notebook and other frontends automatically ensure that the IPython kernel is available. However, if you want to use a kernel with a different version of Python, or in a virtualenv or conda environment, you’ll need to install that manually. Kernels for Python 2 and 3 ¶
To make it work you should select a right interpreter in Project Settings. Seems like jupyter is installed on your system interpreter. Meanwhile it is recommended to use venv with pycharm(and python in general). If you created venv than you need to select python interpreter from that venv and it should do the job.
I got in touch with Jetbrains support and they told me this was a known issue with their Jupyter integration. However the latest version of the python plugin for IntelliJ seems to have fixed the issue.
https://youtrack.jetbrains.com/issue/PY-22032
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With