About Anaconda Help Download Anaconda

D2, Declarative Diagramming in Python via AnyWidget.

copied from cf-post-staging / d2-widget

Installers

  • noarch v0.0.3

conda install

To install this package run one of the following:
conda install conda-forge::d2-widget

Description

d2-widget is an AnyWidget for displaying declarative diagrams written in D2.

  • D2 Diagram Rendering: Create and display interactive D2 diagrams directly in Python notebooks
  • Configurability: Support for all D2 compilation options including themes, layouts, and rendering configurations
  • SVG Export: Programmatically access the SVG representation for use in other documents
  • Jupyter Cell Magic: Use the convenient %%d2 cell magic for quick diagram creation
  • Notebook Compatibility: Works in Jupyter, Google Colab, Marimo, and other AnyWidget-enabled Python notebook environments
  • Animation Support: Create animated diagrams with D2's native animation capabilities

© 2026 Anaconda, Inc. All Rights Reserved. (v4.2.13) Legal | Privacy Policy