Sunday, July 26, 2020

Installing a new kernel in Jupyter Notebook in Anaconda with Python 3.8.3 on Ubuntu 20.04



Follow these steps in the Ubuntu "Terminal".

Step 1: conda create -n py383 python=3.8.3

Step 2: conda activate py383

Step 3: pip install ipykernel
Step 4: pip install jupyter

Step 5: 
First, we get an error because we didn't specify that we want it for the current user through the argument "--user".
  (py383) ashish@ashish-VirtualBox:~/Desktop$ python -m ipykernel install --name py383
  [Errno 13] Permission denied: '/usr/local/share/jupyter'

  (py383) ashish@ashish-VirtualBox:~/Desktop$ lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 20.04.1 LTS
  Release:	20.04
  Codename:	focal 

  (py383) ashish@ashish-VirtualBox:~/Desktop$ python -m ipykernel install --user
  Installed kernelspec python3 in /home/ashish/.local/share/jupyter/kernels/python3

  (py383) ashish@ashish-VirtualBox:~/Desktop$ python -m ipykernel install --user --name py383
  Installed kernelspec py383 in /home/ashish/.local/share/jupyter/kernels/py383

Ref: ipython.readthedocs.io

No comments:

Post a Comment