[IPython-dev] A thought about nbconvert
Thu Nov 15 17:46:54 CST 2012
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 <email@example.com> wrote:
> On Thu, Nov 15, 2012 at 2:44 PM, David Warde-Farley <
> firstname.lastname@example.org> 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
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev