dataflow run just executes the notebook, it doesn't display the source code like observablehq does.
A new option, --display-source, can be added to signal to dataflow that source code should be showed alongside the rendered output, so people can learn more/inspect the code if they want to learn more.
dataflow run
just executes the notebook, it doesn't display the source code like observablehq does.A new option,
--display-source
, can be added to signal to dataflow that source code should be showed alongside the rendered output, so people can learn more/inspect the code if they want to learn more.For example, this is
example.ojs
dataflow run example.ojs --display-source
would then have show this in its rendered output:instead of:
Something like a
// @dataflow show
could be used to "pin" cells to enable this on a cell-by-cell basis.This would not be available in
dataflow compile
.