Skip to content

Export to HTML not working #972

@bmage8923

Description

@bmage8923

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:

  1. Create a report or a plot with DataPrep.
  2. 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 work

Expected behavior
Reports should display in HTML without having to specifically display them as an iframe

Screenshots
image
image

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

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions