ᛈ quill
Interactive REPL and markdown notebooks
Quill is a REPL and notebook environment for OCaml. Run quill for an
interactive toplevel with syntax highlighting, completion, and persistent
history — or open a markdown file for a full notebook with a terminal UI,
web frontend, or batch evaluator.
Features
- Interactive REPL:
quilllaunches a toplevel with syntax highlighting, tab completion with ghost text, persistent history, smart phrase-aware submission, and type inspection - Markdown notebooks: notebooks are
.mdfiles with fenced OCaml code blocks — git-friendly, editor-agnostic, zero lock-in - Terminal UI: full-screen TUI for cell navigation, execution, and output display
- Web frontend:
quill serveopens a browser-based notebook with CodeMirror 6 editor, real-time execution, autocompletion, and diagnostics - Batch execution:
quill runexecutes all code blocks and prints or saves results - Watch mode:
quill run --watchre-executes on file change for a live editing workflow - Output format: cell outputs stored as
<!-- quill:output -->HTML comments, invisible in rendered markdown - Raven integrated: Nx, Rune, Kaun, Hugin, Sowilo, Talon, Brot, and Fehu are pre-loaded
Quick Start
Launch the REPL:
quill
Or open a notebook in the terminal UI:
quill note notebook.md
Or in the browser:
quill serve notebook.md
Or execute from the command line:
quill run notebook.md
Next Steps
- Getting Started — REPL, notebooks, execution modes
- Notebook Format — how markdown becomes cells, how outputs are stored
- Execution Modes — REPL, TUI, web, run, and clean