Managing environments


On the Environments tab, the left column displays your environments.

../../../_images/nav-env1.png

At the bottom of the Environments list are the Create, Clone, Import, Backup, and Remove buttons.

../../../_images/nav_env_buttons.png

Searching for an environment

In the Search Environments box, type all or part of the environment name.

Creating a new environment

  1. At the bottom of the environments list, select Create.

  2. In the Create new environment dialog box, type a descriptive name for the new environment.

    ../../../_images/nav_select_env.png

  1. Select Python, R, or both for a mixed environment.
  2. If applicable, choose a Python version for the new environment.
  3. Select Create.

Using an environment

  1. In the environments list, select the environment name.

  2. Select the arrow button next to the name. The activation options dropdown appears.

  3. Select one of the following options for opening the environment: terminal, Python interpreter, IPython Console, or Jupyter Notebook.

    Note

    Some of these options may not be available if they were not installed in the environment.

Cloning an environment

  1. Select the name of the environment you want to clone.
  2. At the bottom of the environments list, select Clone.
  3. Type a descriptive name for the new environment.

Backing up an environment

Warning

Don’t delete the backup when removing and reinstalling Anaconda. If you do, you will not be able to import your existing environments into your new installation.

  1. Select the name of the environment you want to back up from the Environments list.
  2. At the bottom of the environments list, select Backup.
  3. In the Backup Environment dialog box, select either Local drive or Anaconda Nucleus as the backup location.

Note

By backing up to the cloud (Nucleus), your environment is safe from hard drive failure and malfunctions with your machine that could cost you your current, working environment.

Backing up locally can be useful for rolling back conda to an earlier state feature.

../../../_images/nav_env_backup.png

  1. Type a descriptive name for the backup. By default, the environment name and current date is entered as the backup name.
  2. Select Backup.

Importing an environment

Each environment has a YAML-formatted configuration file. If someone has given you an environment file that you want to use, for example my-environment-file.yml, and you have saved it to your computer, you can import it into Navigator. Further, if you have backed up an environment locally or to Nucleus, you can import it onto your local computer with Navigator.

  1. At the bottom of the environments list, select Import.
  2. In the Import Environment dialog box, choose whether to import from your Local drive or from Anaconda Nucleus. Then, select the corresponding folder icon to choose the environment from which you wish to import.
../../../_images/nav_env_backup.png

  1. Type a descriptive name for the new environment, or use the existing name.
  2. Select Import.

Your newly imported environment will appear in the Environments list.

Removing an environment

In Navigator

  1. In the environments list, select the environment you want to remove.
  2. At the bottom of the list, select Remove.

Note

Removing an environment in Navigator only removes your local copy. It will not remove or delete environments you have backed up to Nucleus.


In Nucleus

  1. In a browser, open Anaconda Nucleus.
  2. Sign in using your email address and password.
  3. From your profile in the top-right corner, navigate to Subscriptions.
  4. Select the Environments tab.
  5. Select Delete in the row associated with the environment you wish to remove.

Note

Removing an environment in Nucleus only removes it from Nucleus. It does not affect any local copies.

../../../_images/nucleus_delete_env.png
  1. In the environments list, click the environment you want to remove.
  2. At the bottom of the list, click the Remove button.

Advanced environment management

Navigator provides a convenient graphical interface for managing conda environments, channels, and packages. If you’re comfortable working with Anaconda prompt (terminal on Linux or macOS), you can access additional, advanced management features. To learn more, see Managing environments with conda.