I have Jupyter Notebook installed on Ubuntu. Python 2 and 3 run OK on the terminal but only Python 3 shows up on IPython. I am trying to get both kernels (2 and 3) up on IPython.
I've tried to manually install ipykernel from https://github.com/ipython/ipykernel which was successful but still can't get Python 2 kernel to show up. I also tried:
> sudo ipython2 kernelspec install-self
And got the error: ImportError: No module named shutil_get_terminal_size
Next, i tried:
python2 -m pip install --upgrade ipykernel
python2 -m ipykernel install
The second line returned an error:
/usr/bin/python2: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
I guess the challenge is with the module named shutil_get_terminal_size. Please, kindly advise on how I can fix this. I read this post: https://github.com/ipython/ipython/issues/9416 but can't make much sense of it.
Thank you!