Using the jupyter notebook (error/usr/bin/python3: no module named ipykernel) on the local browser remote server_ launcher)

In the part of CONDA virtual environment in the remote access server in the local browser, create a virtual environment called Env, and input it in the virtual environment

python -m ipykernel install --user --name env --display-name "env"

Installed kernelspec learn in/home/Amax /. Local/share/jupyter/kernels/env will be reported later

Access the directory and edit the kernel.json file (you may need to run jupyter notebook once before this file appears, during which an error is reported/usr/bin/python3: no module named ipykernel)_ Here, Jupiter notebook looks for ipykunnel from/usr/bin/python3_ Launcher, because Jupiter is installed in the CONDA virtual environment, the ipykunnel cannot be found_ (error report)

{
 "argv": [
  "/usr/bin/python3", #replaced here with the virtual environment's python,/home/amax/anaconda3/envs/env/bin/python
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "Python 3",
 "language": "python"
}

After modification, run jupyter notebook to start ipykernel successfully

Similar Posts: