问题
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