Integration with Anaconda Server¶
Anaconda Navigator has everything a user needs to set up the Anaconda Server API domain, login with credentials, add channels, and install/update packages from Anaconda Server with Anaconda Navigator.
To integrate with Anaconda Server, click Connect in the top-right corner of the Navigator application. Then, click Sign In next to Anaconda Server. If this is the first time you are logging in to Anaconda Server, you’ll be asked to set your Anaconda Server domain.
Enter your domain and click Set Domain.
If your domain is correct, you’ll see the login pop-up. Enter the credentials you use to log in to your Anaconda Server instance, and then click Login. If all credentials are correct, you will be signed in.
After signing in, you’ll see a pop-up with a list of available channels. You can choose what channels to use and what channels to add to default_channels by clicking on the checkboxes in the Add to default_channels and Add to channels columns. After you’ve marked channels, click on Add Channels. This step can be skipped by clicking Skip.
If you have already logged in using CLI, Navigator will detected that and you’ll be asked to check your channels configuration. See Add default channels action for further instruction.
A few things happen “under the hood” when you successfully log in:
Your access token is created for Anaconda Server. This provides you with the ability to access private/authenticated/public channels, create environments, and download packages.
logged_api_url, team_edition_token, and team_edition_token_id in the Navigator config file (anaconda-navigator.ini) are updated. This is mostly system data to help Navigator integrate with the Anaconda Server.
- The Conda configuration file (.condarc) is modified:
- channels is set to an empty list so you can set appropriate channels
- default_channels, if present, will be removed
- channel_alias is set to the login used to access your Anaconda Server instance.
The access token is stored locally, which gives Conda ‘native’ access to remote channels and packages.
Once signed in, you will be able to add private channels in the “Manage Channels” popup using the <my_channel_name> format, rather than t/<token>/<my_channel_name>.
Click update index to gain access to all packages located in private/authenticated/public channels in the Anaconda Server instance.
A few things happen “under the hood” when you successfully log out:
- The Conda configuration file (.condarc) returns to the state it was in before the login. (Navigator saves a copy of the .condarc file before a login in attempted.)
- logged_api_url, team_edition_token, and team_edition_token_id are set to None in the Navigator config file (anaconda-navigator.ini).
- The access token created in the Anaconda Server instance is removed.
- The access token that was stored locally is removed.
To set the Anaconda Server API domain, go to the navigation bar and click on Preferences. In the text field labeled Anaconda Server API domain, enter the valid domain name:
Alternatively, this API domain can be set through the Configure Conda action:
- Click the button Configure Navigator:
- In the pop-up, find the option team_edition_api_url in the section [main] and enter your domain name (by default, the value is set to None):
- Click Save and Restart. The application will restart and the setting will be set.
Yet another option for users is to change this setting directly where the anaconda-navigator.ini file is located by default.
The domain must be a full path without a trailing slash. For example: http(s)://ate-mysite.com
If you are having issues logging in or know you’re logged in but cannot interact with Anaconda Server, see Trouble logging in to Anaconda Server from Navigator.