本文整理匯總了Python中jupyter_core.paths.jupyter_data_dir方法的典型用法代碼示例。如果您正苦於以下問題:Python paths.jupyter_data_dir方法的具體用法?Python paths.jupyter_data_dir怎麽用?Python paths.jupyter_data_dir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類jupyter_core.paths
的用法示例。
在下文中一共展示了paths.jupyter_data_dir方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: nbextension_ordered_paths
# 需要導入模塊: from jupyter_core import paths [as 別名]
# 或者: from jupyter_core.paths import jupyter_data_dir [as 別名]
def nbextension_ordered_paths():
import jupyter_core.paths as jupypaths
jupyter_searchpath = jupypaths.jupyter_path()
paths = [('user', jupypaths.jupyter_data_dir()),
('environment', jupypaths.ENV_JUPYTER_PATH[0]),
('system', jupypaths.SYSTEM_JUPYTER_PATH[0])]
paths.sort(key=lambda x: jupyter_searchpath.index(x[1]))
return collections.OrderedDict(paths)
示例2: _cache_default
# 需要導入模塊: from jupyter_core import paths [as 別名]
# 或者: from jupyter_core.paths import jupyter_data_dir [as 別名]
def _cache_default(self):
return os.path.join(jupyter_data_dir(), 'nbgrader_cache')