Skip to content

Manually print drawing in Jupyter notebook? #74

Answered by iyanmv
iyanmv asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, I thing I got it now. Using display and SVG from IPython.display

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()))

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cduck
Comment options

@iyanmv
Comment options

Answer selected by iyanmv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants