Tutorial 7 - Jupyter + tikz#
[1]:
%load_ext tikzpics
[2]:
%%tikz
\begin{tikzpicture}
% Define the layers library
\pgfdeclarelayer{0}
\pgfsetlayers{0}
% Layer 0
\begin{pgfonlayer}{0}
\node[shape=circle, color=white, fill=blue] (node0) at (0, 0) {Hello!};
\node[shape=circle, color=white, fill=red] (node1) at (5, 0) {Hi!};
\draw[->, line width=2, color=gray] (node0) to (node1);
\end{pgfonlayer}{0}
\end{tikzpicture}