Closed keller-mark closed 4 months ago
Optional commands
as dictionary of string to function with signature like:
def my_command(widget, plugin, values, buffers):
new_values = {}
new_buffers = []
return new_values, new_buffers
where widget and plugin are self
for the Widget and Plugin instances, respectively
Certain types of plugins will entail both custom JS and Python functions that need to work together.
337 documents the support for plugin_esm, but we should add a way to specify both the JS and Python so that users can pull them in together. Unclear exactly what the API should be
then can just pass an array of VitesscePlugin subclass instances like
vc.widget(plugins=[MyVitesscePlugin()]