Interactive Networks (graphs) with Pyvis

Hi everyone, for those interested in showing graphs (@chris_klose, @Charly_Wargnier), I’ve found that with Pyvis is very easy to work out within streamlit. Here is an example of what can be done:

You can play with the app here:

and here is the repo:


Super job Jose! I’ll definitely try it for my app! :slight_smile:

1 Like

Wow :astonished: that is almost comparable to agraph-component! Petty nice.

I could not quite grasp why the html files are needed.
Neither I could find them in the source code.
Is there a chance that you upload them to Github too?

I also like the option bar at the bottom. The idea could have come from me :grin:.
Maybe there is a general way to build a component out of it?
Anyways, good job and thanks for keeping me posted!


Hi Chris, the html files are generated by pyvis translated from the python code. I think this is part of the beauty of the library, because as I understand, it practically works out the component!!

The html files are build in the streamlit share instance, and there is nothing special about them, but if you want I can put them in the repo.

yeah, it is really cool, that comes with pyvis.

Glad you liked. Do you have some idea to integrate this in agraph-component??

Thanks a lot Charly!! I think this is far way easier that using Bokeh, what do you think?

Html files are in the repo
(updated @chris_klose )

Thank you :pray:t3: , @napoles3d

1 Like