本文整理汇总了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')