简体   繁体   中英

jupyter python notebook showing kernel error

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. 在此处输入图片说明

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

you should use this command

jupyter kernelspec remove python3

python3 is name of kernel at my end, it can be yours. after than run jupyter notebook again from command prompt.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM