'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?
Solution 1:[1]
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!
Solution 2:[2]
To run all cells above you can use this shortcut: Ctrl + F8.
Or manually: Runtime > Run before.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ninjin |
Solution 2 | maciejwww |