[IPython-dev] both source and input

MinRK 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:

> Hi,
>
> 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
> cells?
>

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).

-MinRK


>
> Thanks,
>
> --
> William (http://wstein.org)
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150309/d8456c8f/attachment.html>


More information about the IPython-dev mailing list