Skip to content

Use CalculusWithJuliaSquared instead of a direct Plots dependency#2

Merged
AronT-TLV merged 4 commits into
mainfrom
feature/use-calculuswithjuliasquared
Jul 16, 2026
Merged

Use CalculusWithJuliaSquared instead of a direct Plots dependency#2
AronT-TLV merged 4 commits into
mainfrom
feature/use-calculuswithjuliasquared

Conversation

@AronT-TLV

Copy link
Copy Markdown
Member

Summary

Step 2.5b of the CalculusWithJuliaSquared integration: this repo now consumes CalculusWithJuliaSquared (personal pure-Julia fork, unregistered — installed from its GitHub URL, Manifest pins repo-url tracking master) and reexports it, so one using Calculus provides plotting, symbolic math, root finding, and ready-made calculus utilities/recipes.

  • Plots removed from Project.toml — it arrives transitively through CWJS's reexport chain
  • The module's GKSwstype headless-CI block removed — CWJS runs the identical pattern at its own load time
  • copilot-instructions.md gains a "What CalculusWithJuliaSquared Provides" section (recipes, utilities, symbolic capabilities, how to update the pinned commit) so future sessions check what exists before writing new functions
  • source.instructions.md module/dependency sections updated to match reality (also drops BlockArrays/LAlatex mentions that were template leftovers never actually in Project.toml)

Test plan

  • Pkg.resolve() + full test suite passes in the workspace
  • Verified using Calculus alone provides plot, @variables, riemann, and the L"..." macro
  • riemann(sin, 0, pi, 1_000) ≈ 2 sanity check through the full chain

🤖 Generated with Claude Code

AronT-TLV and others added 4 commits July 16, 2026 18:07
Adds CalculusWithJuliaSquared (personal pure-Julia fork of
CalculusWithJulia.jl, unregistered -- installed from its GitHub URL,
Manifest pins repo-url tracking master) and reexports it from the Calculus
module. It brings Plots, Symbolics, Roots, LinearAlgebra, SpecialFunctions,
and IntervalSets through its own reexport chain, plus calculus utilities
(riemann, fubini, lim, sign_chart, tangent, secant, D/f' notation) and
plotting recipes (plotif, trimplot, riemann_plot, newton_plot!, ...), so:

- Plots removed from Project.toml (arrives transitively)
- The module's GKSwstype headless-CI block removed -- CalculusWithJuliaSquared
  runs the same pattern at its own load time
- copilot-instructions.md gains a "What CalculusWithJuliaSquared Provides"
  section so future sessions know what already exists before writing new
  functions; source.instructions.md dependency/module sections updated to
  match reality (also drops BlockArrays/LAlatex mentions that were template
  leftovers never actually in Project.toml)

Test suite passes; verified `using Calculus` alone provides plot,
@variables, riemann, and the L"..." macro.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
CI failed with "expected package CalculusWithJuliaSquared to be
registered": Pkg.add(url=...) records the GitHub source only in the
Manifest, which is gitignored in this repo, so CI resolving from
Project.toml alone looked for the package in the General registry.
The [sources] section (Julia 1.11+) declares the URL in the committed
Project.toml, making instantiation work from a clean clone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… dep

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…orted

The claim that LAlatex, BlockArrays, and LaTeXStrings are re-exported by
the module was never true (inherited from the canonical template, where it
is false for Linear_Algebra as well -- only LaTeXStrings is reexported).
LAlatex and BlockArrays live in notebooks/Project.toml only and need their
own `using` in the setup cell. Also fixes a leftover "using Linear_Algebra"
mention and the plot_param_line example from the template, pointing at the
CalculusWithJuliaSquared recipes instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@AronT-TLV
AronT-TLV merged commit efedfa4 into main Jul 16, 2026
5 checks passed
@AronT-TLV
AronT-TLV deleted the feature/use-calculuswithjuliasquared branch July 16, 2026 15:40
AronT-TLV added a commit to FourMInfo/Linear_Algebra that referenced this pull request Jul 16, 2026
…ns.md (#16)

Linear_Algebra reexports GeometryBasics, Plots, LinearAlgebra, RationalRoots,
Symbolics, LaTeXStrings -- not LAlatex or BlockArrays. Those are
notebooks-environment-only deps (notebooks/Project.toml), so notebooks need
their own using line for them. Discovered while adapting notebooks
instructions for Calculus (FourMInfo/Calculus#2).

Closes FOU-109
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.

1 participant