Both GUI and CLI tutorials as well as ipynb - #36
Merged
Merged
Conversation
…sed for any project in general.
Adding the notebook for Ryr Demo dataset visualization
…ssary output cells
The notebook's VBox/ipywidget cells were rendering blank when viewed on
GitHub or exported to PDF, because widgets require a live kernel. This
moves the ~470 lines of inline plotting and widget-wiring code out of
Visualization_Notebook.ipynb into a new visualization.py module, and
adds a top-level INTERACTIVE switch:
INTERACTIVE = False → static plots (Plotly→PNG via kaleido + matplotlib)
that render on GitHub. Default for the shared notebook.
INTERACTIVE = True → live ipywidgets viewers (clickable S2 sphere, PrD
slider, ψ slider) for local use on user data.
Each substantive code cell collapses to a single `viz.show_*()` call.
A VizSession class owns the cross-cell widget state (sphere ↔ PrD slider
sync, CC voting recolouring the sphere diamonds) that previously had to
live as notebook globals.
Setup cell also pulls in kaleido (Plotly static-PNG export), h5py, and
pillow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds both GUI and CLI tutorials. The end of each links to the same jupyter notebook for more in depth analysis of the data.