Skip to content
/ itikz Public

Cell and line magic for PGF/TikZ-to-SVG rendering in Jupyter notebooks

License

Notifications You must be signed in to change notification settings

jbn/itikz

Repository files navigation

itikz

https://travis-ci.org/jbn/itikz.svg?branch=master

Cell magic for PGF/TikZ-to-SVG rendering in Jupyter

  • Free software: MIT license

Basic Usage

Install it:

pip install itikz

Load it:

%load_ext itikz

Use it:

%%itikz --file-prefix implicit-demo- --implicit-pic
\draw[help lines] grid (5, 5);
\draw[fill=magenta!10] (1, 1) rectangle (2, 2);
\draw[fill=magenta!10] (2, 1) rectangle (3, 2);
\draw[fill=magenta!10] (3, 1) rectangle (4, 2);
\draw[fill=magenta!10] (3, 2) rectangle (4, 3);
\draw[fill=magenta!10] (2, 3) rectangle (3, 4);

Getting Started Guide

Getting Started Notebook