ploomber / projects

Sample projects using Ploomber.
Apache License 2.0
83 stars 25 forks source link

our sample notebooks should leverage our new plots #42

Open idomic opened 2 years ago

idomic commented 2 years ago

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)
edublancas commented 2 years ago

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)