Automatic re-run on input change
You can run scripts automatically on UI opening and/or on any input change.
This feature is useful for fast prototyping. We recommend using it only
on fast Javascript
scripts only to avoid repeatable runs of computational-heavy code.
The automatic function calls are not saved, so to save results to the run history you should press Save button manually.
- Result
- Short sample
- Full sample
Your script header
//meta.runOnOpen: true
//meta.runOnInput: true
https://public.datagrok.ai/scripts
//name: Data stats
//language: javascript
//tags: demo
//input: dataframe inputDf {caption: Input dataframe; viewer: Grid(); category: Input data}
//output: dataframe outputDf {caption: Output dataframe; viewer: Line chart(block: 50) | Scatter plot(block: 50) | Statistics(block: 100); category: Stats}
//editor: Compute:RichFunctionViewEditor
//meta.runOnOpen: true
//meta.runOnInput: true
outputDf = inputDf.clone();