1. Home
  2. Tools and Features
  3. Virtual Desktops
  4. Installing Anaconda and running Jupyter Notebooks on your Virtual Dekstop

Installing Anaconda and running Jupyter Notebooks on your Virtual Dekstop

Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages. Anaconda is widely used for scientific computing, data science and machine learning workflows.

If you are looking to install Python, we recommend using Anaconda Python distribution as it is a ready-made and up-to-date package for working with Python. The base package contains libraries used for data science including those necessary for running Jupyter Lab and Jupyter Notebook. Anaconda also provides a mechanism for managing distinct environments that capture library dependencies.

This article will guide you through installing Anaconda on your Virtual Desktop in the Aridhia DRE Workspace, and then running Jupyter Notebooks.

Instructions for Linux

Instructions for Windows

Instructions for Ubuntu 18.04

1. Download Anaconda

From the web browser, go to the Anaconda Distribution page, scroll down to the Anaconda Installers section, and copy the link of the Linux installer (64-Bit x86 version).

In your Virtual Desktop, open the terminal and move into the tmp folder, and then use the copied link to download the latest Anaconda distribution:

cd /tmp
curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh

2. Verify Anaconda download

Use the command below to verify the downloaded data integrity.

sha256sum Anaconda3-2020.02-Linux-x86_64.sh

The command should print out a single line that looks like the screenshot below.

3. Install Anaconda

sudo bash Anaconda3-2020.02-Linux-x86_64.sh

  • You will need to press Enter to scroll down to the bottom of the license agreement.
  • Type yes to accept the license terms and conditions
  • The installer will ask if you want to accept the default installation location: do NOT accept it, instead, set it to /opt/anaconda3
  • At the end, type yes to initialize Anaconda3.

4. Check Anaconda installation

Exit the terminal and open a new one. If all went well, you should see your terminal prompt prefixed by a (base) label, which indicates you are in Conda's base environment.

If you do not see the (base) label, you might have forgotten to initialize Anaconda, so you need to run the following command:

/opt/anaconda3/bin/conda init

Now we can test the installation:

which python
> /opt/anaconda3/bin/python
python --version
>Python 3.7.4

5. Change the ownership

To create your own environments, you need to have write access to Anaconda3 folder, so you need to change the folder ownership by running this command:

sudo chown -R $USER:$USER /opt/anaconda3

6. Running Jupyter Notebook

Once Anaconda is installed, you can simply open the Jupyter Notebook by running:

jupyter notebook

Instructions for Windows

1. Download Anaconda installer

From the web browser, go to the Anaconda Archive, then looking at the 'Last Modified' column scroll down to find the latest Anaconda3 distribution.

Click to download the 64-Bit Windows installer. The release name should be something like Anaconda3-2020.11-Windows-x86_64.exe.

2. Install Anaconda

Navigate to the Downloads folder, and double click on the Anaconda3 executable. Follow the instructions to complete the installation

3. Open the Anaconda Prompt

Once the installation is complete, go to the Start menu and select the Anaconda Prompt. This should open the command line shell.

Run python to see which version of Python you are running.

Updated on December 11, 2020

Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket
CONTACT SERVICE DESK