Add SymPy Gamma entrypoint notebook to math gallery#66
Merged
Conversation
A SymPy-Gamma-style notebook: type an expression and get its simplified and factored forms, roots, derivative, integral, series, and a plot, rendered live as a chart plus a two-column results table. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR adds a new math-gallery marimo notebook that acts as a SymPy Gamma–style “expression entrypoint,” and wires it into the gallery index along with the required session snapshot for CI.
Changes:
- Add
notebooks/math/sympy-gamma.py, an interactive SymPy notebook that parses an input expression and displays derived forms plus a plot. - Add the corresponding
__marimo__/session/...jsonsnapshot for CI session validation. - Add a Math gallery README entry with a molab
/wasmbadge link.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| README.md | Adds a new Math gallery row linking to the SymPy Gamma notebook. |
| notebooks/math/sympy-gamma.py | Introduces the SymPy Gamma-style interactive notebook (parse → table + plot). |
| notebooks/math/marimo/session/sympy-gamma.py.json | Adds the precomputed marimo session snapshot required by CI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+79
to
+80
| # Show the parsed expression as LaTeX directly beneath the input box. | ||
| return expr, var |
|
|
||
| @app.cell | ||
| def _(expr_input, plot_output, table): | ||
| from mohtml import br,p |
Comment on lines
+95
to
+96
| except Exception: | ||
| real_roots = [] |
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.
Adds
notebooks/math/sympy-gamma.py, a SymPy-Gamma-style entrypoint: type an expression and it is parsed live and shown as rendered LaTeX, a plot, and a two-column table of its simplified/factored/expanded forms, roots, derivative, integral, and series. Includes the precomputed session JSON and a Math-section README entry with a/wasmmolab badge. Pinned to Python>=3.12,<3.14to avoid a matplotlib draw-time recursion on 3.14.🤖 Generated with Claude Code