You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now our clientside callbacks need to reference a separate file - typically loaded in via assets - where the functions are defined in a special namespace:
From a user standpoint, at least for simple functions it would be convenient to be able to provide the function just as a string with the callback definition. We would then package these up with some automatic namespace and naming, either as a separate endpoint or just a special case of _dash-component-suites, and reference it in the generated index alongside all the other scripts.
Taking this one step further, it would be great if we could use a transpiler like Transcrypt to write the callback in python then convert it to js, Then the API for clientside callbacks and server callbacks could be integrated like
The simple and dumb way to do this would be to use inspect to dump the source to a temporary file, transpile it, then load and deploy the js. We would probably want to do some preprocessing on the source to make sure the callback is "simple."
The entire global context probably shouldn't be included in the transpiling, but we could allow users to pass in a context so that calls like
Right now our clientside callbacks need to reference a separate file - typically loaded in via assets - where the functions are defined in a special namespace:
Then in the app you reference these functions by namespace and name:
From a user standpoint, at least for simple functions it would be convenient to be able to provide the function just as a string with the callback definition. We would then package these up with some automatic namespace and naming, either as a separate endpoint or just a special case of
_dash-component-suites
, and reference it in the generated index alongside all the other scripts.The text was updated successfully, but these errors were encountered: