Customizing an environment for Anaconda Repository for Cloud Pak for Data

If a Cloud Pak for Data cluster administrator installed and configured Anaconda Repository for IBM Cloud Pak for Data, you can create an environment definition in your Watson Studio project and add a software customization to access packages from Anaconda Repository for IBM Cloud Pak for Data.

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 definition.

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

  1. Create an environment definition in your Watson Studio project. See Create an environment definition.
  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 definition to run notebooks and jobs in Watson Studio.

Parent topic: Customization options for conda and pip