This is a Jupyter kernel extension that adds the ability to skip the execution of a cell via the skip magic command.
Load the extension in your notebook:
%load_ext skip_kernel_extension
Run the skip magic command in the cells you want to skip:
%%skip True
You can use a variable to decide if a cell should be skipped by using $:
should_skip = True
%%skip $should_skip
#skipped
should_skip = False
%%skip $should_skip
#not skipped
skip_kernel_extension_2.py is an alternative implementation with the same functionality.