Notebook Outputs
12 nodes
On this page 12
Chart
FunctionA chart of one or more series, drawn by the page.
Chart -> Notebook Chart
kind: Text
title: Text
series: Notebook Series Array
xLabel: Text
yLabel: TextNotebookChart Chart(
string kind,
string title,
NotebookSeries[] series,
string xLabel = "",
string yLabel = "")Parameters
| name | type | default | description |
|---|---|---|---|
| kind | Text | — | line, scatter, bar, area or histogram. |
| title | Text | — | |
| series | Notebook Series Array | — | |
| xLabel | Text | — | |
| yLabel | Text | — |
Returns
| result | Notebook Chart |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Code
FunctionShow source code.
Code(code: Text, language: Text) -> Notebook Code
NotebookCode Code(string code, string language = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| code | Text | — | |
| language | Text | — | For highlighting: csharp, python, json…; empty for none. |
Returns
| result | Notebook Code |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Download
FunctionOffer a file for download.
Download(path: Text, fileName: Text) -> Notebook Download
NotebookDownload Download(string path, string fileName = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | |
| fileName | Text | — |
Returns
| result | Notebook Download |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Html
FunctionShow an HTML fragment.
Html(HTML: Text) -> Notebook Html
NotebookHtml Html(string html)
Parameters
| name | type | default | description |
|---|---|---|---|
| HTML | Text | — |
Returns
| result | Notebook Html |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Html Page
FunctionShow a whole HTML page, in a frame of its own.
HtmlPage(HTML: Text) -> Notebook Html Page
NotebookHtmlPage HtmlPage(string html)
Parameters
| name | type | default | description |
|---|---|---|---|
| HTML | Text | — |
Returns
| result | Notebook Html Page |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Line Chart
FunctionA line chart of one run of numbers.
LineChart -> Notebook Chart
title: Text
x: Number Array
y: Number ArrayNotebookChart LineChart(string title, double[] x, double[] y)
Parameters
| name | type | default | description |
|---|---|---|---|
| title | Text | — | |
| x | Number Array | — | |
| y | Number Array | — |
Returns
| result | Notebook Chart |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Markdown
FunctionShow text as Markdown.
Markdown(text: Text) -> Notebook Markdown
NotebookMarkdown Markdown(string text)
Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — |
Returns
| result | Notebook Markdown |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Picture
FunctionShow a picture file with a caption.
Picture(path: Text, caption: Text) -> Notebook Picture
NotebookPicture Picture(string path, string caption = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | |
| caption | Text | — |
Returns
| result | Notebook Picture |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Plot Function
FunctionA line chart of a function, sampled across a range: what to return to show how something varies, without building the numbers first.
PlotFunction -> Notebook Chart
title: Text
from: Number
to: Number
function: Func<Number, Number>
samples: Integer
xLabel: Text
yLabel: TextNotebookChart PlotFunction(
string title,
double from,
double to,
Func<double, double> function,
int samples = 101,
string xLabel = "",
string yLabel = "")Parameters
| name | type | default | description |
|---|---|---|---|
| title | Text | — | |
| from | Number | — | |
| to | Number | — | |
| function | Func<Number, Number> | — | The function to draw - a Function graph from a number to a number, made with Edit Function on this pin. |
| samples | Integer | 101 | How many points to draw it with, from 2 to 2000. |
| xLabel | Text | — | |
| yLabel | Text | — |
Returns
| result | Notebook Chart |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Plot With Parameter
FunctionA line chart of a function of a number and a parameter, sampled across a range with the parameter held: what to return when an input moves the curve, such as a slider setting where its peak is.
PlotWithParameter -> Notebook Chart
title: Text
from: Number
to: Number
parameter: Number
function: Func<Number, Number, Number>
samples: Integer
xLabel: Text
yLabel: TextNotebookChart PlotWithParameter(
string title,
double from,
double to,
double parameter,
Func<double, double, double> function,
int samples = 101,
string xLabel = "",
string yLabel = "")Parameters
| name | type | default | description |
|---|---|---|---|
| title | Text | — | |
| from | Number | — | |
| to | Number | — | |
| parameter | Number | — | |
| function | Func<Number, Number, Number> | — | The function to draw, of the sampled number and the parameter - a Function graph made with Edit Function on this pin. |
| samples | Integer | 101 | How many points to draw it with, from 2 to 2000. |
| xLabel | Text | — | |
| yLabel | Text | — |
Returns
| result | Notebook Chart |
Remarks
The parameter is passed rather than stored and read back because the order a Function graph runs its unconnected nodes in is not defined: a data member set in the same function as the chart might be set after the chart has already been sampled.
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Scatter Chart
FunctionA scatter chart of points.
ScatterChart -> Notebook Chart
title: Text
x: Number Array
y: Number ArrayNotebookChart ScatterChart(string title, double[] x, double[] y)
Parameters
| name | type | default | description |
|---|---|---|---|
| title | Text | — | |
| x | Number Array | — | |
| y | Number Array | — |
Returns
| result | Notebook Chart |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook
Series
FunctionA named run of numbers for NotebookOutputs.Chart.
Series -> Notebook Series
name: Text
x: Number Array
y: Number ArrayNotebookSeries Series(string name, double[] x, double[] y)
Parameters
| name | type | default | description |
|---|---|---|---|
| name | Text | — | |
| x | Number Array | — | Empty when only the order of the values matters. |
| y | Number Array | — |
Returns
| result | Notebook Series |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Notebook Outputs
- Package
- Divooka Notebook