Edit Your Notebook

Upon creating a notebook, it opens automatically, presenting you with a single paragraph using the default %sql interpreter. You can change the interpreter by explicitly specifying one of %script, %python, %sql or %md

Set the context with a project with which your notebook is associated.
You can edit an existing notebook in your project. To edit an existing notebook:
  1. In Oracle Machine Learning home page, select the project in which your notebook is available.
  2. Go to the Oracle Machine Learning navigator, and select Notebooks. Alternatively, you can click the Notebooks quick link in the home page.
    In the right pane, all notebooks that are available in the project are listed.
  3. Click the notebook that you want to open and edit.
    The selected notebook opens in edit mode.
  4. In the edit mode, you can use the Oracle Machine Learning notebooks toolbar options to run code in paragraphs, for configuration settings, and display options.

    Figure 3-1 Notebook toolbar

    Notebook toolbar
    You can perform the following tasks:
    • Write code to fetch data
    • Click run to run one or all paragraphs in the notebook.
    • Click show hide code to hide all codes from all the paragraphs in the notebook. Click it again to display the codes.
    • Click show hide output to hide all outputs from all the paragraphs in the notebook. Click it again to view the outputs.
    • Click clear output to remove all outputs from all the paragraphs in the notebook. To view the output, click the run icon again.
    • Click clear notebook to delete all the paragraphs in the notebook.
    • Click export notebookto export the notebook.
    • Click search code to search any information in the codes present in the notebook.
    • Click keyboard shortcuts to view the list of keyboard shortcuts.
    • Click interpreter bindings to set the order for interpreter bindings for the notebook.
    • Click notebook display options to select one of the three notebook display options.
      • Click default to view the codes, output, and metadata in all paragraphs in the notebook.
      • Click Simple to view only the code and output in all paragraphs in the notebook. In this view, the notebook toolbar and all edit options are hidden. You must hover your mouse to view the edit options.
      • Click Report to view only the output in all paragraphs in the notebook.
    • Click edit options to access paragraph specific edit options such as clear output, remove paragraph, adjust width, font size, run all paragraphs above or below the selected paragraph and so on.
    • Add dynamic forms such as the Text Input form, Select form, Check box form for easy selection of inputs and easy filtering of data in your notebook. Oracle Machine Learning supports the following Apache Zeppelin dynamic forms:
      • Text Input form — Allows you to create a simple form for text input.

      • Select form — Allows you to create a form containing a range of values that the user can select.

      • Check Box form — Allows you to insert check boxes for multiple selection of inputs.

    Note:

    The Apache Zeppelin dynamic forms are supported only on SQL interpreter notebooks.
  5. Once you have finished editing the notebook, click Back.
    This takes you back to the Notebook page.