ploomber / projects

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

Colab example: scale down html display output to 50% after the html file is read #45

Closed 94rain closed 2 years ago

94rain commented 2 years ago

Patches #41,

Changes:

from IPython.display import HTML, IFrame
# We scale down the plot to 50% for better readability on Colab. You can plug in whatever you'd like.
# Either HTML or IFrame should work.
display(HTML(open('pipeline.html').read().replace("100%", "50%")))

Please let me know if the wording in the comments can be any way better.