4.11 Use the Conda Interpreter in a Notebook Paragraph
Oracle Machine Learning Notebooks provides a Conda interpreter to enable administrators to create conda environments with custom third-party Python and R libraries. Once created, you can download and activate Conda environments inside a notebook session also using the Conda interpreter.
An Oracle Machine Learning notebook supports multiple languages. For this, you must create a notebook with some paragraphs to run SQL queries, and other paragraphs to run PL/SQL scripts. To run a notebook in different scripting languages, you must first connect the notebook paragraphs with the respective interpreters such as SQL, PL/SQL, R, Python, or Conda.
This topic shows how to start working in the Conda environment:
- Connect to the Conda interpreter
- Download and activate the Conda environment
- View the list of packages in the Conda environment
- Run a Python function to import the Iris dataset, and use the seaborn package for visualization
- 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. - Conda Interpreter Commands
This table lists the commands for the Conda interpreter. - Create a Conda Environment for Python and Install Python Packages
This topic demonstates how to create a Conda environment for Python packages, with Python 3.12.3 that is compatible with OML4Py. Here, you will also install the Python packages—tensorflow and seaborn from theconda-forge
channel. - Create a Conda Environment for R and Install R Packages
This topic shows how to create a Conda environment for R packages, with R-4.0.5 for OML4R compatibility, and install theforecast
andggplot2
packages. - Upload the Conda environments to an Object Storage bucket associated with the Autonomous Database
There is one Object Storage bucket for each data center region. The Conda environment is saved to a folder in Object Storage corresponding to the tenancy and database. The folder is managed by Autonomous Database and is only available to users through OML Notebooks. There is an 8G maximum size for a single Conda environment, and no size limit on Object Storage.
Parent topic: OML Notebooks