[IPython-dev] splitting a class definition across cells in notebook

Matthias BUSSONNIER bussonniermatthias at gmail.com
Thu Oct 17 07:27:10 EDT 2013

Le 17 oct. 2013 à 11:35, Felix Breuer a écrit :

> Hello everyone!
> I am working on an IPython notebook in which I want to explain the definition of a class in detail. (Think literate programming.) In particular, I want to interleave the definition of the individual methods of a class with Markdown cells explaining in detail what is going on. However, as far as I have been able to find out, I have to put the entire class definition in a single cell - and there is no way to amend this definition later on. Is there any way around this?

No there is none in the core right now. 
You could though write a Javascript extension 
that does it, but it would be a non-negligible amount of work, 
especially because you will need people to install this extension to have your notebook working.


> Thanks,
> Felix
> -- 
> http://www.felixbreuer.net
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20131017/f75ffbcf/attachment.html>

More information about the IPython-dev mailing list