Let wing render the graphviz graph.
Hi,
I try to use graphviz within wing. The code example is from here: https://aiida.readthedocs.io/projects...
from aiida.common import LinkType
from aiida.orm.utils.links import LinkPair
from aiida.tools.visualization import Graph, pstate_node_styles
dict1_uuid = '0ea79a16-501f-408a-8c84-a2704a778e4b'
calc1_uuid = 'b23e692e-4e01-48dd-b515-4c63877d73a4'
graph = Graph()
graph.add_node(dict1_uuid)
graph.add_node(calc1_uuid)
graph.graphviz
But wing failed to display the rendered grahpviz graph which jupyter can do smoothly.
Any hints for this problem?
Regards
Comments
What version of Python do you have and on which OS? I can't seem to get aiida working at all (even outside of Wing) due to apparently installation problems. My initial guess is that it contains an event loop that is not based on matplotlib and thus plots won't show except if free-running in Wing's debugger.
See following:
Add the following codes at the top of your python script for running it within wing:
See here for more info: https://aiida.readthedocs.io/projects...