Anaconda

Anaconda is an open source platform that offers a wide variety of Python and R libraries, including essentials such as numpy, pandas, and matplotlib. It was built 'by Data Scientists, for Data Scientists', so it also offers many tools and libraries related to data processing and visualisation.

Because Anaconda uses fixed IP addresses, it is possible to configure outbound internet access through the External Access tab in the DRE portal to access these libraries. This means that Anaconda packages can be updated, and can be used as an alternative to, for example, pip install commands.

Installing Anaconda

Anaconda can simply be installed on a virtual machine using the Install DRE Applications manager. It is recommended to choose install for all users, especially if you expect others to be using the same machine now or in the future.

Configuring and updating Anaconda

Anaconda must be updated regularly. To do so, outbound access should first be configured.

  1. In the DRE Portal, go to the External Access tab for your workspace.

  2. Select the virtual machine you have installed Anaconda on.

  3. Add the following rules:

Rule IP Port Reason
AnacondaRepo 104.16.130.3 443 Accessing repo.anaconda.com
Condaorg 104.17.93.24 443 Accessing conda.anaconda.org

Finally, enable the port rules by checking their boxes. Make sure you read and acknowledge the warning given when enabling port rules.

*) if you experience problems accessing Anaconda, ping the URLs that give an error using you local machine

**) The above rules allow to install or upgrade anything offered by Anaconda.

***) IP -address can change over time, in command prompt on your local machine: ping <url>, use the IP-address that will be displayed. If the IP-address changes frequently, then that URL cannot be accessed via open-ports.

It is recommended to update Anaconda before the first use and after that on a regular basis, to make sure you are using the most up to date libraries.

  1. Start and enter the virtual machine.

  2. In the start menu, find Anaconda Prompt and right-click to choose run as administrator.

  3. Execute the following commands:

conda clean --packages --yes
conda update anaconda

Recommended

Anaconda is best used in combination with Jupyter. We therefore recommend also configuring either Jupyter Notebooks or Jupyter lab by following the steps provided here.