简体   繁体   中英

Plotly static image generation

I am using plotly to generate graphs. So far I had only generated html files and now I am looking into creating image files in png format. I checked this page ( https://plot.ly/python/static-image-export/ ) and it looks like newer version of plotly supports this. However, after I setup the new version and all its dependencies when I try running orca it complains with

orca
(electron:8968): Gtk-WARNING **: cannot open display:

I am running on a CentOS on AWS and it does not have any UI. What I am thinking is, is plotly actually trying to open up a web browser just to save an image file? I am on a AWS machine and I don't think opening up a browser is an option. Is there a solution to this or is it only possible to save image files in machines that have a GUI. The idea of being able to save images files only on machines with a GUI does not sound correct to me.

正如指出的在这里 ,你会看到这里有关使用xvfb的时候你没有X11 /是无头。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM