Search code examples
pythongraphpyvis

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

  • For me this worked:

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