Customizing an environment for Anaconda Repository for Cloud Pak for Data

After installing and configuring Anaconda Repository for IBM Cloud Pak for Data, you can create an environment template in your project and add software customizations that grant access to packages from Anaconda Repository for IBM Cloud Pak for Data.

Note:

Service Anaconda Repository for IBM Cloud Pak for Data is not available by default. An administrator must install this service.

Prerequisite: You must have the names of the conda channels created by the Cloud Pak for Data cluster administrator.

Required role: You need Admin or Editor permissions on the project to create an environment template.

To create an environment template with packages from your Anaconda Repository:

  1. Create an environment template in your project. See Create an environment template.
  2. Add a customization to access the Anaconda packages. See Adding a customization. For example, add:
    # Add conda channels below defaults, indented by two spaces and a hyphen.
    channels:
       - nodefaults
       - myDataScience
    
    # To add packages through conda or pip, remove the comment on the following line.
    # dependencies:
    
    # Add conda packages here, indented by two spaces and a hyphen.
    # Remove the comment on the following line and replace sample package name with your package name:
    #  - a_conda_package=1.0
    
    # Add pip packages here, indented by four spaces and a hyphen.
    # Remove the comments on the following lines and replace sample package name with your package name.
    #  - pip:
    #    - a_pip_package==1.0
    

Now you can use that environment template to run notebooks and jobs in Watson Studio.

Parent topic: Customization options for conda and pip