justvanrossum / drawbot-skia

A cross-platform subset of the DrawBot drawing API, using Skia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

integration in jupyter notebook?

joachimheintz opened this issue · comments

hi and thanks for the great work. i installed it yesterday on debian and everything seems to work well.

is there any way to integrate it in a jupyter notebook, as it is the case for the matplotlib? or what is your normal workflow in coding and watching the result?

cheers -
joachim

I personally run a script, and then open the exported image.

I know nothing about Jupyter notebooks, but I'm open to suggestions how to make integration possible.

i found an easy method which

  1. works with a script file in one jupter tab, and
  2. renders and displays the result in another one.
    Drawbot-skia.pdf
    i think it might be possible to render a code cell directly to an image which is shown in the cell output, but i don't know how, and the workflow above is ok for me now.

just to add an update which uses the '%%writefile' in a cell to write in the same notebook.
it can be downloaded here
drawbot_skia_2