mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Merge pull request #1978 from kinverarity1/dot_truncation
Notebook names were truncating at the first period
This commit is contained in:
commit
c797237e59
@ -152,7 +152,7 @@ class NotebookManager(LoggingConfigurable):
|
||||
except:
|
||||
raise web.HTTPError(500, u'Unreadable JSON notebook.')
|
||||
# Always use the filename as the notebook name.
|
||||
nb.metadata.name = os.path.split(path)[-1].split(u'.')[0]
|
||||
nb.metadata.name = os.path.splitext(os.path.basename(path))[0]
|
||||
return last_modified, nb
|
||||
|
||||
def save_new_notebook(self, data, name=None, format=u'json'):
|
||||
|
Loading…
Reference in New Issue
Block a user