[IPython-dev] IMPORTANT: Notebook format incremented
Brian Granger
ellisonbg at gmail.com
Wed Feb 1 12:46:19 EST 2012
This is fixed here:
https://github.com/ipython/ipython/pull/1361
Should be merged soon.
Cheers,
Brian
On Tue, Jan 31, 2012 at 10:40 AM, Julian Taylor
<jtaylor.debian at googlemail.com> wrote:
> On 01/31/2012 06:44 PM, Brian Granger wrote:
>> Hi,
>>
>> Yesterday we pushed a change to the IPython notebook that will affect
>> all users of the notebook - especially those who are following the dev
>> version. We have incremented the notebook version number to v3. This
>> is done anytime there are backwards incompatible changes to the
>> notebook format. In this case, we have added new cell types (Heading
>> Cells, Plaintext Cells (reST, latex)). Here is how this affects you:
>>
>> * Older v2 notebooks (those created with IPython versions before
>> yesterday) will be automatically converted to v3 notebooks when you
>> open them the first time. We are in the process of adding a dialog
>> that will notify you of this.
>> * The newer v3 notebooks cannot be opened by previous versions of the
>> notebook server. Once you go v3, there is no turning back. This
>> means that everyone who wants to use your notebooks MUST to transition
>> and follow the dev version of the notebook.
>> * The v3 notebook format is not finalized. There will likely be
>> additional backwards incompatible changes to the nbformat. This means
>> that if you go v3, you MUST regularly pull from github master to
>> follow the latest state of the code. We will announce on list when
>> the v3 format is finalized in advance of the 0.13 release.
>>
>> Cheers and happy notebooking!
>>
>> Brian
>>
>
> you forgot to updating the testsuite:
>
> ======================================================================
> FAIL: test_empty_notebook
> (IPython.nbformat.v3.tests.test_nbbase.TestNotebook)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/build/buildd/ipython-0.12+2301/IPython/nbformat/v3/tests/test_nbbase.py",
> line 105, in test_empty_notebook
> self.assertEquals(nb.nbformat,2)
> AssertionError: 3 != 2
> '3 != 2' = '%s != %s' % (safe_repr(3), safe_repr(2))
> '3 != 2' = self._formatMessage('3 != 2', '3 != 2')
>>> raise self.failureException('3 != 2')
>
>
> ======================================================================
> FAIL: test_notebook (IPython.nbformat.v3.tests.test_nbbase.TestNotebook)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/build/buildd/ipython-0.12+2301/IPython/nbformat/v3/tests/test_nbbase.py",
> line 113, in test_notebook
> self.assertEquals(nb.nbformat,2)
> AssertionError: 3 != 2
> '3 != 2' = '%s != %s' % (safe_repr(3), safe_repr(2))
> '3 != 2' = self._formatMessage('3 != 2', '3 != 2')
>>> raise self.failureException('3 != 2')
>
>
> ----------------------------------------------------------------------
> Ran 45 tests in 0.127s
>
> FAILED (failures=2)
>
> https://launchpadlibrarian.net/91509120/buildlog_ubuntu-precise-i386.ipython_0.12%2B2301-0~6~precise1_FAILEDTOBUILD.txt.gz
>
--
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu and ellisonbg at gmail.com
More information about the IPython-dev
mailing list