plotly / plotly/plotly.py

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

未关闭
#3,098 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug P3
主要语言
Python
星标
18.8k
派生
2.8k
平均合并
16 小时 26 分钟
30 天内合并 PR
21

描述

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!

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在 Windows 上、Chrome 最初处于关闭状态时,使用列出的 Plotly 和 Python 版本重现所提供的 plotly.graph_objects 和 make_subplots 代码片段。检查 fig.show() 的执行路径,并将其与 Chrome 已在运行时的行为进行比较。当 STATUS_BAD_IMPERSONATION_LEVEL 失败得到解决或添加了有文档记录的变通方案时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。