Two New Ways to Manage Cell Execution

Marc Cohen
Google Colab
Published in
2 min readJul 6, 2023

--

We’ve recently introduced two new features to make it easier to control how and when to run your code cells:

  1. The first feature gives you the ability to run a collection of cells directly from the notebook table of contents, via a “Run cells in section” option in the context menu (under the triple dots), as shown in the image above.
  2. The second feature gives you the ability to assign certain cells as pre-requisites for a given notebook. This is manifested via an option in the notebook settings dialog (under the Edit menu) to “Automatically run the first cell or section” when opening a notebook (see image below). If your notebook starts with a single cell, that cell will be auto-executed whenever your notebook is opened. If the notebook starts with a section, the entire first section of cells will be auto-executed on notebook open.

Hope you find these useful — let us know in the comments how you’re using them!

--

--

Marc Cohen
Google Colab

Engineer@Google - My mission is building tools, tutorials, and other educational artifacts to make computing and data science more accessible and inclusive.