Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Colab: Run all cells until the current one

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?

like image 663
Nadav Avatar asked Mar 03 '23 03:03

Nadav


1 Answers

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!

like image 64
ninjin Avatar answered May 09 '23 18:05

ninjin