Skip to content

v0.1.0a5

Pre-release
Pre-release

Choose a tag to compare

@DavidMStraub DavidMStraub released this 20 Nov 15:59

Notebook display

  • A shape at the end of a notebook cell displays as an interactive 3D view in Jupyter, VS Code, and other notebook frontends, with no extra Python packages. The view uses vtk.js, loaded from a CDN at a pinned version.
  • Where scripts can't run (GitHub, nbviewer, untrusted notebooks) or the CDN is unreachable, a static isometric SVG shows instead.

Reprs

  • Shape, Face, Edge, Vertex, Curve2D, Path2D, Path3D, and Profile have readable reprs, such as <Shape: 10 faces, 18 edges>, <Face plane, normal (0, 0, 1)>, or <Edge circle r=10, (10, 0, 10) to (10, 0, 10)>. They avoid costly computations such as volume or face centroids.

Try it in the browser

Development

  • The dev container installs ipykernel and the VS Code Jupyter extension.

See the API reference for signatures and conventions.