A streamlit app for browsing foraging behavior sessions in AIND.
- The one running on ECS: https://foraging-behavior-browser.allenneuraldynamics-test.org/
- If you see a window "Select a certificate for authentication", just click "Cancel".
- To debug, use this Code Ocean capsule
- See also a streamlit app for ephys sessions https://foraging-ephys-browser.allenneuraldynamics-test.org/ (Git repo)
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:
foraging-behavior-browser/code/Home.py
Lines 54 to 85 in 3f4124e
-
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.