16

I would like to know how to run all cells (from the beginning of the notebook) and stop at the cell that's selected (do not want to run ALL cells..) on Google-Colab. Is this possible?

2 Answers 2

21

Yes, it is possible.

Just select the cell and click on Runtime > Run before in the toolbar at the top of the notebook. Runtime > Run before runs all the cells from the beginning of the notebook until the selected cell (not included).

Another way is to select all the cells you want to run and click on Runtime > Run selection.

Hope it helps!

1
  • 1
    Thanks ninjin! Exactly what I looked for, I could also see that CTRL+F8 achieves the same
    – Nadav
    Nov 21, 2019 at 12:48
5

To run all cells above you can use this shortcut: Ctrl + F8.

Or manually: Runtime > Run before.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.