.condarc
file to understand which channels Workbench users have access to when creating environments or installing packages in projects. Configuring conda at the system level overrides any user-level conda configurations.
The system-level .condarc
file is populated from the conda:
section of the anaconda-enterprise-anaconda-platform.yml
configmap file or the values.yml
helm chart override file. If no modifications are made during installation, the default Workbench .condarc
file looks like this:
Default .condarc configuration
Default .condarc configuration
main
and r
channels. However, with the channel_alias:
set to the internal Workbench repository, conda is still able to access channels created within Workbench (whether via the UI or CLI) when the channel name is invoked in a conda command with the -c
tag, or listed in a project’s anaconda-project.yml
configuration file, even if they are not listed in the .condarc
.Anaconda recommends removing the
r
channel if you are not using R language packages.conda:
section to include the channels you need to provide to all Workbench users.
Anaconda recommends listing only
defaults
in the channels:
list, and listing only necessary channels in the default_channels:
list. Place the channels you want available to all users in the default_channels:
list..condarc
configuration variations that you can use as a template for your own .condarc
settings.
Using internal Workbench repository channels only
Using internal Workbench repository channels only
If you want to centralize all of your channels to the internal Workbench repository, mirror the external channels and packages you want into internal Workbench channels. Make your internal channels available to all users by entering them in the
default_channels:
list by name, and leave the channel_alias:
alone.Using the internal Workbench repository with external channels
Using the internal Workbench repository with external channels
Similar to the default configurations, if you would like to be able to access the internal Workbench repository channels and still provide access to specific external repository channels, enter the full URL of the external channel location(s) in the
default_channels:
list and leave the channel_alias:
alone.External repository channels only
External repository channels only
If you have a repository of channels and packages that are hosted on an external site, you can set the
channel_alias:
to the repository’s fully qualified domain name (FQDN). This setup enables you to invoke channel names in conda commands using the -c
tag. In this example, we use anaconda.org as an external repository site:anaconda-enterprise-cli
before they can access packages from them. For more information about channel sharing, see sharing channels.
Configuring a proxy for conda
You can configure Workbench to use a proxy server for conda if your organization’s network security policy requires it.Obtain your proxy values
You must know the address of your proxy server and what port you need to communicate over to proceed. Gather this information, and keep it somewhere you can reference quickly.Verify proxy values
Test your proxy values by setting them as environment variables from within a Workbench project:- Log in to Workbench.
-
Open a session in the project you want to use to test the proxy.
If the project already has a session open, you’ll need to stop the current session and open a new one.
- Open a terminal window within JupyterLab.
-
Set and export your proxy variables by running the following commands:
-
Verify the proxy works by running the following command: