Skip to content

Invalid escape sequence #1070

@raffaem

Description

@raffaem

What happens?

When I load the extension in a Visual Studio Code openened Jupyter notebook with:

%load_ext sql

I get the following warning:

2025-08-21 10:45:49 - py.warnings - WARNING - c:\data\papers\paper_5_AIPUB_RM\.venv\Lib\site-packages\sql\parse.py:339: SyntaxWarning: invalid escape sequence '\:'
  Given a query, replaces all occurrences of ':variable' with '\:variable' and

2025-08-21 10:45:49 - py.warnings - WARNING - c:\data\papers\paper_5_AIPUB_RM\.venv\Lib\site-packages\sql\parse.py:369: SyntaxWarning: invalid escape sequence '\:'
  Given a query, replaces all occurrences of 'example'[x:y] with 'example'[x\:y].

To Reproduce

See above

OS:

Windows

JupySQL Version:

0.11.1

Full Name:

Raffaele Mancuso

Affiliation:

Università di Bologna

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions