mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
fix checkpoint filename
This commit is contained in:
parent
bc0dc279f1
commit
3a4d719033
@ -326,8 +326,9 @@ class FileNotebookManager(NotebookManager):
|
||||
def get_checkpoint_path(self, checkpoint_id, name, path=''):
|
||||
"""find the path to a checkpoint"""
|
||||
path = path.strip('/')
|
||||
basename, _ = os.path.splitext(name)
|
||||
filename = u"{name}-{checkpoint_id}{ext}".format(
|
||||
name=name,
|
||||
name=basename,
|
||||
checkpoint_id=checkpoint_id,
|
||||
ext=self.filename_ext,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user