Why is Jupyter not enabled for in-Pycharm execution?
In Pycharm Professional 2019, options to run cells,whether in the menu or in the margin, are not available. I can, however, run a Jupyter server. How do I enable in-Pycharm execution?

Please sign in to leave a comment.
Hello,
Do you see any background processes running? Should be at the bottom of the editor view. It might be disabled due to the indexing process running.
Please consider updating the IDE to 2021.1 which is the latest version.
There are no background processes running. (This was true before, but I have now retried, double checking.)
I upgraded to Pycharm Professional 2021.1.1. The in-Pycharm options for running the Notebook are still disabled. Also, the Notebook is read-only in Pycharm. (I checked the filesystem; write-permissions exist.)
Interestingly, the Notebook server still runs (though now I have to start it by hand rather than automatically), and if I edit the Notebook in the browser, the original Notebook correctly is changed.
Please upload your logs folder zipped from ***Help | Collect logs and Diagnostic Data*** to the FTP
https://uploads.jetbrains.com/ and please let me know the filename.
Upload id: 2021_05_14_WyKbaaAMJs6g5fPe
(file: pycharm-logs-20210514-133648.zip)
The Notebook is this https://github.com/GoogleCloudPlatform/ai-platform-samples/blob/master/ai-platform-unified/notebooks/official/custom/gapic-custom-image-classification-online.ipynb
Thank you!
Could you please open the Python Packages view (at the bottom of the editor) and make sure the "jupyter" package is installed?
Yes, it is installed, as follows:
Could you please attach a screenshot of the opened .ipynb file in the editor and Jupyter server configuration https://www.jetbrains.com/help/pycharm/configuring-jupyter-notebook.html#configure-server?
Do you start a cell with default #%%?
Here is the start of the file as shown in Pycharm and in its text form. Note that I replaced the first cell with print(1) as a basic test of execution. The cell does not start with #%% (hash-percent-percent). Should it?
Also, a screenshot of Jupyter server configuration is below. It shows that I use the default server. But that works for me--I launch the server, then open a browser. What does not work is running cells inside Pycharm, whether or not the server is running.
I tried with a different Notebook, a simple "Training and prediction with scikit-learn" tutorial from Google, and got the same thing. The problem is pretty clearly not related to the Notebook.
Hi @...
Please try to disable all custom plugins first:
HashiCorp Terraform / HCL language support (0.7.10)
If it doesn't help, try to remove the plugins directory completely and restart PyCharm. If it's still not helping, you may have a corrupted config for some reason, so please try this:
1. Export your settings using File | Manage IDE settings | Export Settings...
2. Reset IDE settings to default by using File | Manage IDE settings | Restore Default Settings...
3. Create a new project and a new notebook file with couple of cells, check if it's running
4. If it works proceed to open your main project and check there, before importing the settings back.
Please let me know how it goes.
Thank you! Fully resetting Pycharm helped me figure it out. The "Run Cell" control is enabled in the upper Jupyter menu and in the Notebook itself only in the code view, not in the rendered view. See screenshot. Resetting Pycharm also reset the layout, showing me both views -- earlier, I was just aware of the rendered view. Moreover, since the web interface, which is the basic one that I am familiar with, resembles the rendered view, and since logically the cells can be triggered to run in that view, I did not even thing to look for another view.