How to (intermittently) skip certain cells when running IPython notebook?

Though this isn’t exactly what you seem to be looking for, if you wish to entirely omit the execution of a cell (where no cached results are loaded), you can add the following hack at the beginning of a cell (assuming you are using a Unix-based OS):

%%script false

or a variant (working as of early 2020 — see here for explanation):

%%script false --no-raise-error

Leave a Comment