projects icon indicating copy to clipboard operation
projects copied to clipboard

our sample notebooks should leverage our new plots

Open idomic opened this issue 2 years ago • 1 comments

Some of the notebooks are still based on pygraphviz (plotting via Ipython Image):

from IPython.display import Image
Image(filename='pipeline.png')

We should fix that to the new mechanism (D3), and slowly migrate away from pygraphviz.

We can use this snippet to achieve the same results:

from IPython.display import IFrame
IFrame(src='pipeline.html', width=700, height=600)

idomic avatar Jun 07 '22 00:06 idomic

Note: I edited the original comment. I ran a quick test and IPython.display.IFrame works (IPython.display.HTML does not since it only loads HTML but does not execute JS, which is needed to render the image)

edublancas avatar Jun 07 '22 08:06 edublancas