6.1 Working with Notes
The Notebook Home page lists your existing notes, along with controls for importing and creating new notes. When you open a note, it’s displayed in its own Note page as a collection of paragraphs that contain snippets of code for accessing services, running jobs, and displaying results. You can define and run the code quickly and iteratively, which provides flexibility for analyzing and visualizing your data.
Commands for performing actions on the entire note are on the toolbar at the top of each Note page.
Commands for performing actions on individual paragraphs are on the toolbar on the right side of each paragraph on the Note page. Paragraphs contains a code section, where you enter your source code, and an output section, which displays the output from executing that code.
- Using the Commands on the Note Toolbar
Use the toolbar at the top of the Note page to perform actions on the entire note. - Using the Commands on the Paragraph Toolbar
Use the toolbar on the right side of a paragraph panel to perform actions on that paragraph only.
Parent topic: Analyzing Data Interactively With Notes
6.1.1 Using the Commands on the Note Toolbar
Use the toolbar at the top of the Note page to perform actions on the entire note.
Item | Action |
---|---|
Run all paragraphs | Executes all the paragraphs in the note sequentially, in the order they’re displayed. |
Show/hide the code | Shows or hides the code sections of all paragraphs in the note. |
Show/hide the output | Shows or hides the output sections of all paragraphs in the note. |
Clear output | Clears the output sections of all paragraphs in the note. |
Clone note | Makes a copy of the note. |
Export this note | Exports the code and output sections of all the paragraphs in the note to a JSON file in your web browser’s default download directory. If the output sections are very long, consider clearing the output before exporting the note, to save space. |
Version control | Commits the content of the note to the current repository. When you click this button, you’re prompted for a commit message. The message you enter here is displayed in the Head list, described below. |
Head (revision) drop-down list |
Displays a list of previously committed revisions of the note, if any. By default, the head revision is selected. If you want to view a previous revision, select it from the list. Click Set revision to set the head to the current revision. |
Move note to trash | Deletes the note. |
Run scheduler | Schedule the execution of all paragraphs in the note with a cron scheduler. When you select this option, a pop-up window displays the following options::
|
Parent topic: Working with Notes
6.1.2 Using the Commands on the Paragraph Toolbar
Use the toolbar on the right side of a paragraph panel to perform actions on that paragraph only.
Item | Action |
---|---|
Status | Shows the status of the paragraph. It can be one of the following:
|
Run this paragaph (Shift+Enter) |
Executes the code in the code section of the paragraph. |
Show/hide editor (Control+Option+E) |
Shows or hides the code section of the paragraph. |
Show/hide output (Control+Option+O) |
Shows or hides the output section of the paragraph. |
Menu | Opens a menu with the following options that apply to the current paragraph:
|
Parent topic: Working with Notes