plotly / plotly/plotly.py

Offline plot does not work properly if the path to the working folder contains Cyrillic

Open
#3,444 1 comment 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

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

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

Reproduce the issue on Windows 10 using plotly.offline.plot and fig.write_html with Cyrillic characters in the working-folder path and output filename. Start by tracing the auto_open behavior used by these entry points. Done means the saved HTML opens in the default browser rather than Internet Explorer and works with Cyrillic paths and filenames.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.