Panel and tikz work well together using pn.pane.SVG

The SVG pane in panel can be used to display output from latex.
I doctored code I found online to
compile a tex file into an SVG that can be displayed in a pane.

The toolchains are fickle: I provided a number of possible paths to get it to work.
The code is in
and may need some adjustments to work with windows
(I use Linux, so that is what I made work)

Example uses are in the file test_itikz_from_python.ipynb

1 Like

BTW, if anybody plays with this, Iā€™d love to see extensions, improvements, bug fixes, etc!


I recently updated the code to produce SVGs of Matrices laid out on rectangular grids. There is a video describing the code and its capabilities at

1 Like