[IPython-dev] A thought about nbconvert

David Warde-Farley d.warde.farley at gmail.com
Thu Nov 15 18:46:54 EST 2012

Hey Paul,

Hmm. So, two things:

- If I were to add it to the "simple" metadata editor (as is currently the
case with slideshow stuff, I think?) wouldn't that force a key name?
- similarly, fine-grained behaviour (code but not output, output but not
code) seems hard to accomplish in a generic way.



On Thu, Nov 15, 2012 at 6:01 PM, Paul Ivanov <pivanov314 at gmail.com> wrote:

> 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
> --only-metadata='awesomeness'
> --
> Paul Ivanov
> 314 address only used for lists,  off-list direct email at:
> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
> _______________________________________________
> 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/20121115/591a07d0/attachment.html>

More information about the IPython-dev mailing list