Skip to content

Add SymPy Gamma entrypoint notebook to math gallery#66

Merged
koaning merged 1 commit into
mainfrom
koaning/sympy-gamma-notebook
Jun 16, 2026
Merged

Add SymPy Gamma entrypoint notebook to math gallery#66
koaning merged 1 commit into
mainfrom
koaning/sympy-gamma-notebook

Conversation

@koaning

@koaning koaning commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

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 /wasm molab badge. Pinned to Python >=3.12,<3.14 to avoid a matplotlib draw-time recursion on 3.14.

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings June 16, 2026 12:16
@koaning koaning merged commit c82951b into main Jun 16, 2026
3 checks passed
@koaning koaning deleted the koaning/sympy-gamma-notebook branch June 16, 2026 12:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/...json snapshot for CI session validation.
  • Add a Math gallery README entry with a molab /wasm badge 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 = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants