Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to HTML not working #972

Open
bmage8923 opened this issue Aug 30, 2023 · 0 comments
Open

Export to HTML not working #972

bmage8923 opened this issue Aug 30, 2023 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@bmage8923
Copy link

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
@bmage8923 bmage8923 added the type: bug Something isn't working label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants