PyWorkflowApp / visual-programming

A Python Visual Programming Workspace for Data Science
MIT License
33 stars 12 forks source link

UI: Handling global flow variables #64

Closed reelmatt closed 4 years ago

reelmatt commented 4 years ago

KNIME

In KNIME, global flow variables are defined per workflow from a dropdown menu

KNIME global vars

which pops up a list of all currently defined variables, with options to add, edit, or remove any global variables.

KNIME global vars list

PyWorkflow

Existing endpoints for global variables:

In terms of UI, one suggestion for how to implement this is a new section somewhere in the workspace, displaying the info retrieved from /workflow/globals. A + button could trigger the POST request, appending the is_global attribute (whereas Nodes dragged from the list would not include is_global or POST it as false).

Pyworkflow global vars