-
Hi, How can I manually print a drawing in a cell? I need this so I can print multiple drawings in the same cell. For example, this works d1 = draw.Drawing(100, 100)
d1.append(draw.Circle(25, 50, 20))
d1 But this doesn't d1 = draw.Drawing(100, 100)
d1.append(draw.Circle(25, 50, 20))
d1
<some other code>
d2 = draw.Drawing(100, 100)
d2.append(draw.Circle(25, 50, 20, fill='red'))
d2 Only I have tried with Any ideas? Also, what is exactly the purpose of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Okay, I thing I got it now. Using d1 = draw.Drawing(100, 100, displayInline=False)
d1.append(draw.Circle(25, 50, 20))
d2 = draw.Drawing(100, 100)
d2.append(draw.Circle(25, 50, 20, fill='red'))
display(SVG(d1.asSvg()), SVG(d2.asSvg())) |
Beta Was this translation helpful? Give feedback.
Okay, I thing I got it now. Using
display
andSVG
fromIPython.display