A Notebook is a sequence of blocks. Some blocks are narrative, one runs code, and others are interactive controls that drive a variable. You insert any of them by typing / in the document, or from the Insert menu of the toolbar.
Text blocks
A heading and a paragraph hold formatted text: titles, bold and italic words, and lists. They carry the explanation around the code and never run.
Equations
An equation block holds a LaTeX formula and renders it inline, next to your text. For example f(x) = \sin(x)\,e^{-\lambda x} is typeset as a mathematical expression. Equations are for display only; they are not evaluated.
Code cells
A code cell holds Nelson code. Its left margin has three run buttons: run this cell, run up to this cell, and run the section (a code cell together with the text and controls above it, up to the previous heading). The toolbar adds Run all for the whole document.
When you change a cell, the cells whose result may now be out of date are marked. Run stale re-runs only those and the cells that depend on them, instead of the whole document. Clear removes every saved output.
Live task
A live task is a point-and-click cell: you choose an operation and its inputs, and the cell writes the Nelson code for you and runs it. It is a quick way to build a step without writing the code by hand.
Interactive controls
A control is bound to a workspace variable. When you move or change the control, it sets that variable and re-runs the cells that use it, so a figure updates while you adjust a value. The available controls are:
For example, a slider labelled Frequency bound to the variable frequency sets that variable each time you move it, and a cell that plots sin(frequency * x) redraws at once.
A shareable view
Hide code folds the code cells away and keeps the text, the controls and the output, which turns the document into a short report a reader can use without seeing the code. Outline lists the headings so you can move through a long document.
| Version | Description |
|---|---|
| 2.0.0 | initial version |