Image by Author

How are we going to achieve that?

How to install Anaconda or Miniconda?

cd ~/Downloads
LATEST_ANACONDA=$(wget -O - https://www.anaconda.com/distribution/ 2>/dev/null | sed -ne 's@.*\(https:\/\/repo\.anaconda\.com\/archive\/Anaconda3-.*-Linux-x86_64\.sh\)\">64-Bit (x86) Installer.*@\1@p')
wget $LATEST_ANACONDA
chmod +x Anaconda3*.sh # make it executable
./Anaconda3*.sh # execute the installer

Checking and switching the conda environments

Install Jupyter Notebook / Lab in the base environment

Installing Jupyter Notebook (default)

conda install -c conda-forge notebook
conda install -c conda-forge nb_conda_kernels

Installing Jupyter Lab

conda install -c conda-forge jupyterlab
conda install -c conda-forge nb_conda_kernels

Installing Jupyter Notebook extensions

conda install -c conda-forge jupyter_contrib_nbextensions

(Optional) Installing pip package manager

conda install pip

Creating environments in conda and Jupyter Notebook

conda create -n tf-2.0 tensorflow-gpu pip ipykernel
conda create -n tf-1.15 tensorflow-gpu==1.15 pip ipykernel
conda env list

Start Jupyter Notebook and check the environments and extensions

jupyter notebook

 

https://towardsdatascience.com/how-to-set-up-anaconda-and-jupyter-notebook-the-right-way-de3b7623ea4a?gi=79fa9d7dd41a 

Post a Comment

Previous Post Next Post