Paragraphs

Table of Contents

Notebooks are composed of paragraphs.

Each paragraph has two sections: the editor section and the output section.

New notebook

The editor section can contain text and code, while the output section contains the results after the whole notebook or a paragraph has been run.

All other paragraph manipulation is done by control buttons and the settings menu.

Editor

The editor section is at the top of the paragraph, above the output section. You can toggle the visibility of editor and line numbers from paragraph controls.

You can freely write in the editor by clicking it and then typing on it.

example of paragraph editor

Teragrep will automatically highlight your code if you add an interpreter at the start of your code, i.e. %md for Markdown text. Read more about interpreters here.

Output

You can see the output of your script on the editor by clicking the run button on the right side of paragraph controls. When you have made changes to your script, remember to run your paragraph again to update the output.

The output varies depending on which interpreter you are using. For example, Markdown is suitable for basic text content and DPL for analysing datasets.

example of markdown output

You can toggle the visibility of paragraph’s output from paragraph controls.

New paragraph

You can add a new paragraph by clicking 'Add paragraph' text. The button is located at the top right and bottom right of a paragraph.

Add paragraph

Only notebook owners and writers can add new paragraphs in the notebook.