##// END OF EJS Templates
define kernelpath for clientside notebook manager
Bussonnier Matthias -
Show More
@@ -5,6 +5,8
5
5
6 from .manager import ContentsManager
6 from .manager import ContentsManager
7
7
8 import os.path
9
8 class ClientSideContentsManager(ContentsManager):
10 class ClientSideContentsManager(ContentsManager):
9 """Dummy contents manager for use with client-side contents APIs like GDrive
11 """Dummy contents manager for use with client-side contents APIs like GDrive
10
12
@@ -21,3 +23,10 class ClientSideContentsManager(ContentsManager):
21
23
22 def file_exists(self, name, path=''):
24 def file_exists(self, name, path=''):
23 return True
25 return True
26
27 def get_kernel_path(self, path, model=None):
28 """Return the initial working dir a kernel associated with a given notebook
29
30 Here just alway return home directory
31 """
32 return os.path.expanduser('~')
General Comments 0
You need to be logged in to leave comments. Login now