From 059c2b77fc77aa01f0ba9c71c7518a9daf0328db Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Tue, 31 Oct 2017 16:38:40 +0000 Subject: [PATCH] Switch to jupyter_core implementation of ensure_dir_exists Closes gh-2858 Requires jupyter_core 4.4.0, which I just released. --- notebook/nbextensions.py | 2 +- notebook/services/contents/filecheckpoints.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notebook/nbextensions.py b/notebook/nbextensions.py index 8d80d3c45d..afd0b163a0 100644 --- a/notebook/nbextensions.py +++ b/notebook/nbextensions.py @@ -24,7 +24,7 @@ jupyter_data_dir, jupyter_config_path, jupyter_path, SYSTEM_JUPYTER_PATH, ENV_JUPYTER_PATH, ) -from ipython_genutils.path import ensure_dir_exists +from jupyter_core.utils import ensure_dir_exists from ipython_genutils.py3compat import string_types, cast_unicode_py2 from ipython_genutils.tempdir import TemporaryDirectory from ._version import __version__ diff --git a/notebook/services/contents/filecheckpoints.py b/notebook/services/contents/filecheckpoints.py index 1cf83cfe08..5a9c835749 100644 --- a/notebook/services/contents/filecheckpoints.py +++ b/notebook/services/contents/filecheckpoints.py @@ -12,7 +12,7 @@ ) from .fileio import FileManagerMixin -from ipython_genutils.path import ensure_dir_exists +from jupyter_core.utils import ensure_dir_exists from ipython_genutils.py3compat import getcwd from traitlets import Unicode diff --git a/setup.py b/setup.py index 7add23d2bb..c90c95314c 100755 --- a/setup.py +++ b/setup.py @@ -147,7 +147,7 @@ 'tornado>=4', 'ipython_genutils', 'traitlets>=4.2.1', - 'jupyter_core', + 'jupyter_core>=4.4.0', 'jupyter_client', 'nbformat', 'nbconvert',