##// END OF EJS Templates
Backport PR #10558: Let nbformat take care of opening the file...
Backport PR #10558: Let nbformat take care of opening the file Notebook files should always be read as utf-8, but the default for `io.open()` is to use a platform-dependent default encoding. The easiest way around this is to pass the filename to nbformat.read() and let it open the file correctly. Bug identified at: http://stackoverflow.com/questions/43915006/encoding-error-in-jupyter-when-run-another-notebook

File last commit:

r13348:e6afea51
r23653:b441be73
Show More
simplevars.py
3 lines | 61 B | text/x-python | PythonLexer
Thomas Kluyver
Convert print statements to print function calls...
r13348 from __future__ import print_function
Fernando Perez
Checkpoint with more tests working....
r1420 x = 1
Thomas Kluyver
Convert print statements to print function calls...
r13348 print('x is:',x)