Skip to content

Add persistence to components#2

Open
JHSaunders wants to merge 9 commits intoreasoned-ai:masterfrom
BusinessOptics:master
Open

Add persistence to components#2
JHSaunders wants to merge 9 commits intoreasoned-ai:masterfrom
BusinessOptics:master

Conversation

@JHSaunders
Copy link
Copy Markdown

Plotly offers a standard way to persist values between sessions,

https://dash.plotly.com/persistence

This adds that capability. It is split into two commits, the first makes the actual changes and the second builds all the derived artifacts.

The changes are very simple.

The changes are minor and simply involve settings some props on the component. Dash takes care of teh rest. This allows for the code value to be maintained across sessions.

See https://dash.plotly.com/persistence for more information
JHSaunders added a commit to BusinessOptics/fn_graph_studio that referenced this pull request Mar 29, 2020
The result processor now uses a small ace-editor. It syntax highlights as well as debouncing so input is not sluggish.

The dash-ace dependency is currently pulled off of a fork in order to activate persistence, this shoud  move of fthe primary package once reasoned-ai/dash-ace#2 is merged.

The code definition is now highlighted using pygments.
@JHSaunders
Copy link
Copy Markdown
Author

@xumiao Is there any chance of getting this merged in and packaged? Otherwise we have to fork it to create a new pypi package, which we don't want to do, but not having it in a package is stopping us from publishing our downstream packages.

@xumiao
Copy link
Copy Markdown
Contributor

xumiao commented Apr 24, 2020

@JHSaunders , thanks for the feature. This seems to be useful.

Are you fine with the new package? Or you would like to use this one instead.
If you resubmit the pull request without the new package part, I can merge it in. Otherwise, I will add it myself later.

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.

2 participants