Install Jupyter in Conda Environment

Q

How to Install Jupyter in a Conda Environment?

✍: FYIcenter.com

A

The easiest way to run a local instance of Jupyter is to install it in a Conda Environment.

1. Make sure that Conda is installed on the local computer.

fyicenter$ conda --version 
  conda 4.10.3

2. Install Jupyter Notebook with "conda install" command in the default Conda environment.

fyicenter$ conda install notebook
  ...
  jupyter_client-6.1.1 | 88 KB  
  ipykernel-5.3.4      | 183 KB 
  ipython_genutils-0.2 | 27 KB  
  nbconvert-6.1.0      | 481 KB 
  ipython-7.26.0       | 994 KB 
  jupyterlab_pygments- | 8 KB   
  jupyter_core-4.7.1   | 68 KB  
  python-dateutil-2.8. | 233 KB 

3. Verify Jupyter installation location. The following output indicates that Jupyter is installed in the system default Conda environment.

fyicenter$ which jupyter 
  /usr/local/anaconda3/bin/jupyter

4. Verify Jupyter version.

fyicenter$ jupyter --version 
  jupyter core     : 4.7.1
  jupyter-notebook : 6.3.0
  qtconsole        : 5.0.3
  ipython          : 7.22.0
  ipykernel        : 5.3.4
  jupyter client   : 6.1.12
  jupyter lab      : 3.0.14
  nbconvert        : 6.0.7
  ipywidgets       : 7.6.3
  nbformat         : 5.1.3
  traitlets        : 5.0.5

Note that the "jupyter" package contains multiple related packages. They all installed in the system default Conda environment.

fyicenter$ which jupyter
/usr/local/anaconda3/bin/jupyter

fyicenter$ which ipython 
/usr/local/anaconda3/bin/ipython

fyicenter$ ipython --version 
7.22.0

If you want to install Jupyter in a specific Conda environment, you need to activate that environment, then run the installation command.

fyicenter$ conda activate faq

(faq) fyicenter$ conda install notebook
  ...

(faq) fyicenter$ which jupyter
  ~/anaconda3/envs/faq/bin/jupyter

 

Start Jupyter in Conda Environment

Installing and Running Jupyter

Installing and Running Jupyter

⇑⇑ Jupyter Tutorials

2022-02-04, 1122🔥, 0💬