Skip to main content

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

Project description

itikz

https://img.shields.io/pypi/v/itikz.svg https://travis-ci.org/jbn/itikz.svg?branch=master https://img.shields.io/coveralls/github/jbn/itikz.svg

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

History

0.0.1 (2018-10-12)

  • First release on PyPI.

0.0.2 (2018-10-13)

  • Emit error messages.

0.0.3 (2018-10-16)

  • Add line magic usage

  • Change to load_ext pattern

0.0.4 (2018-10-16)

  • Add argparse parsing for line and cell magic

  • Add –temp-dir option to reduce clutter

  • Add –file_prefix for organization

0.0.5 (2018-10-16)

  • Add Quickstart notebook as a demo

  • Remove print statements introduced during debugging

0.0.6 (2018-10-17)

  • Add ITIKZ_TEMP_DIR environmental variable usage

  • Add –implicit-pic

0.0.7 (2018-10-17)

  • Add –scale arg

  • Add –tikz-libraries

  • Add –tex-packages

  • Add –implicit-standalone

0.0.8 (2018-10-17)

  • Add jinja2 templating

  • Add jinja2 interpolated code debug printing

0.1.0 (2018-10-21)

  • Add unit tests

  • Fix cleanup bug

0.1.1 (2018-10-24)

  • Add –rasterize option

0.1.2 (2018-10-25)

  • Change default to only show the training 10 lines of an error

  • Add –full-error option for full emitted error

0.1.3 (2018-10-29)

  • Change default to only show the training 20 lines of an error

0.1.4 (2019-09-27)

  • Add option to set LaTeX program (e.g. lualatex) via PR from Tom Nurkkala (thanks, Tom!)

0.1.5 (2020-01-04)

  • Fix bug with tilde expansion on windows via PR rom asteppke on github (thanks, asteppke!)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itikz-0.1.5.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

itikz-0.1.5-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file itikz-0.1.5.tar.gz.

File metadata

  • Download URL: itikz-0.1.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for itikz-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7b789bfa326e64735306bd019a3b2c1c2caf273fc5f1762d0e371c992e5b2376
MD5 4e48f60ab7913e2076347c42921667ff
BLAKE2b-256 da6ba06b050ac9307a5dd38ba696ab128530f17f43fb4ffcf252ae8c0961e026

See more details on using hashes here.

File details

Details for the file itikz-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: itikz-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for itikz-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d258e2a0f9434deea6fbca9bd033e87dd73944975d4816e8d3b803d2cfd2b599
MD5 b883059d036301628c4b4acaeb869e98
BLAKE2b-256 a07cde3d9b5d2189c6c9113efaa61e9e3f0a29e154bae5091ffd51362d4ba21f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page