Notebook
The Notebook toolbox makes a Divooka Notebook: a web page your document lays out, with pages of input cells (text boxes, numbers, sliders, choices, dates, check boxes, uploads) and outputs (Markdown, charts, tables, pictures, downloads). Each input names a Function graph that answers it. Run the document and the page opens in your browser; host it on your network with dvn and colleagues can use it without installing Divooka.
Use it for small internal tools and dashboards: a calculator for a team, a chart with a slider, a form that runs a report.
- Included in: Divooka Compute Standard only. Start a document from the Web Development workload, or add the Divooka Notebook reference with Add reference (
Ctrl+Shift+L). - Maturity: Preview · Support: Tier 2 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → Notebook, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ Dashboard Services (2 examples) · node reference
New to graphs? Start with Your first program.
Example: a chart with a slider
Open Dashboard Services > Crop Yield Notebook (Ctrl+Shift+E):
- Build lays out two pages: Yield, with a slider, and Notes.
- The slider's On Change is the Function Curve. It returns Plot With Parameter, which samples YieldAt, a Function of a temperature, from 0 to 40 °C, with the slider's value as the best temperature:
10 * exp(-((t - best) / 8)^2). - Answer On Load draws the chart from the slider's starting value as soon as the page opens.
Run it with F5. The page opens in your browser; move the slider and the expected yield curve moves. Switch the chart to Table to see the numbers.
To share it: run dvn "Crop Yield Notebook.dvk" 0.0.0.0:5080 and open port 5080 on that computer from another one.
Tips and limits
- Each visitor gets their own copy of the document, so one visitor's data members never show up for another.
- 0.0.0.0 serves your whole network. Use it only where everyone on that network may use the notebook.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| Notebook Application | Make Notebook Application, Add Cell, Add Page, Answer On Load and 33 more |
| Notebook Cells | Button, Checkbox, Choice, Date and 15 more |
| Notebook Outputs | Chart, Code, Download, Html and 8 more |
| Notebook Inputs | Make Notebook Inputs, Get, Names, Get File and 4 more |
| Notebook File | Make Notebook File, Get Content Type, File Name, Get Length and 4 more |
See also
- Notebook node reference
- Divooka Notebook - concepts, hosting and reference.
- Toolboxes - every other toolbox.