jupyter / jupyter/notebook

ImportError: cannot import name 'ensure_dir_exists'

Open
#4,574 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

I want to use jupyter notebook on my virtual environment. After I install nb_conda by running the command "conda install nb_conda", I cannot launch notebook of the virtual environment. The error is:
`ImportError: cannot import name 'ensure_dir_exists'`
![image](https://user-images.githubusercontent.com/30528939/56351817-8147d000-6200-11e9-853e-f074ce1c2548.png)

I try to update the jupyter_core and jupyter_client by running
`conda update jupyter_core jupyter_client`,
following the suggestion[](https://stackoverflow.com/questions/48372019/importerror-cannot-import-name-ensure-dir-exists). But the error is still there.
I can't figure out why, could someone give a detail explanation about this kind of error?

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure after installing nb_conda in a virtual environment, then inspect the ImportError and the installed jupyter_core and jupyter_client versions. Done means identifying the incompatible dependency or configuration and confirming that the virtual-environment notebook launches successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.