It seems that the ipykernel for Jupyter that you have installed is for Python3.7, which is what runs in your notebook. But your ROOT has been built for Python3.8 and this causes a mismatch.
You need to make sure you install ipykernel for Python3.8, so that you run Python3.8 in the notebook.
You can probably also just edit the configuration for Jupyter (/usr/share/jupyter/kernels/python3/kernel.json) to use Python3.8 if it’s also installed for that version on your system.
Hello,
Thanks for the reply. I have this (/usr/share/jupyter/kernels/python3/kernel.json):
{
“argv”: [
“/usr/bin/python3”,
“-m”,
“ipykernel_launcher”,
“-f”,
“{connection_file}”
],
“display_name”: “Python 3”,
“language”: “python”
}
Can you help me where to make changes?
I am obtaing this:
Available kernels:
root /home/sraj/Cern_Root/root-6.22.02/root-install/etc/notebook/kernels/root
python3 /home/sraj/.local/share/jupyter/kernels/python3
Probably because ipykernel was installed with --user. You can change /home/sraj/.local/share/jupyter/kernels/python3/kernel.json and make it point to python3.8 as I showed in my previous post.