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

Interactive plotting interface #159

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

breuleux
Copy link
Member

This adds a (very rough and tentative) interactive table/plot interface based on Starbear. Based on Fabrice's port to UV, but you don't need to use UV, you can just install the additional dependencies:

pip install gifnoc==0.4.1 starbear[server] plotnine griptape[all]

Make sure you can connect to SARC's database, e.g. by running ssh sarc in another terminal if you set up SSH.

Then start the server:

starbear serve -m sarc.app --dev --port 8541

Then point your browser to this address: http://localhost:8541/plot/test/

This will take some time because it needs to connect to SARC and download data for whatever parameters are set in the query. Once it downloaded the data, it will save it in plotting/cache/cached_query_xxxxx.pkl where xxxxx is the md5 hash of the query.

You can change the /test/ part at the end for anything you want. E.g. /plot/xyz/ will use/save configuration in plotting/config/xyz.yaml.

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