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.
Uploading an environment.yml file#
Click the green dropdown button in the top right corner, and then click Upload File.
On the Upload a File screen, select the type of file you’d like to upload from the dropdown.
Click the Browse button to find your file and add it to the page.
Click Upload.
Viewing environment dependencies#
On the Environments tab, click anywhere on an environment to view its details.
Viewing environment metadata#
Click the information icon to view a file’s metadata.
You will be presented with the environment’s metadata.
Viewing environment vulnerabilities#
Note
Viewing environment vulnerabilities is an early access feature for administrators only, and currently 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 displayed. Packages that have been curated by Anaconda display a checkmark next to their name.
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.
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.