[IPython-dev] both source and input
William Stein
wstein at gmail.com
Mon Mar 9 13:23:14 EDT 2015
On Mon, Mar 9, 2015 at 10:20 AM, MinRK <benjaminrk at gmail.com> wrote:
>
> 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).
Awesome -- that's the best imaginable answer from my point of view!
>
> -MinRK
>
>>
>>
>> Thanks,
>>
>> --
>> William (http://wstein.org)
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
--
William (http://wstein.org)
More information about the IPython-dev
mailing list