We could also use these tags to filter cells in the actual notebook UI.  So a presentation mode could filter out certain tags.<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 9:24 AM, Brian Granger <span dir="ltr"><<a href="mailto:ellisonbg@gmail.com" target="_blank">ellisonbg@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I like the idea of using cell metadata to filter the things that appear in the converted notebook.  What about creating a metadata field called tags that is a list of tags that cell has.  That would allow to to include and exclude different tags upon conversion.  We could do:<div>

<br></div><div>export and exclude tag=['solutions'] to create a notebook without the solution to problems for example.</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 11:48 PM, Matthias BUSSONNIER <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Le 16 nov. 2012 à 00:46, David Warde-Farley a écrit :<br>
<br>
Hi David,<br>
<div><br>
> Hey Paul,<br>
><br>
> Hmm. So, two things:<br>
><br>
> - 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?<br>
<br>
</div>This is one of the reason the Metadata UI is not moving forward right now. it is not made only for slideshow.<br>
I would like to make it easily extendable.<br>
My first thought was that you could register a callback that get the current cell as first argument, and the div of the clicked button as second.<br>
So that you can do whatever you want (just toggle a value) or completely open a jQuery dialog.<br>
<br>
The problem is  when does the metadata extension append ? is it through a Js plugin, or anytime a notebook is launched.<br>
The main problem with the second one is that it is hard to extend both already instantiated  metadata UI toolbar and class prototype.<br>
<br>
Also if the metadata is modified by something else than the button, how is the button state updated ?<br>
<br>
Eventually this UI might be used for touch device (cut, copy, past, run)... so we surely want to be able to at least partially load it. (hence jsplugin is hard)<br>
unless you only hide part with css.<br>
(this is also something I want to talk to brian, because right now js plugin are always loaded and you might want to load them only at some point)<br>
<br>
<br>
As for the key name, you could use your own prefix.<br>
like stuff things in `nbconvert.conversionOption.whatever`, `nbconvert.conversionOption.anotherStuff`<br>
<div><br>
<br>
> - similarly, fine-grained behaviour (code but not output, output but not code) seems hard to accomplish in a generic way.<br>
</div>You can also use 'notebook' and 'worksheet' level metadata.<br>
this can be a global flag, which is 'merged' into each cell metadata at convert time to avoid all the<br>
`if metadata.nooutput or worksheet.metadata.nooutput :`<br>
<br>
But if there is no global flag from command line, I'm fine with it, it could be a done programatically. As I wrote on the other PR let's build a good module, and having command line tool will be convenience.<br>
<span><font color="#888888">--<br>
Matthias<br>
<br>
<br>
><br>
> Thoughts?<br>
><br>
> David<br>
</font></span><div><div>><br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Brian E. Granger<br>Cal Poly State University, San Luis Obispo<br><a href="mailto:bgranger@calpoly.edu" target="_blank">bgranger@calpoly.edu</a> and <a href="mailto:ellisonbg@gmail.com" target="_blank">ellisonbg@gmail.com</a><br>

<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Brian E. Granger<br>Cal Poly State University, San Luis Obispo<br><a href="mailto:bgranger@calpoly.edu" target="_blank">bgranger@calpoly.edu</a> and <a href="mailto:ellisonbg@gmail.com" target="_blank">ellisonbg@gmail.com</a><br>
<br>
</div>