-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method to get all available DynamicModule variables? #9
Comments
Take a look at the documentation for I'm speaking here of things which are fully implemented in the desktop FE...some of it (particularly the palettes) is less relevant at the Cloud level, although I believe that Cloud does have an understanding of |
@jfultz Thank you for the reference, I guess the "save and resume" can be achieved by TaggingRules in Desktop FE.
But my point is that its very limited because it can only be used with predefined variables.
will make this a powerful and generic approach for storing/loading state on any cloud notebook. |
@portokallidis just to make it clear. A notebook contains many cells. Each cell can contain many dynamic modules. There's more, dynamic modules can be nested. Currently if you have cell's ID you can use the API to operate on the first dynamic module found in that cell. So even with This boils down to a request for a more fine grained control, including selecting them, over dynamic module instances. @jfultz @poeschko for what's it worth, our case involves single cell with a one case of a nested modules:
As for save and resume feature there are alternatives as making copy of notebooks or making notebooks only as a result of |
Currently to get the value of a DynamicModule variable in a notebook, you have to explicitly set the
name
of the variable.This is a huge limitation when it comes to deeper integrating the WL Notebooks within 3rd party platforms.
Ideally you can expose a method to discover all the "available" dynamic module variables in the embedded notebook which in turn will allow the creation of notebook agnostic functionalities such as "save and resume"**
**By exporting the current internal state of a Notebook (using getDynamicModuleVariable) and re-importing it (using setDynamicModuleVariable) at a later point in time to introduce advanced "save and resume" capabilities, especially in somewhat larger notebooks with multiple cells.
The text was updated successfully, but these errors were encountered: