Skip to content

Editor Basics

A SpiceBook notebook is a vertical sequence of cells. Each cell has a type that determines how it behaves and renders.

TypePurposeEditor
MarkdownDocumentation, headings, LaTeX-style mathRich text with live preview
SPICECircuit netlists for simulationCode editor with SPICE syntax highlighting
PythonComputation and scriptingCode editor (execution planned)
SchematicAuto-generated circuit diagramsRead-only SVG display

Markdown cells render immediately as you type. SPICE cells require you to click Run to execute the netlist and see simulation results.

The notebook toolbar sits at the top of the editor and provides:

  • Run All — executes every SPICE cell in order, top to bottom
  • Engine selector — switch between ngspice and LTspice for the entire notebook
  • Embed — opens a popover with a ready-to-copy iframe snippet for sharing
  • Tags — add searchable tags to organize notebooks on the homepage

Each individual SPICE cell also has its own run and schematic buttons in the cell toolbar.

Click + Add Cell between any two cells to insert a new one. The dropdown lets you choose the cell type.

Cells can be reordered by dragging, or programmatically via the reorder API endpoint.

To delete a cell, use the cell menu (three dots) and select Delete.

SPICE cells use a code editor with:

  • Syntax highlighting for SPICE netlist keywords (.tran, .ac, .op, etc.)
  • Line numbers for referencing specific netlist lines
  • Auto-indentation following SPICE conventions

Every notebook tracks:

  • Title — displayed in the gallery and browser tab
  • Enginengspice or ltspice, applies to all SPICE cells
  • Tags — free-form labels for filtering in the notebook gallery
  • Created / Modified — ISO-8601 timestamps, set automatically