mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Fix nb name truncating at first period in filename
This commit is contained in:
parent
f52a1f689c
commit
ef162c6d5c
@ -152,7 +152,7 @@ class NotebookManager(LoggingConfigurable):
|
|||||||
except:
|
except:
|
||||||
raise web.HTTPError(500, u'Unreadable JSON notebook.')
|
raise web.HTTPError(500, u'Unreadable JSON notebook.')
|
||||||
# Always use the filename as the notebook name.
|
# Always use the filename as the notebook name.
|
||||||
nb.metadata.name = os.path.split(path)[-1].split(u'.')[0]
|
nb.metadata.name = u'.'.join(os.path.split(path)[-1].split(u'.')[:-1])
|
||||||
return last_modified, nb
|
return last_modified, nb
|
||||||
|
|
||||||
def save_new_notebook(self, data, name=None, format=u'json'):
|
def save_new_notebook(self, data, name=None, format=u'json'):
|
||||||
|
Loading…
Reference in New Issue
Block a user