Skip to content

Graphviz works with minimal example, but not in Biosteam #158

Closed Answered by yoelcortes
zorzansi asked this question in Q&A
Discussion options

You must be logged in to vote

@zorzansi, @yalinli2

Yeah, @Scheideba used PyCharm and had this same problem. The issue was he was running his code through the terminal and not through the ipython console. If this is the issue, maybe the following thread can help:
https://stackoverflow.com/questions/47765237/cant-use-ipython-console-in-pycharm

Alternatively, if you prefer to use the terminal (not ipython), you can view diagrams through the graphviz view command (which saves a file and then opens it externally) as follows:

from biorefineries import cornstover as cs
cs.load()
f = cs.cornstover_sys.diagram(
    # Do not display in IPython console and return a graphviz.graphs.Digraph object
    display=False
)
f.view('filen…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@zorzansi
Comment options

@yalinli2
Comment options

@zorzansi
Comment options

@yoelcortes
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yoelcortes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants