diff --git a/spyder_kernels/customize/spydercustomize.py b/spyder_kernels/customize/spydercustomize.py index 6f369238..1e3a480b 100644 --- a/spyder_kernels/customize/spydercustomize.py +++ b/spyder_kernels/customize/spydercustomize.py @@ -711,6 +711,11 @@ def runcell(cellname, filename): "Please use only through Spyder's Editor; " "shouldn't be called manually from the console") return + + # Trigger `post_execute` to exit the additional pre-execution. + # See Spyder PR #7310. + ipython_shell.events.trigger('post_execute') + ipython_shell.run_cell(cell_code) del ipython_shell.cell_code