<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 10:00 AM, William Stein <span dir="ltr"><<a href="mailto:wstein@gmail.com" target="_blank">wstein@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm curious why the IPython notebook format has both "source" and<br>
"input" fields to represent the input to a cell?   I just rewrote my<br>
"ipynb <--> sync friendly text" conversion format to be much more<br>
robust and this tripped me up.<br>
<br>
I'm definitely not asking to change anything in IPython.  I'm just<br>
curious why there is both source and input, and -- more importantly --<br>
are there any other fields that represent input for other types of<br>
cells?<br></blockquote><div><br></div><div>It's just input and source in v3 and earlier. This wasn't an intentional difference, we just didn't realize that code and non-code cells would be so similar when we drafted early formats. nbformat v4 in IPython 3.0 does away with the difference (input is replaced with source).</div><div><br></div><div>-MinRK</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
William (<a href="http://wstein.org" target="_blank">http://wstein.org</a>)<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>
</font></span></blockquote></div><br></div></div>