1.43.2 • Published 6 months ago

circuitsvis v1.43.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

CircuitsVis

Mechanistic Interpretability visualizations in React.

View all available components in Storybook at https://alan-cooney.github.io/CircuitsVis .

Use

Within a React Project

First install the package:

yarn add circuitsvis

Then import and use the visualizations directly:

import { Hello } from "circuitsvis";

export function Demo() {
  return <Hello name="Bob" />;
}

Standalone

You can use this package directly from a CDN (e.g. unpkg) to render visualizations.

Modern ES Modules Approach

<div id="my-div-id" />

<script crossorigin type="module">
  import { render, Hello } from "https://unpkg.com/circuitsvis/dist/cdn/esm.js";

  render(
    "my-div-id", // Div to render into
    Hello, // Visualization function
    { name: "Bob" } // Props (arguments) for visualisation
  );
</script>

ES6 Approach (supports more legacy browsers)

<div id="my-div-id" />

<script
  crossorigin
  src="https://unpkg.com/circuitsvis/dist/cdn/iife.js"
  onload="onCircuitsVisLoad()"
></script>

<script>
  function onCircuitsVisLoad() {
    "{";
  }
  CircuitsVis.render(
    "{uuid}", // Div to render into
    CircuitsVis.Hello, // Visualization function
    { name: "Bob" } // Props (arguments) for visualisation
  );
  {
    ("}");
  }
</script>

Within a Python project

See https://github.com/alan-cooney/CircuitsVis for details of how to use this library within a Python project.

1.42.0

7 months ago

1.40.1

9 months ago

1.41.0

9 months ago

1.43.1

7 months ago

1.43.0

7 months ago

1.43.2

6 months ago

1.40.0

11 months ago

1.39.1

1 year ago

1.39.0

1 year ago

1.36.0

1 year ago

1.37.0

1 year ago

1.34.0

1 year ago

1.32.2

1 year ago

1.35.0

1 year ago

1.38.0

1 year ago

1.38.1

1 year ago

1.25.0

1 year ago

1.26.0

1 year ago

1.29.0

1 year ago

1.27.0

1 year ago

1.28.0

1 year ago

1.32.0

1 year ago

1.33.0

1 year ago

1.32.1

1 year ago

1.30.0

1 year ago

1.31.0

1 year ago

1.24.0

1 year ago

1.23.0

1 year ago

1.22.0

1 year ago

1.21.0

1 year ago

1.20.0

1 year ago

1.19.0

1 year ago

1.18.0

1 year ago

1.17.0

1 year ago

1.16.0

1 year ago

1.15.0

1 year ago

1.14.0

1 year ago

1.13.0

1 year ago

1.12.0

1 year ago

1.11.0

1 year ago

1.10.0

1 year ago

1.9.0

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago