The server is a Linux system, Ubuntu 20. Execute the following command in the terminal window to complete the kernel addition.
1. Execute the following commands in the corresponding virtual environment
conda install ipykernel
2. Add the virtual environment to jupyter notebook kernel
python -m ipykernel install --name rl
If successful, end.
Error 1: If the following error occurs: ImportError: cannot import name 'secure_write'
Solution:
pip install --upgrade jupyter_client
After the installation is successful, execute the command python -m ipykernel install --name rl again . If successful, end.
If the following error occurs:
Option 2: [Error 13] Permission denied: '/usr/local/share/jupyter'
Solution:
Change: python -m ipykernel install --name rl to:
python -m ipykernel install --user --name rl
end, success