plotly / plotly/plotly.py

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

オープン
#3,098 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、指定された Plotly および Python のバージョンを使用し、Chrome を最初は閉じた状態の Windows で、提供された 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 を短くまとめたダイジェスト。