'Export pyvis graph as vector or .png image. Is there a way?

I'm looking for a way to export a huge Graph generated with pyvis in to a vector graphic .svg or at least .png format. Is there a way to do it? So far I've only found the option to save / export as .html file.

Thanks in advance.



Solution 1:[1]

For me this worked:

  • save the graph to HTML file
  • open the HTML in a new tab
  • right-click -> save image as ...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Roman