pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

HTML not rendered on Databricks runtime 9.1

Open ig-perez opened this issue 1 year ago • 3 comments

Hello, thanks for creating and maintaining this package. Sadly when I try to render the HTML I just got <IPython.core.display.HTML object> as output.

I have tried with:

  • ! pip install git+https://github.com/Kanaries/pygwalker@main
  • !pip install 'pygwalker>=0.1.4a0'
  • !pip install pygwalker

All cases showed same result. Any suggestion?

Thanks

ig-perez avatar Feb 28 '23 18:02 ig-perez

Have you tried this? https://github.com/Kanaries/pygwalker/issues/10#issuecomment-1447823367

It seems like a problem caused by the security policies of databricks.

Asm-Def avatar Mar 01 '23 04:03 Asm-Def

I didn't see that popup. By chance do you have the spark or databrick setting I need to modify? There are some settings that can be changed at notebook level, perhaps that's we need here.

ig-perez avatar Mar 01 '23 15:03 ig-perez

There're several cases that may lead to this result.

https://docs.databricks.com/visualizations/html-d3-and-svg.html

https://stackoverflow.com/questions/67153253/display-ipython-core-display-html-object-in-spark

You can try with a smaller dataframe sample and use displayHTML(pyg.to_html(df, ...)) instead of pyg.walk(df, ...).

If the problem persists, it would be helpful to share the notebook or a minimum unit of reproduction.

Asm-Def avatar Mar 01 '23 17:03 Asm-Def

No feedback for too long, so temporarily closing this issue. If there are any problems, it can be reopened.

longxiaofei avatar Jul 06 '23 15:07 longxiaofei