Ask Your Question
4

Is there a way to configure Pycharm to automatically restart Jupyter whenever there are changes made to the project code?

asked 2021-04-14 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-25 13:00:00 +0000

woof gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-04-14 11:00:00 +0000

Seen: 13 times

Last updated: Jun 25 '22