How do I reset the Jupyter/IPython input prompt numbering?
I think, the only way to to what you want is: - 'Kernel > Restart' (restart the kernel) and then 'Cell > Run All' (run the script).
You can reset the kernel (shortcut: C-m .
) and re-run the whole notebook.
Quitting and reloading doesn't work because the code is not re-evaluated.