Environments

Anaconda Server enables you to upload, move, copy, share, and download an environment yaml file. An environment is a folder or directory that contains a specific collection of conda packages and their dependencies. This allows them to be maintained and run separately without interference from each other.

For example, you may use a conda environment for only Python 2 and Python 2 packages, maintain another conda environment with only Python 3 and Python 3 packages, and maintain another for R language packages.

This topic provides guidance on the following actions:

Uploading an environment.yml file

  1. Create your environment file

  2. Click the green dropdown button in the top right corner, and then click Upload File.

    ../_images/uploadfile.png
  3. On the Upload a File screen, select the type of file you’d like to upload from the dropdown.

  4. Click the Browse button to find your file and add it to the page.

  5. Click Upload.

Viewing environment dependencies

On the Environments tab, click anywhere on an environment to view its details.

../_images/viewenv.png

Viewing environment metadata

Click the information icon to view a file’s metadata.

../_images/envmeta.png

You will be presented with the environment’s metadata.

../_images/envmetadata.png

Viewing environment vulnerabilities

Note

Viewing environment vulnerabilities is an early access feature for administrators only, and currnetly only operates when used in your base environment. This feature will be expanded and made more accessible in upcoming versions of Anaconda Server.


Use conda-audit to scan your conda environment and show the vulnerabilities associated with your projects.

Open a terminal and activate your base environment.

conda activate base

Install conda-audit.

conda install conda-audit

Run the command:

# Replace <ENV-NAME> with the name of your environment. Make sure your spelling is exact.
conda-audit -n <ENV-NAME>

A list of packages affected by CVEs and the name and score of the CVE is displyed. Packages that have been curated by Anaconda display a checkmark next to their name.

../_images/conda-audit-return.png

To produce a machine readable set of this data, run the command:

# Replace <ENV-NAME> with the name of your environment. Make sure your spelling is exact.
conda-audit -n <ENV-NAME> --json

A list of packages and CVEs in JSON format is displayed.

../_images/conda-audit-json.png

Managing an environment

Check the box next to an environment. Then, click the dropdown next to the search bar. You may then move, copy, or delete the environment.

../_images/envmanage.png