pyvis
pyvis copied to clipboard
Using pyvis HTML output in Gradio's Output
When using the output html of pyvis package on graph data, gradio cannot display the results. The resulting html itself can be opened by the browser.
For details, check the same issue in gradio issue.
It has been solved by @duerrsimon, and the solution can be found in the above issue.
In case that people encounter the same issue and come here, I open this issue and re-direct to the solution.
@zhaoqf123 the link in the solution is not working anymore
can kindly you share a working code snipped ?
Just rebooted the space and it is working.
You can check the code here: https://huggingface.co/spaces/simonduerr/pyvisdemo/blob/main/app.py
Otherwise you guys should probably create a Pyvis custom component at some point :) https://www.gradio.app/guides/custom-components-in-five-minutes
thanks this example works. unfortunately only on gradio. Would it could run locally