dexplo / dataframe_image

A python package for embedding pandas DataFrames as images into pdf and markdown documents
https://dexplo.org/dataframe_image
MIT License
282 stars 41 forks source link

The library systematically prints the chrome_path in stdout #88

Closed vdenoise closed 1 year ago

vdenoise commented 1 year ago

Hello, First and foremost, thanks for this great library, super useful for so many of my projects. Just one issue on my side: I just updated last week, and since then, the local path of my Chrome.exe install always shows up during the generation (on stdout, via a), which is an issue as I need a clean output, as I am converting the entire notebook using Quarto thereafter.

I think I found it and fix it (super simple)

=> I am not used to commenting in this place, but here is what I did, ie just commenting a "print" which I think is rogue here.

Comments welcome,

Vincent

_screenshot.py def generate_image_from_html(self, args):

print(self.chrome_path)

    subprocess.run(
        executable=self.chrome_path, args=args, capture_output=False, check=True
    )