[IPython-dev] Extensions arguments and cell types
Matthias BUSSONNIER
bussonniermatthias at gmail.com
Thu Jul 25 10:35:02 EDT 2013
Le 25 juil. 2013 à 04:15, lecast a écrit :
> 1. Is it possible to pass arguments to extensions on %(re)load_ext or do I
> have to create a line/cell magic for that purpose only?
I'm not sure, what would be the use case ?
>
> 2. Can an extension add a cell type in the notebook?
No.
> I want to write an
> extension that would work as if it was a Markdown cell (i.e. after execute
> you see only the output). Alternatively can I, through an extension, add css
> classes to cells using cell magics from that extension AND add on load
> css/js that collapses those cells.
Those look a lot more that JS extensions you could attach arbitrary info to cell,
and with a custom javascript with a js extension you could add css to those cells
at load time. The cell toolbar UI should help you to tag cell to do that.
have a look in IPython/html/static/notebook/js/celltoolbarpresets
--
Matthias
> --
> View this message in context: http://python.6.x6.nabble.com/Extensions-arguments-and-cell-types-tp5025980.html
> Sent from the IPython - Development mailing list archive at Nabble.com.
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
More information about the IPython-dev
mailing list