VizierDB / web-api-async

Vizier Asynchronous Web API
Apache License 2.0
2 stars 2 forks source link

Support for Global Variables / Notebook Parameters #28

Open okennedy opened 5 years ago

okennedy commented 5 years ago

TL;DR: Allow notebooks to declare single-valued parameters instead of needing to create single-cell datasets.

A frequent request at SIGMOD was for notebook parameters. The idea is to abstract out specific workflow configuration elements into a separate area of the notebook. These parameters would then be accessible in individual cells. For example:

The primary benefit of parameters is that it becomes possible to export the notebook functionality as a library. To allow external notebooks to call in to this notebook, you need to have a way to communicate configuration options from outside -- parameters are a natural way to do this.

There are a few secondary benefits

Parameters could be typed: including native types (int, float, string, date, etc...), as well as workflow-specific types (column-set, dataset, etc...). That in turn lets us create custom UIs for each type (e.g., file uploading for datasets).

julianafreire commented 5 years ago

Check https://github.com/nteract/papermill

okennedy commented 5 years ago

Yes, exactly this... though with a first-class treatment in the UI