[IPython-User] Hide code cells in the notebook
Mon Nov 26 11:23:35 CST 2012
On Sat, Nov 24, 2012 at 01:57:45PM +0000, Thomas Kluyver wrote:
> I just came across this blog post - the author has a bit of Python, which
> parts of a notebook:
> IPython-User mailing list
First, a big thank-you to everyone who has
provided to IPython over the years. I've been
using it since college and continue to use it at
work: the notebook has changed the way I work.
I think it's wonderful.
The hiding of code cells was something I am
interested in so when I saw Thomas' comment,
I was overjoyed. I followed it, installed the
code and started exploring Pandas. I toggled
my input and saved the document before messing
The toggled output document, when saved, saved
*without* the original code (now hidden), without
out (plots, output etc) but with markdown text.
On reloading, all the original code and plots etc
So, beware! I can replicate this behaviour in
seconds with the following process:
In : from pretty import *
Out: Toggle Input
In : print 'Dont save with input toggled!'
Run all cells, check the screen output, hit `Toggle Input',
then save the document. Exit, reload.
Now I find my archive isn't working either. :(
This behaviour is probably obvious to most. Not
More information about the IPython-User