In my ipython notebook
, there is part of cells that serves as preliminary inspection.
Now I want to turn it off
, since after running it I know the status of the dataset, but I also want to keep it, so other people using this notebook can have this functionality.
How can I do it? Is there any example of doing it?
I can
comment out
these cells, but then switching betweenon
andoff
would be quite laborious. And may not be quite convinent for other people.I can abstract it into a
function
, but that itself has some methods, so the code would be quite convoluted, and may be hard to read?