After upgrade to chart_studio, API key no longer works

I have a paid Personal plan and just upgraded to chart_studio. After doing this, I made sure to set my credentials file via:

chart_studio.tools.set_credentials_file(username=‘my_username’, api_key=‘XXXXXXXXXXXXXX’)

However, when attempting to publish a chart to the cloud via:

import chart_studio.plotly as py

py.plot(data, filename = ‘basic-line’, auto_open=True)

I get a “PlotlyRequestError: Bad API key”. I regenerated the API key via the GUI and it’s still the same behavior.

Thanks!

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online