call_latex_tikzpictureยง

[1]:
%load_ext magic_call.latex
[2]:
%%call_latex_tikzpicture
\node { Hello! };
../../_images/latex_magic_tikz_2_0.png
[3]:
%%call_latex_preamble
\usetikzlibrary{graphs}
[4]:
%%call_latex_tikzpicture
\graph{ A -> B -> C };
../../_images/latex_magic_tikz_4_0.png
[5]:
%%call_latex_preamble
\tikzgraphsset{nodes=draw}

TODO: reset without restarting the kernel?

--clear and/or --overwrite?

[6]:
%%call_latex_tikzpicture
\graph{ A -> B -> C };
../../_images/latex_magic_tikz_7_0.png