Cannot return unique url from Plotly


Cannot seem to get a unique url returned from my account.

plot_url = py.plot(data, filename=‘lab_temp_hum’, auto_open=False)"plot_url = " + plot_url)

    return plot_url

The logging just shows:
2019-06-15 19:08:17,922 DEBUG Starting new HTTPS connection (1):
2019-06-15 19:08:19,097 DEBUG “POST /clientresp HTTP/1.1” 200 None
2019-06-15 19:08:19,147 INFO plot_url =

Hi @pateri1972, welcome to the forums!

What happens if you set auto_open=True, does the browser open to a plot successfully?

Just to have a complete example to discuss, can you confirm that you get the same behavior with this example:

import plotly.graph_objs as go
from plotly.plotly import plot

fig = go.Figure(data=[{'y': [2, 1, 3]}])
plot_url = plot(fig, 'fig1', auto_open=False)

print('url: ' + plot_url)

In this case I get output of



1 Like

Hello and thanks for helping out!
The code you provided gives the exact behavior as the orginal.
Somewhere along the way, I managed to make it work but now it doesn’t.
I have messed around with Python 2.7 and 3.5 and now I’m back with 2.7
My response then were:

Now it’s solved. It all boiled down to wrong Python version. It didn’t work at all with Python 2.7 and
as soon as I tried Python 3.x things started to work :slight_smile: