它尝试在具有协作功能的Juptyer笔记本单元格中显示刮擦块,如本页所显示:https://blog.ouseful.info/2017/12/09/scratch-materials/或https://hub.mybinder.org/user/psychemedia-showntell-jczyms9p/notebooks/Scratch_LaTeX.ipynb
我使用了相同的代码,但出现错误:ticket
SyntaxError: invalid syntax
我也尝试过:
%load_ext tikz_magic
%%tikz -p scratch --no-wrap -s 0.5
\begin{scratch}
\blockmove{Movement Block}
\blocklook{Appearance Block}
\blocksound{Sound Block}
\blockpen{Pen Block}
\blockvariable{Variable Block}
\blocklist{List Block}
\blockevent{Event Block}
\blockcontrol{Control Block}
\blocksensing{Sensor Block}
\end{scratch}
但这不起作用。