John Lyu
John Lyu
OK, I found why we need `'--headless=old'`, see test https://github.com/dexplo/dataframe_image/blob/d4601f21c424ef63d8921c78f8d8783918168f90/tests/test_df_image.py#L87-L94 If use new headless or `html2image` package, only 25 lines will be exported.
Due to Chrome completely remove old headless mode, I suggest everyone migrate to playwright mode by modify your `table_conversion` parameter like this: ``` dfi.export(df, "df_style.png", table_conversion="playwright") ``` Or wait for...
> I tried dfi.export(df, "df_style.png", table_conversion="playwright") but get an error message Error: It looks like you are using Playwright Sync API inside the asyncio loop. Please use the Async API...
@Jacques2101 lack definition of `col_format` and `custom_cmap` I tested your code with both `chrome` and `playwright`, the looks the same. ### playwright version  ### Chrome version 
@Jacques2101 , You can create a notebook using colab and share it here.
> > I have set `--headless='new'` but reverse this change for some reason I forget. See commit [951e99c](https://github.com/dexplo/dataframe_image/commit/951e99c640d0e2f107e0d4818b100bd83da0a3da) and [#115](https://github.com/dexplo/dataframe_image/issues/115) > > The change was to fix a similar kind...
@Jacques2101 , Thanks for sharing test code and I have fixed bug in latest commit. You can go to colab to see if it works. Since latest commit is not...
> Sorry it seems that with dfi.export(styled_table, image_path, table_conversion='chrome') it works !!! DO NOT USE `table_conversion='chrome'` in this version, see your colab example here: https://colab.research.google.com/drive/1odS7DjvabmdWTO3_kCAvaMk3L5zD4fOX?usp=sharing
@probablyjassin , please create a public colab notebook with full test code for me to diagnose the problem. See example here: https://colab.research.google.com/drive/1QHlm52GhquRJ8pXUaPsdY6b43O1G8mwN?usp=sharing
Thanks for sharing your idea. Can you provide a small example of using dataframe_image with `AsyncPlayWrightConverter`? And the use case of why use async interface, maybe use it in a...