I’m using Chrome. I do not have any extensions that prevent JavaScript. (write_html method works just perfectly)
There’s no trouble running it in Jupyter Notebook (I use the Python Interactive Jupyter Server, in VS Code).
My pio.renderers.default return “browser”
The last time I worked with plotly, I don’t recall it having the 5 digit port number at the end of the localhost, is it supposed to be there?
EDIT: I have also turned off my firewall temporarily, to no avail.
As far as seeing the port number is concerned, yes, that is normal. plotly.py uses a port to communicate the information about your figure to the browser.
Does your issue only occur in Chrome or does it persist in other web browsers? For example, if you change your default browser to Firefox and then run fig.show(), are you able to view your figure?
Okay I’ve tried, and embarrassingly it works with firefox, and on chrome on another computer.
How can I troubleshoot what is going wrong with Chrome on this computer? AFAIK I do not have any add-ons / extensions that stop JavaScript - It’s the same chrome account on two computers.
I am receiving a similar error. I cannot get the image to recognize using Firefox in a Windows10 browser. Oddly, I am able to run successfully using a localhost jupyter notebook on Firefox in Ubuntu 20.04 VM.
I had the same issue in Edge and I think I was able to fix it. I discovered that if I clicked the URL and hit enter while it was trying to load, it would immediately load. This seems to indicate that Edge was interrupting the rendering process with something else.
In “Cookies and site data” settings, toggle off “Preload pages for faster browsing …”
Cleared it right up for me.