Skip to content
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

Allow embedding app state #250

Merged
merged 21 commits into from Mar 12, 2019
Merged

Allow embedding app state #250

merged 21 commits into from Mar 12, 2019

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Feb 22, 2019

This allows exporting panel objects with embedded state, much like a HoloMap in HoloViews. This works by searching for all widgets which define a fixed set of options, taking their cross-product, evaluating the widget values and recording the corresponding app state. The app state can then be replayed by applying the state to the document whenever a widget value changes.

Here is a demo of some embedded state: https://anaconda.org/philippjfr/state_embed/notebook

Copy link
Member

@jbednar jbednar left a comment

I haven't tested this out, but it sounds fabulous!

panel/holoviews.py Outdated Show resolved Hide resolved
panel/util.py Outdated Show resolved Hide resolved
@philippjfr philippjfr force-pushed the embed branch 2 times, most recently from 171278d to 1ba5526 Compare Feb 22, 2019
@philippjfr philippjfr merged commit 3479257 into master Mar 12, 2019
2 of 3 checks passed
@philippjfr philippjfr deleted the embed branch Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants