jupyter / jupyter/notebook

Dead Jupyter Kernel with python3

Open
#3,230 10 comments 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 am trying to use jupyter notebook with python3. Then I added the kernel with
```
python3 -m pip install ipykernel
python3 -m ipykernel install --user
```
But when I start a notebook it shows a Dead kernel message, and the terminal shows
```
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
```
If I choose python2 kernel it works well. I can run python command in console without any issue.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Python 3 kernel setup with the two commands in the report and capture the kernel startup environment around the Py_Initialize and missing encodings errors. Done means the Python 3 kernel starts successfully in a notebook without the dead-kernel or locale-encoding failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
devtools
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.