<br><br><div class="gmail_quote">On Fri, Jun 15, 2012 at 1:30 PM, Jonathan Taylor <span dir="ltr"><<a href="mailto:jonathan.taylor@stanford.edu" target="_blank">jonathan.taylor@stanford.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Yes, that sounds exactly like what we want. As always, the ipython team is one step ahead. I guess this PR will happen sometime soon as there don't seem to be many issues on github?</blockquote><div><br></div><div>Yes, finishing the review on this one is one of the last things to do before cutting the beta.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Thu, Jun 14, 2012 at 5:09 PM, MinRK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You mean something like <a href="https://github.com/ipython/ipython/pull/1934" target="_blank">this</a>?<div><br></div>


<div>Adding your own (jsonable) data into those metadata dicts should be safe.  I would recommend using your own prefix or subdict to avoid potential collisions down the road.<br>

<br><div class="gmail_quote"><div><div>On Thu, Jun 14, 2012 at 4:13 PM, Dennis Sun <span dir="ltr"><<a href="mailto:dlsun@stanford.edu" target="_blank">dlsun@stanford.edu</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

Hi all,<div><br></div><div>We're working on a project where we need notebook files that have some extra data attached to each cell. Because we would like to make sure that the files are still compatible with the iPython Notebook, what we're doing right now is including this metadata in the "json" attribute of the output of each cell and then "promoting" these attributes to the cell level at runtime. Thus, the notebook file is still a valid .ipynb file, but the metadata doesn't show up when the user loads the page.</div>





<div><br></div><div>However, it seems right now that we can get away with adding the metadata directly at the cell level in the .ipynb file, since iPython Notebook simply passes over any keys that it doesn't know to look for. We would like to do this instead, since it is conceptually much cleaner, but we are worried about compatibility with future versions of iPython, which might enforce .ipynb files to follow a certain format. </div>





<div><br></div><div>We were hoping that someone more knowledgeable about the state of iPython development could advise on whether or not it's safe to add our own attributes directly to the .ipynb files. It seems that this shouldn't be a problem as long as .ipynb remains a JSON key-value store, but we wanted to check with the community to make sure.</div>





<div><br></div><div>Thanks,</div><div>Dennis</div>
<br></div></div>_______________________________________________<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>
<br></blockquote></div><br></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Jonathan Taylor                          <br>Dept. of Statistics                      <br>Sequoia Hall, 137                          <br>

390 Serra Mall<br>
Stanford, CA 94305<br>Tel:   <a href="tel:650.723.9230" value="+16507239230" target="_blank">650.723.9230</a><br>Fax:   <a href="tel:650.725.8977" value="+16507258977" target="_blank">650.725.8977</a><br>Web: <a href="http://www-stat.stanford.edu/~jtaylo" target="_blank">http://www-stat.stanford.edu/~jtaylo</a><br>


</font></span><br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">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>
<br></blockquote></div><br>