Reduce sample project README to a heading
1 changed file+1−28
src/sampleWorkspace.tsmodified+1−28View file
@@ -1,31 +1,6 @@
11 // Files seeded into new projects.
22
33 const readme = `# stan sample project
4-
5-Bayesian linear regression, run entirely in your browser.
6-
7-- \`linear.stan\` — the model (with syntax checking, hover docs, completion,
8- and auto-format from the Stan language server).
9-- \`data.json\` — the data: 20 noisy points around y = 2 + 1.5 x.
10-- \`fit.sample\` — a sampling run: which program, which data, sampling
11- parameters, and the output directory. Opens as a form; press
12- **Run sampling** there (or ▶ in the tab bar). Reopen as raw YAML via the
13- tab context menu.
14-- \`quick.sample\` — the same fit with fewer iterations and a random seed.
15-
16-Compiling the Stan program needs a **compilation server** (sampling itself
17-runs locally, in a web worker). The status bar shows the configured server;
18-click it to change. To run one on your machine:
19-
20- docker run -p 8083:8080 -it ghcr.io/flatironinstitute/stan-wasm-server:latest
21-
22-When a run finishes, its output directory (e.g. \`out/fit/\`) appears in the
23-Explorer: \`chain_*.csv\` (one row per draw), \`summary.csv\` (mean, sd,
24-percentiles, ESS, Rhat per parameter), \`sampling_opts.json\`, and
25-\`console.txt\`.
26-
27-Edits save with **Ctrl+S** and persist in your browser. Runs use current
28-editor contents, saved or not.
294 `;
305
316 const linearStan = `// Bayesian linear regression: y ~ normal(alpha + beta * x, sigma)
@@ -64,7 +39,6 @@ const fitSample = `# A sampling run. This file opens as a form; use the tab cont
6439 # edit the raw YAML. Paths are relative to this file.
6540 stan: linear.stan
6641 data: data.json
67-output_dir: out/fit
6842 num_chains: 4
6943 num_warmup: 1000
7044 num_samples: 1000
@@ -74,7 +48,6 @@ seed: 42
7448 const quickSample = `# A quicker look: fewer iterations, random seed each run.
7549 stan: linear.stan
7650 data: data.json
77-output_dir: out/quick
7851 num_chains: 2
7952 num_warmup: 200
8053 num_samples: 200
@@ -100,5 +73,5 @@ model {
10073 export const emptyWorkspace: Record<string, string> = {
10174 '/main.stan': emptyStan,
10275 '/data.json': '{}\n',
103- '/fit.sample': `stan: main.stan\ndata: data.json\noutput_dir: out/fit\n`,
76+ '/fit.sample': `stan: main.stan\ndata: data.json\n`,
10477 };