Adding Python2.7 kernel in Jupyter notebook on Ubuntu

2021-12-27
#Python #Unix

1. Basic system information

  • Default Python: Python 3
  • Conda 3 Version: conda 4.10.3
  • Conda envs Python: Python 2.7

2. Steps

conda activate python2.7
conda install ipykernel
conda deactivate
python -m ipykernel install --user --name Python2.7

Opening Jupyter notebook, the new kernel as Python2.7 will be shown.

3. Reference