Offline plot does not work properly if the path to the working folder contains Cyrillic
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
If working folder contains Cyrillic letters (for example 'C:\Users\User\кириллица') offline plot automatically open internet explorer on Windows 10 instead of default web browser and doesn't show saved html file.
An example of code to reproduce the error (the file must be in the folder, the path to which contains the Cyrillic alphabet):
import plotly.graph_objects as go
from plotly.offline import plot
fig = go.Figure(data=go.Bar(y=[2, 3, 1]))
plot(fig)
Also auto open does not work if you use Cyrillic in the file name: fig.write_html('кириллица.html', auto_open=True)
Plotly version = 5.3.1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Windows 10 上で plotly.offline.plot と fig.write_html を使用し、作業フォルダーのパスと出力ファイル名にキリル文字を含めて問題を再現します。まず、これらのエントリーポイントで使用されている auto_open の動作を追跡します。保存された HTML が Internet Explorer ではなく既定のブラウザーで開き、キリル文字を含むパスとファイル名で動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100