[IPython-dev] A thought about nbconvert

Paul Ivanov pivanov314 at gmail.com
Thu Nov 15 18:01:51 EST 2012

On Thu, Nov 15, 2012 at 2:44 PM, David Warde-Farley <
d.warde.farley at gmail.com> wrote:

> I just had an idea for a feature and wanted some feedback before I
> implement it.
> There's a pull request in the nbconvert queue to suppress certain content
> types at export time. I was wondering if it would make sense to use the new
> cell metadata mechanism to allow selective suppression of individual cells
> at export time: either the input, the output, or both.
> I guess my thought is that sometimes, you don't want to know how the
> sausage is made; sometimes you just want the image and not the code to
> generate it to be displayed in the tutorial/book/etc. Things like %pylab
> inline don't necessarily add much to a printed document either. Of course,
> if they  grab the ipython notebook format, that code will all be there.
> Thoughts? Any preferences on key names, values, etc.?

Hi David!

this sounds great. My understanding is that there should be no
strict/formal structure to metadata, so in light of the perfectly
legitimate scenario you describe, it would be best that provide generic
converters, which subclass the ones we have available, and then decide to
only include, or selective exclude content based on the cell metadata. This
might even be a mixin for the converter classes we have now, so at the
command line you could do something like --ignore-metadata='solution', or

Paul Ivanov
314 address only used for lists,  off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20121115/b29eda78/attachment.html>

More information about the IPython-dev mailing list