嗨,我正在使用 jupyterhub 运行笔记本服务器,但我无法访问不同的内核(python 版本)。
我正确设置了各种 enronments,当我输入
jupyter kernelspec list
我得到以下输出
Available kernels:
bash /home/username/.local/share/jupyter/kernels/bash
python2 /usr/local/share/jupyter/kernels/python2
python3 /usr/local/share/jupyter/kernels/python3
但是当 jupyterhub 启动时它只发现 Python3 内核可用?
如何让它检测所有可用的 python 版本?
cat /usr/local/share/jupyter/kernels/python2/kernel.json
{
"display_name": "Python 2",
"language": "python",
"argv": [
"/opt/anaconda3/envs/py27/bin/python2.7",
"-m",
"ipykernel",
"-f",
"{connection_file}"
]
}
cat /usr/local/share/jupyter/kernels/python3/kernel.json
{
"language": "python",
"display_name": "Python 3",
"argv": [
"/opt/anaconda3/bin/python3",
"-m",
"ipykernel",
"-f",
"{connection_file}"
]
}