Skip to content

Generalize async behavior to handle styling #127

Description

@thatperson42

Within a Jupyter Notebook and a dataframe df, the following works properly:

importdataframe_imageasdfidf.dfi.export('filepath.png')

but the following does not work:

importdataframe_imageasdfidfi.export(df, 'filepath.png')

It gives the error Error: It looks like you are using Playwright Sync API inside the asyncio loop. Please use the Async API instead.

For this example I can make the code change, however if I try using a Styler object df_styled = df.style, then neither of these work because AttributeError: 'Styler' object has no attribute 'dfi'.

If the dfi.export call were updated to handle the async behavior in Jupyter, then this should address this problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions