當前位置: 首頁>>代碼示例>>Python>>正文


Python paths.jupyter_data_dir方法代碼示例

本文整理匯總了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) 
開發者ID:Autodesk,項目名稱:notebook-molecular-visualization,代碼行數:12,代碼來源:install.py

示例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') 
開發者ID:jupyter,項目名稱:nbgrader,代碼行數:4,代碼來源:exchange.py


注:本文中的jupyter_core.paths.jupyter_data_dir方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。