Uploading local plots to my plotly account

If I create a plot offline using plotly library in R or python, is there any way with which I can upload these interactive plots to my plotly account for sharing in form of iframes?

Yes, this is the whole point of plotly!

Python: Use plotly.plotly.plot() instead of plotly.offline.plot()

R: Use plotly_POST()

Thanks for replying Jack,

I went through it as well for R. But having done


p <- plot_ly(midwest, x = ~percollege, color = ~state, type = “box”)
plotly_POST(p, filename = “r-docs/midwest-boxplots”)

It gave the following error:

Error in curl::curl_fetch_memory(url, handle = handle) :
Problem with the SSL CA cert (path? access rights?)

I don’t know what I did wrong. Can you help me out?