如何解决JupterLab不使用内核规范
这让我发疯。我已经按照https://jupyterhub.readthedocs.io/en/stable/installation-guide-hard.html
上的说明设置了jupyterHub / jupyterLab服务器我遇到了一个奇怪的内核问题。不管内核规范如何(在JupyterLab和Jupyter中似乎都能正确显示),它们在启动时仍继续使用默认的系统python环境(例如/ usr / bin / python)
我的kernal.json看起来正确
{
"argv": [
"/opt/conda/envs/python/bin/python","-m","ipykernel_launcher","-f","{connection_file}"
],"display_name": "Python (default)","language": "python"
}
通过JupyterLab和命令行检查可用内核时,正确列出了内核
Available kernels:
python /opt/jupyterhub/share/jupyter/kernels/python
但是,一旦启动内核,我看到它继续使用默认的系统python(而不是每个内核规范文件3.7
Python 3.6.9 (default,Jul 17 2020,12:50:27)
Type 'copyright','credits' or 'license' for more information
IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.
!which python
/usr/bin/python
我想念什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。