Autoreload Jupyter notebooks while debugging in 2919.2.4

Trying to debug a script while debugging via PyCharm's builtin Jupyter Notebook server support.

Is there a way to autoreload the script after changes have been made?  It's getting really old to have to continuously restart the kernel and replay all previous cells.  It almost defeats the purpose of having builtin Notebook editor.

In a normal Jupyter/iPython installation one would just place IPython magic commands:

%load_ext autoreload
%autoreload 2

into a cell and this would trigger autoreloading.  Why doesn't this work in PyCharm?

2
2 comments

I am having the same issue. Anyone solved this? Is there a way to autoreload the script after changes have been made?
I am using Professional 2020.3

0

Does it help if you add this one?

%reload_ext autoreload

If not, please file an issue to https://youtrack.jetbrains.com/issues/PY

1

Please sign in to leave a comment.