jupyter python notebook showing kernel error

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:21:28

问题


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.


回答1:


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

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

Check the path in your case

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

Note: env_name refers to the anaconda environment you are using



来源:https://stackoverflow.com/questions/52622358/jupyter-python-notebook-showing-kernel-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!