qazwsx qazwsx - 3 years ago 109
Python Question

In Jupyter notebook interfaces, is there a way to run all code before a selected line of code?

I was working on a long Jupyter notebook and for some reason I had to close it and restart. After that, I'd like to run all the code before the line I was working on. Is there a convenient way to do this?

Answer Source

Click on the cell you want to run above, go to Cell -> Run All Above

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download