4.11.1 About the Conda Environment and Conda Interpreter

Conda is an open-source package and environment management system that allows the use of environments containing third-party Python and R libraries. Oracle Machine Learning User Interface (UI) provide the conda interpreter to install third-party Python and R libraries inside a notebook session.

Third-party libraries installed in Oracle Machine Learning Notebooks can be used in:
  • Standard Python
  • Standard R
  • Oracle Machine Learning for Python embedded Python execution from the Python, SQL and REST APIs
  • Oracle Machine Learning for R embedded R execution from the R, SQL, and REST APIs

To start working in the Conda environment:

  1. Ensure that a Conda environment is saved to Object Storage, or update an existing package by installing a new version.

    Note:

    You must be signed in as ADMIN user to create the Conda environment. The administrator manages the lifecycle of an environment, including adding or deleting packages from it, and removing environments. The Conda environments are stored in an Object Storage bucket associated with the Autonomous Database.
  2. Sign into Oracle Machine Learning UI and download the Conda environment. To download the Conda environment, type:
    %conda 
    download myenv
  3. Activate the Conda environment. To activate the Conda environment, type:
    activate myenv

    Note:

    There is only one active Conda environment at a given point in time.
  4. Create a notebook, use the Conda interpreter to use third-party libraries in the Object Storage. To use the Conda interpreter, type %conda at the beginning of the paragraph to connect to the Conda environment, and work with third-party libraries for Python. You can switch between the preinstalled Conda environments. For example, you can have an environment for working with Graph analysis, and another environment for Oracle Machine Learning analysis.
  5. Deactivate the Conda environment. As a best practice, deactivate the Conda environment after you have finished working on your machine learning analysis. To deactivate the environment, type:
    deactivate