Shipped examples#
Squero Studio MX ships a 12-part progressive tutorial covering SqueroPlot.jl (2D/3D
plotting, layouts, themes, snapshots, and export) and SqueroBase.jl / Paperboat (session
control, optimization, and dynamical simulation). Because both packages are preloaded into every
kernel session, every example runs as written with no extra using boilerplate.
Opening and running examples#
Shipped examples open read-only so the built-in curriculum stays intact:
Type
examplesin the console to list all 12 scripts, then open one withopen_example(ref)by 1-based index, filename, slug, or symbol:open_example() # opens example 1 (01-signals.jl) open_example(3) # opens 03-surfaces.jl open_example("lorenz") # opens 02-lorenz.jl open_example(:simulation) # opens 08-simulation.jl
Run the read-only script directly (Run,
Ctrl/Cmd+Enterfor cells, orShift+Enterfor lines), or click Copy to workspace in the editor header to save an editable copy in your workspace folder.
SqueroPlot.jl curriculum (1–6)#
# |
Example |
What it teaches |
|---|---|---|
1 |
|
Continuous |
2 |
|
Base-Julia RK4 integration, 3D |
3 |
|
2D comprehensions with |
4 |
|
Statistical views: |
5 |
|
|
6 |
|
Cell execution ( |
SqueroBase.jl & Paperboat curriculum (7–12)#
# |
Example |
What it teaches |
|---|---|---|
7 |
|
Selective clearing with |
8 |
|
State-space pole analysis in |
9 |
|
Linear programming via |
10 |
|
Quadratic portfolio optimization via |
11 |
|
Constrained nonlinear optimization via |
12 |
|
Populating |
Quick API reference#
# Session control without losing figure history
clear(:tmp) # drop only `tmp` from the workspace
clc() # clear the console log
open_example("signals") # inspect a tutorial example read-only
# Optimization and simulation bridges to Paperboat
optimize((f = [-3.0, -2.0], A = [2.0 1.0; 1.0 2.0], b = [8.0, 8.0], lb = [0.0, 0.0]))
simulate(graph; duration = 10, dt = 0.01, solver = :rk45, variables = (x0 = [1.0, 0.0],))