Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Export plotly web chart as python code

After I have made myself a beautiful chart with plotly2.0, can I export the json descriptor in a format that be directly reused in one of the programming APIs?

1 Like

Sure, from the plot viewer you can export your code in various languages (for example: See: for more information

Excellent, thanks. I can view the JSON, but when I try R or Python, I get an error like this

What could I do to solve that?



Hi there, perhaps you’re using a feature that’s not available for our R or python APIs yet. You could include a link to the chart where you’re getting that error and I’d be happy to take a look.