Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm Jupyter notebook : Add Jupyter to the interpreter of the current project

I have a new project in PyCharm under it the project, I create a jupyter notebook but when I run it I keep getting this error

Add Jupyter to the interpreter of the current project.

I cant figure out what to do, I have reset the

Project Interpretor But no use

like image 978
Ayan Mitra Avatar asked Jul 09 '17 16:07

Ayan Mitra


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 add Jupyter to my path?

1. Change Jupyter Notebook startup folder (Windows) Copy the Jupyter Notebook launcher from the menu to the desktop. Right click on the new launcher and change the Target field , change %USERPROFILE% to the full path of the folder which will contain all the notebooks.

How do you select an interpreter in Jupyter Notebook?

Setting up your environment To work with Python in Jupyter Notebooks, you must activate an Anaconda environment in VS Code, or another Python environment in which you've installed the Jupyter package. To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P).

How do you add a new code cell below an existing cell?

While the default cell type for new cells is Code, you can change the cell type of any existing cell by clicking in the cell and selecting a new cell type (e.g. Markdown ) in the cell type menu in the toolbar.


1 Answers

You need to install jupyter for the project interpreter or the virtualenv that you use:

pip install jupyter

PyCharm support for the Jupyter Notebook is shaky IMO. You will probably need to restart it, and respond to dialog windows trying to connect to the default Notebook server location, localhost:8888. On my machine, canceling that request to connect strangely helps to finally see the output of the cells within PyCharm.

like image 183
Alex Bausk Avatar answered Nov 10 '22 05:11

Alex Bausk