Use CalculusWithJuliaSquared instead of a direct Plots dependency#2
Merged
Conversation
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
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
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.
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-urltrackingmaster) and reexports it, so oneusing Calculusprovides plotting, symbolic math, root finding, and ready-made calculus utilities/recipes.Plotsremoved fromProject.toml— it arrives transitively through CWJS's reexport chaincopilot-instructions.mdgains a "What CalculusWithJuliaSquared Provides" section (recipes, utilities, symbolic capabilities, how to update the pinned commit) so future sessions check what exists before writing new functionssource.instructions.mdmodule/dependency sections updated to match reality (also dropsBlockArrays/LAlatexmentions that were template leftovers never actually inProject.toml)Test plan
Pkg.resolve()+ full test suite passes in the workspaceusing Calculusalone providesplot,@variables,riemann, and theL"..."macroriemann(sin, 0, pi, 1_000) ≈ 2sanity check through the full chain🤖 Generated with Claude Code