4 OML Notebooks
Oracle Machine Learning Notebooks is an enhanced web-based notebook platform for data analyst and data scientists. You can write code, text, create visualizations, and perform data analytics including machine learning. Notebooks work with interpreters in the back-end. In Oracle Machine Learning user interface, notebooks are available in a project, where you can create, edit, delete, copy, move, and even save notebooks as templates.
- Oracle Machine Learning Notebooks
Oracle Machine Learning Notebooks is an enhanced web-based notebook platform for data engineers, data analyst, R and Python users, and data scientists. You can write code, text, create visualizations, and perform data analytics including machine learning. Notebooks work with interpreters in the back-end. - GitHub Notebooks
Oracle Machine Learning UI supports direct interaction of Oracle Machine Learning Notebooks with your external GitHub repositories. You can now directly import notebooks from your GitHub repositories. - Enable GPU Compute Capabilities in a Notebook through the Python Interpreter
This topic demonstrates how to enable GPU compute capabilities in a notebook through the Python interpreter. It also shows how to get information about the current GPU on which the notebook is running, and other details. - Visualize your Data in Oracle Machine Learning Notebooks
Oracle Machine Learning Notebooks offer rich visualization capabilities of your data. The visualizations depend on the type of your dataset. - Export a Notebook
You can export a Notebook in Native format (.dsnb) file, Zeppelin format (.json) file, in Jupyter format (.ipynb), and later import them in to the same or a different environment. - Import a Notebook
You can import notebooks into your Oracle Machine Learning UI projects. Oracle Machine Learning UI supports the import of notebooks in the native format(.dsnb), Zeppelin(.json)and Jupyter(.ipynb)notebooks. Oracle Machine Learning UI also supports importing notebooks from your GitHub repository. - About Interpreters and Notebook Service Levels
An interpreter is a plug-in that allows you to use a specific data processing language backend. - Run Notebooks using different interpreters
An interpreter is a plug-in that allows you to use a specific data processing language backend. You select an interpreter by inserting its directive at the beginning of a notebook paragraph. - Use the Scratchpad
The Scratchpad provides you convenient one-click access to a notebook for running SQL statements, PL/SQL, R, and Python scripts that can be renamed. The Scratchpad is available on the Oracle Machine Learning User Interface (UI) home page.
4.1 Export a Notebook
You can export a Notebook in Native format (.dsnb) file,
Zeppelin format ( .json ) file, in Jupyter format ( .ipynb
), and later import them in to the same or a different environment.
Related Topics
Parent topic: OML Notebooks
4.2 Import a Notebook
You can import notebooks into your Oracle Machine Learning UI projects.
Oracle Machine Learning UI supports the import of notebooks in the native format
(.dsnb), Zeppelin (.json) and Jupyter
(.ipynb) notebooks. Oracle Machine Learning UI also supports importing
notebooks from your GitHub repository.
.json) and Jupyter (.ipynb) notebooks.
Import Notebook from File
- On the Notebooks page, click Import. Here, you have
two options—File and Git.
- Click File. This opens the File Upload dialog.
- In the File Upload dialog, browse and
select the notebook to import.
Note:
You must have the notebook saved as a.jsonfile or.dsnbfile to import it. You can import notebooks exported from non-Oracle Apache Zeppelin environments, but only paragraphs types that are supported may be run. - Click Open.
This completes the task of importing a notebook file into your project.
Import/Clone Notebooks from GitHub
- On the Notebooks page, click Import. Here, you have two options—File and Git.
- Click Git. This opens the GitHub
Checkout page.
- On the GitHub Checkout page, enter these
details:
- Repository URL: Enter the URL of
the GitHub repository you want to access. You have the following
options to provide the GitHub repository URL:
- Minimum valid URL:
You can provide the GitHub URL containing only the
repository name and the owner. For example,
https://github.com/RepoOwner/RepoName. This loads the branches found in the remote repository. - Base URL and branch:
Enter the GitHub repository URL along with the branch
you want to clone. For example,
https://github.com/RepoOwner/RepoName/tree/BranchName/orhttps://github.com/RepoOwner/RepoName/blob/BranchName/. This automatically loads the Branches field. Select the Branch Name defined in the URL. and this will trigger the load of the directory structure found in the repository. - Base URL, branch and
directory: You can also provide the
GitHub URL containing one or several sub-directories in
the remote repository. For example,
https://github.com/RepoOwner/RepoName/tree/Branch/Dir/Di2rThis loads the directory structure and pre-select the directory specified in the URL. - Complete file path:
You can also enter the complete file path in the remote
GitHub repository. For example,
https://github.com/RepoOwner/RepoName/blob/Branch/Dir/file.dsnb. This loads the branches, directories and the file in the Selected notebooks field at the bottom of the dialog.
- Minimum valid URL:
You can provide the GitHub URL containing only the
repository name and the owner. For example,
- Select a credential: Click the down arrow and select a credential. If you do not have a credential created, click the + icon to create one. See Create GitHub Credentials for more information.
- Branch: The drop-down menu displays the branches available in the remote GitHub repository based on the specified repository owner, repository name, and credential combination. Select a branch. The notebooks available in the branch are listed. You can also filter the notebooks you are looking for by typing in the notebook name in the Filter field.
- Select the notebooks you want to clone and click Add. The notebooks you selected are now listed in the Selected notebooks section.
- Click Checkout. This starts cloning all the GitHub notebooks you selected. Once completed, it displays the message "Notebooks successfully cloned". Click Open Notebook listing on the message box to go to the Notebooks listing page.
This completes the task of cloning and importing a notebook from your GitHub repository.
- Repository URL: Enter the URL of
the GitHub repository you want to access. You have the following
options to provide the GitHub repository URL:
Parent topic: OML Notebooks
4.3 Use the Scratchpad
The Scratchpad provides you convenient one-click access to a notebook for running SQL statements, PL/SQL, R, and Python scripts that can be renamed. The Scratchpad is available on the Oracle Machine Learning User Interface (UI) home page.
Note:
The Scratchpad is a regular notebook that is prepopulated with four paragraphs -%sql, %script,
, %python and %r.
Parent topic: OML Notebooks






