question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IPyKernel not getting installed

See original GitHub issue

On running a cell in the notebook, if ipykernel is missing, current behavior is to install ipykernel with

conda install ipykernel -y

However, if you don’t have jupyter installed, it just asks you to re-install ipykernel again and again. 截屏2021-10-02 下午5 59 23

The output of jupyter extension: 截屏2021-10-02 下午6 00 17

So I guess the current way of handling the missing ipykernel is to try python -c "import ipykernel", and if it fails, reports the user to re-install ipykernel.

I also manually execute this command: 截屏2021-10-02 下午6 00 36 And finally found that it was due to the missing jupyter package.

So the quick fix is :

conda install jupyter -y

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
DonJayamannecommented, Oct 5, 2021

@maxwellzh Looks like you are running into a bug filed here https://github.com/ipython/ipykernel/issues/755 Basically ipykernel itself was busted & the update hasn’t been pushed to the main channel.

We’ll try to get this fixed asap.

Solution

In the mean time, please use conda install -c conda-forge ipykernel

1reaction
DonJayamannecommented, Oct 6, 2021

@maxwellzh This should be fixed in the next release of the Python & Jupypter extensions (some time tomorrow, when vscode is also released)

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPyKernel not installed into interpreter Python 3.8.6 64-bit #1093
Open a terminal · Activate the environemtn · Run the command python -m ipykernel --version · Try manually running python -m pip install...
Read more >
VS Code not registering that ipykernel is installed
The solution for me was running this code in command prompt pip install --upgrade ipython. The problem I think is related to a...
Read more >
Installing the IPython kernel — IPython 8.7.0 documentation
Installing Jupyter. The IPython kernel is the Python execution backend for Jupyter. The Jupyter Notebook and other frontends automatically ensure that the ...
Read more >
My First Jupyter Notebook on Visual Studio Code (Python ...
VSCode will open a terminal and install the ipykernel component for you. Wait for the installation process to complete. After the installation ......
Read more >
ipykernel - PyPI
This package provides the IPython kernel for Jupyter. Installation from source. git clone; cd ipykernel; pip install -e ".[test]".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found