plotly / plotly/plotly.py

fig.show() result - Chrome displays Aw, Snap! error if Chrome is initially closed

Open
#3,098 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Code snippet below causes error in my Google Chrome:

import plotly.graph_objects as go
from plotly.subplots import make_subplots
import plotly.io as pio

fig = make_subplots(specs=[[{"secondary_y": True}]])
fig.add_trace( go.Scatter(x=[1,2,3],y=[4,5,6]), row=1, col=1 )
fig.show()

Google Chrome displays the error below. Edge Firefox, IE all work correctly when they are set to the default browser.

Aw, Snap!
Something went wrong while displaying this webpage
Error code: STATUS_BAD_IMPERSONATION_LEVEL

Google Chrome 89.0.4389.72 (64bit)
PyCharm 2020.3.3
Python 3.9
Plotly 4.14.3
Windows 10 Enterprise 10.0.19041 64bit

This only occurs when Google Chrome is not running. If Google Chrome is running, the plots work as expected.

Does anyone know the cause or have a workaround for this?

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided plotly.graph_objects and make_subplots snippet on Windows with Chrome initially closed, using the listed Plotly and Python versions. Inspect the fig.show() execution path and compare it with behavior when Chrome is already running. Done means the STATUS_BAD_IMPERSONATION_LEVEL failure is resolved or a documented workaround is added.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.