Skip to content

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.

@nurbal nurbal self-requested a review April 11, 2025 12:57
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