[IPython-dev] both source and input
benjaminrk at gmail.com
Mon Mar 9 13:20:06 EDT 2015
On Mon, Mar 9, 2015 at 10:00 AM, William Stein <wstein at gmail.com> wrote:
> I'm curious why the IPython notebook format has both "source" and
> "input" fields to represent the input to a cell? I just rewrote my
> "ipynb <--> sync friendly text" conversion format to be much more
> robust and this tripped me up.
> I'm definitely not asking to change anything in IPython. I'm just
> curious why there is both source and input, and -- more importantly --
> are there any other fields that represent input for other types of
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).
> William (http://wstein.org)
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev