mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
don't convert notebooks on upload
This commit is contained in:
parent
8392c7ac9e
commit
b2d946d44e
@ -303,7 +303,7 @@ class FileContentsManager(ContentsManager):
|
||||
nb['metadata']['name'] = u''
|
||||
|
||||
with atomic_writing(os_path, encoding='utf-8') as f:
|
||||
current.write(nb, f, u'json')
|
||||
current.write(nb, f, version=nb.nbformat)
|
||||
|
||||
def _save_file(self, os_path, model, name='', path=''):
|
||||
"""save a non-notebook file"""
|
||||
|
Loading…
Reference in New Issue
Block a user