-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
traceplot using anywidget #36
Comments
Development has started. I was able to get anywidget to render the |
Do you want the data processing to be done in javascript? Or precomputed in python? I looked a bit at observablehq website and it wasn't clear to me how data processing happens |
I would like to try having data computations done in the browser, if they are not resource intensive. This is why the arviz.js repo exists; to handle computations that the browser can do easily, and update the plots accordingly. |
The dropdown menus didn't show when clicked (for what ever reason) but the code now parses through the posterior object to populate one dropdown with 2024-09-12_17-22-50.webm |
Parsing through the data is going to be a challenge, and we may want to use something like DuckDB for it...maybe. @yilinxia what are your opinions about using DuckDB vs not? |
After looking at DuckDB, I do not think we should use it as a tool since we would need to use the wasm version of it, and that seem unnecessarily heavy atm. I will continue to work on parsing the |
From my experience with DuckDB, it is pretty powerful and VERY fast. Yeah, WASM would be a great use case for DuckDB and we possibly will use it if we plan to make the computation happens in the browser. |
hooking up interactivity with the menus was a straight forward callback. Note that this will fail when there are no coordinates associated with a variable, so other checks need to be made for non-hierarchical values. Screencast.from.2024-09-13.22-00-45.webm |
I've diverged from creating a forestplot (atm) to look at interactivity etc for traceplots. Below shows the dropdowns correctly updating the figure with tooltips as you move the mouse. Next thing I'll try is getting an interactive legend. Screencast.from.2024-09-15.16-16-50.webm |
Step closer, with chains being muted. Still need to figure out how to prevent the tips from overlapping. Screencast.from.2024-09-15.22-21-22.webm |
definitely not a forestplot yet, but the posterior tagging @OriolAbril and @zaxtax if you're interested 2024-10-09.00-18-55.webm |
dropdowns are not showing, but I've decided to switch this from a forestplot to the traceplot that is functioning well. Now to apply some styling 2024-10-09_19-16-09.webm |
A few hoops to go through due to the package not being completely built from the branch, but it straight up works in colab 2024-10-09_19-55-57.webm |
Previous iterations assumed single hierarchical variables, eg a(b) and not a(b, c). This version handles that, and does not assume a set number of hierarchical variables. This can be seen when we change data from 2024-10-23-17-19-30_1.webmThere are a few more items to deal with, but I'm inclined to have this reviewed in a PR. |
The text was updated successfully, but these errors were encountered: