jupyter python笔记本显示内核错误 [英] jupyter python notebook showing kernel error

查看:619
本文介绍了jupyter python笔记本显示内核错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过远程服务器上运行的浏览器访问jupyterhub笔记本(使用nginx,以便jupyterhub可以被客户端计算机访问).当我访问笔记本时,屏幕顶部显示内核错误. Jupyterhub和Jupyter Notebook在kubernetes集群上运行,并且Jupyter Notebook是适用于python编程的自定义构建的docker映像.我是python/jupyter hub/notebook的新手,请提出如何解决内核错误的建议.

I am accessing jupyterhub notebook through browser as it is running on a remote server(using nginx so that jupyterhub is accessible to client machines).When I access the notebook a kernel error is shown at the top of the screen. Jupyterhub and jupyter notebook is running on a kubernetes cluster and the jupyter notebook is a custom built docker image suitable for python programming. I am very new into python/jupyter hub/notebook, please suggest how to resolve the kernel error.

推荐答案

请检查kernel.json文件,检查Python可执行文件的路径是否正确

Please check kernel.json file, check if the path to the Python executable is correct

例如,我的kernel.json看起来像这样,在我的情况下,Python二进制文件位于 C:/Users/Vinod/Anaconda/envs/env_name/python

for example my kernel.json looks like this, in my case the Python binary is located at C:/Users/Vinod/Anaconda/envs/env_name/python

根据情况检查路径

{
 "argv": [
  "C:/Users/Vinod/Anaconda/envs/env_name/python",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "Python 3",
 "language": "python"
} 

注意:env_name指的是您正在使用的anaconda环境

Note: env_name refers to the anaconda environment you are using

这篇关于jupyter python笔记本显示内核错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆