-
Notifications
You must be signed in to change notification settings - Fork 219
Description
Describe the bug
Any plots; be that via plot(), create_report(), or any other method renders fine in the notebook itself, but after converting to HTML via Quarto (utilizes Pandoc for this) the plots do not appear. I get a message stating "Report generated with DataPrep," but no display. I have discovered that saving the report to a file and then displaying it as an iframe does work, however.
Utilizing ydata-profiling (formerly Pandas Profiling) the plots display in the HTML with no problems and no need to display as an iframe. I'm not certain what the difference is between the two packages, perhaps the reports are rendered differently.
To Reproduce
Steps to reproduce the behavior:
- Create a report or a plot with DataPrep.
- Export the notebook to HTML via Pandoc or Quarto
Working:
from dataprep.eda import create_report
# Full report
report = create_report(
df,
title="ACLED regional dataset - SE Asia - Myanmar",
progress=False
)
report.save()
from IPython.display import IFrame
IFrame("report.html", width=1200, height=1300)Not working:
from dataprep.eda import create_report
report = create_report(df)
report
# report.show()
# report.show_browser()
# None of the above options workExpected behavior
Reports should display in HTML without having to specifically display them as an iframe
Desktop (please complete the following information):
- OS: Windows 11
- Browser: Chrome, Firefox
- Platform: Jupyter Lab via PyCharm / DataSpell
- Platform Version: 4.0.5
- Python Version: 3.10.12
- Dataprep Version: 0.4.5

