##// END OF EJS Templates
Improve 'save history' menu (%save)...
Improve 'save history' menu (%save) Real file chooser menu, get the current session history range by default. If the file already exist, the user will be prompted twice if he/she really want to be override the existing file ( by the gui, and the magic afterward) One might also to add the (-r) %save option into the gui.

File last commit:

r4533:1c4a699e
r5030:cf3ca98e
Show More
test_json.py
21 lines | 389 B | text/x-python | PythonLexer
Brian E. Granger
Added collapsed field to the code cell.
r4533 import pprint
Brian E. Granger
Full versioning added to nbformat.
r4406 from unittest import TestCase
from ..nbjson import reads, writes
from .nbexamples import nb0
class TestJSON(TestCase):
def test_roundtrip(self):
s = writes(nb0)
Brian E. Granger
Added collapsed field to the code cell.
r4533 # print
# print pprint.pformat(nb0,indent=2)
# print
# print pprint.pformat(reads(s),indent=2)
# print
# print s
Brian E. Granger
Full versioning added to nbformat.
r4406 self.assertEquals(reads(s),nb0)