How to export my cypher graph as png without using export option on the desktop app?

I am working py2neo and I need to export graph result as png but I do not want to use neo4j. I need python code or cypher code.

I am very appreciated to your response. However, I need something that I can use in python.

You will need something to render your data and export the visualization. You can look at the following references:

https://github.com/neo4j-labs/neodash

https://neo4j.com/developer/tools-graph-visualization/