jupyter / jupyter/notebook

python -m ipykernel install --user --name=myenv fails to create kernel

Open
#6,071 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

After creating an environment with something like "conda create --name myenv -y -c anaconda -c conda-forge python=3 ipykernel pandas matplotlib," then installing the kernal with "python -m ipykernel install --user --name=myenv," the "~/miniconda3/share/jupyter/kernels/myenv" folder doesn't get created. When I create a new notebook using myenv, I cannot import any libraries. I just figured out that if I copy the python3 folder to myenv, I could then import libraries in the notebook. This just started happening yesterday, ipykernel 5.3.4.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the conda environment and the `python -m ipykernel install --user --name=myenv` command from the report. Inspect whether `~/miniconda3/share/jupyter/kernels/myenv` is created and verify that a notebook using `myenv` can import the installed libraries; done means the kernel is registered correctly without copying the `python3` folder.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.