JetBrains / JetBrains/lets-plot

SyntaxWarning upon library import

Open Beginner friendly
#1,508 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.8k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

I'm running Python 3.14.4 with the latest version of lets-plot (`lets-plot==4.11.0`).

Every time I import the library via `from lets_plot import *` I get the following `SyntaxWarning`:

> /.venv/lib/python3.14/site-packages/lets_plot/plot/annotation.py:592: SyntaxWarning: "\(" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\("? A raw string is also an option.
.line(r'\(R\^2=\)@..r2..')\\

While I haven't faced any issues so far, it just seems to be an odd behavior to get upon library import.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with lets_plot/plot/annotation.py around line 592, identified in the import warning. Check the string used there and run `from lets_plot import *` under Python 3.14; done means the library imports without this SyntaxWarning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.