mkrphys / ipython-tikzmagic

IPython magics for generating figures with TikZ
BSD 3-Clause "New" or "Revised" License
160 stars 44 forks source link

Tikz magic cell with other code in cell. #4

Open jamesvenning opened 9 years ago

jamesvenning commented 9 years ago

I'm using python 3.4.3, 2.7.3, and ipython 3.1

If I have a cell

%%tikz
\draw[thick,rounded corners] (-1,-1) rectangle (1,1);

Things work fine. But, if there is any other code, even comments, it doesn't work.

#test
%%tikz
\draw[thick,rounded corners] (-1,-1) rectangle (1,1);

Returns:

SyntaxError: invalid syntax