Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, there is a way to configure PyCharm to automatically restart Jupyter whenever there are changes made to the project code.

Here are the steps to follow:

  1. Open the Jupyter notebook in PyCharm.

  2. Click on the "Run" menu in the top menu bar and select "Edit Configurations".

  3. In the "Edit Configurations" window, click on the "+" icon in the top left corner and select "Jupyter Notebook".

  4. In the "Jupyter Notebook" configuration window, enter a name for the configuration and select the project interpreter that you want to use.

  5. Under the "Execution" section, check the box next to "Restart kernel before execution".

  6. Click on "Apply" and then "OK" to save the configuration.

Now, whenever you make changes to your project code and run the Jupyter notebook, the kernel will automatically be restarted before the code is executed. This ensures that any changes you have made are reflected in the notebook.