BioSTEAMDevelopmentGroup / biosteam

The Biorefinery Simulation and Techno-Economic Analysis Modules; Life Cycle Assessment; Chemical Process Simulation Under Uncertainty
Other
179 stars 35 forks source link

Unable to get graphic data like Diagrams and graphs #167

Closed Yashdeep0011 closed 1 year ago

Yashdeep0011 commented 1 year ago

Hi, I have just started with BioSTEAM and facing an issue. I am unable to generate image data of graphs and Diagrams as shown in the examples in the user guide. What may be the probable errors from my side or is any separate add on required for it? I have separately installed Graphviz as given in the general issues, I have windows based operating system. I have attached an image of the result. Screenshot 2023-09-18 234932

yoelcortes commented 1 year ago

@Yashdeep0011,

Make sure not to run biosteam.nbtutorial() unless you are using a jupyter notebook. What happens is the widget (an IPython.Image object) cannot be displayed in whatever IDE you are using.

If you are using the Spyder IDE and the diagrams do not pop out yet, make sure to follow the graphviz instructions carefully: https://forum.graphviz.org/t/new-simplified-installation-procedure-on-windows/224#format-svg-not-recognized-use-one-of carefully.

If you are using PyCharm, you can checkout this discussion: https://github.com/BioSTEAMDevelopmentGroup/biosteam/discussions/158

By the way, if you like the light mode diagrams run bst.preferences.light_mode() then bst.preferences.save() so that it becomes your default.

Thanks!