A streamlit app for browsing foraging behavior sessions in AIND.
Starting from this PR, the URL contains (part of) the session state of the app. Meaning that the user can "query" pre-set filters and plot settings in the URL. On the other hand, after interacting with the app, the URL is automatically updated to reflect the user interactions, and the user can then copy and paste the URL to share/save the new context. Essentially, this becomes a cool way of sharing a data analysis.
For example, this URL show all plots of mouse 699982
and this URL will show exactly the plot below. Note the filters and plot settings are preserved.
So far, theses are all supported fields in the URL query:
https://github.com/AllenNeuralDynamics/foraging-behavior-browser/blob/3f4124e98ed7aa3524b2d32c0670e8cd92ec9e41/code/Home.py#L54-L85
Duplicate the capsule foraging-behavior-browser
Start a VS Code machine
Click "Start Debugging" or press F5
You should see something like this in the terminal
and a dialog like this
Press "Open in Browser" will initiate the app.
If "Open in Browser" doesn't show up, click the browser icon in Ports - 8501 - Local Address
.
You can start to debug the app by adding break points etc.