sweetviz icon indicating copy to clipboard operation
sweetviz copied to clipboard

Not able to generate html report

Open saivishwanathgoud opened this issue 5 years ago • 9 comments

I'm trying to generate html report by executing show_html() but I do not see a output file.

IDE: Google colab.

saivishwanathgoud avatar Jun 08 '20 09:06 saivishwanathgoud

Hello! Thank you for the report! I believe the causes that Sweetviz is using the basic Python "os" module to write output.

I haven't worked with Google colab, but a quick look is suggesting that that's not the way to write out files.

Again not familiar with how files are handled with that system but hopefully it should be a simple matter of substituting the os module for output with something that colab prefers.

I will look into this but do you have any thoughts on what that could be? And what would be the best way to integrate this? I'm thinking either a special show_colab() function or some way to wrap output. One question I have is how to best do that without adding a dependency to the project. There must be other modules out there that are dealing with this in a clean way?

fbdesignpro avatar Jun 08 '20 13:06 fbdesignpro

@saivishwanathgoud with the latest version I was able to generate the report file. Currently, it will not show up directly in the notebook but the file still gets generated. You should be able to find it here: image

and it should be visible here (using the default name in this case): image

You should be able to download it and view it on your machine. I know it's not ideal but since it will just take a bit of time to do a full integration inside the notebook.

Let me know if that works, and I hope you will find it useful.

fbdesignpro avatar Jun 11 '20 13:06 fbdesignpro

Hi @fbdesignpro I really appreciate your time and effort in sorting this. Could you please help me on one last issue.

https://archive.ics.uci.edu/ml/datasets/default+of+credit+card+clients (dataset link)

image

I like the visualizations but I want to see individual features graphs expanded when selected, so it can give a complete picture. Right now, I see upon selecting a feature the graph appears on right with no option to scroll across.

Thanks in advance for your support!

saivishwanathgoud avatar Jun 12 '20 10:06 saivishwanathgoud

Please zoom out for that

dl1683 avatar Jul 11 '20 09:07 dl1683

@saivishwanathgoud @dl1683 just FYI, I originally removed the horizontal scrollbar to make everything "fit" within a 1080p screen. In hindsight it was a pretty dumb idea so I will be bringing the scrollbar back in in the next build! :)

fbdesignpro avatar Jul 15 '20 13:07 fbdesignpro

Hi @fbdesignpro , for my application i deployed the code in Heroku and used the code inside show_html() but I do not see a output file.

PratikAnjay avatar Jul 21 '20 04:07 PratikAnjay

Hi @fbdesignpro , for my application i deployed the code in Heroku and used the code inside show_html() but I do not see a output file.

hi even I'm facing the same issue...please do write out here

Pratap517 avatar Feb 05 '21 13:02 Pratap517

Hi, does anyone know how to display the sweetviz.html report on github. After uploading the jupyter notebook I cannot view the sweetviz report. Here's the screenshot of the code snippet. image

rohit-chandra avatar Dec 04 '21 01:12 rohit-chandra

@rohit-chandra I'm not sure if that could be causing the issue, but in a notebook environment, do not call show_HTML(), perhaps it is confusing the system. Show_notebook should work, though, let me know if that's the case.

fbdesignpro avatar Dec 20 '21 23:12 fbdesignpro