santosjorge / cufflinks

Productivity Tools for Plotly + Pandas
MIT License
3.03k stars 675 forks source link

support returning HTML string df.iplot() for web server usages. #181

Open cailiang9 opened 5 years ago

cailiang9 commented 5 years ago

When the plotting environment is not jupyter, e.g., web server end, we would like the df.iplot to return HTML string and render in the browser. Is there a way to just return HTML strings rather than calling display in iplot?

santosjorge commented 5 years ago

You can use iplot(asPlot=True)

That should open the plot in a browser

cailiang9 commented 5 years ago

Thanks, but it's written into an html file with some unwanted tags. I want to embed it into a webserver such as bottlepy.