Contents

Install kernel for jupyter notebook

Contents
  1. Avticate your environment,check for package ipykernel
1
python -m ipykernel --version

If it’s not installed:

1
python -m pip install ipykernel
  1. Add kernel to Jupyter notebook
1
python -m ipykernel install --user --name 'kernelname'
  1. Check Jupyter notebook kernel
1
jupyter kernelspec list
  1. Delet jupyter kernel
1
jupyter kernelspec remove kernelname

Update 2022.09.25:

If you encounter the error: ImportError: cannot import name ‘AsyncGenerator’

The reason is that the version of prompt_toolkit does not match Python 3.6

The solution is to reduce the version

1
pip install --upgrade prompt-toolkit==2.0.1

Then you can add the kernel to notebook.