Offline plot does not work properly if the path to the working folder contains Cyrillic
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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