mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
return API path instead of filesystem
This commit is contained in:
parent
5db4b7a8ee
commit
fd2588612a
@ -606,9 +606,9 @@ class FileContentsManager(ContentsManager):
|
||||
return "Serving notebooks from local directory: %s" % self.root_dir
|
||||
|
||||
def get_kernel_path(self, path, model=None):
|
||||
"""Return the initial working dir a kernel associated with a given notebook"""
|
||||
"""Return the initial API path of a kernel associated with a given notebook"""
|
||||
if '/' in path:
|
||||
parent_dir = path.rsplit('/', 1)[0]
|
||||
else:
|
||||
parent_dir = ''
|
||||
return self._get_os_path(parent_dir)
|
||||
return parent_dir
|
||||
|
Loading…
x
Reference in New Issue
Block a user