I’ve just started using the Python library for Plotly (v4.4.1) with Python 3.6.
I am attempting to build a candlestick chart based on the tutorial here
A gist with the actual code I am using can be found here
When I run the code it takes several minutes then fails. Stepping through the plotly code in a debugger it seems that the time taken is in background API calls to plotly. These are as follows:
Multiple HTTP GET requests to https://api.plot.ly/v2/files/lookup - each one returns a 500 status code and HTML to generate the attached screenshot. It takes ages as it uses exponential back off to a 16 second delay which is used several times before it gives up.
Once that part has failed it then attempts a HTTP POST to https://api.plot.ly/v2/grids which fails with a 401 response (not authorised)
So I guess my questions are:
- is there any way I can disable the lookup requests as they just error?
- do I need to configure some kind of authentication to get the POST request to work?
Ideally I’d rather not use libraries that require online access (e.g running on firewalled servers etc) - is there any way I can just disable all the API access?