Skip to content

Fix SyntaxWarning from update message#7453

Closed
living180 wants to merge 1 commit intojupyter:6.5.xfrom
living180:patch-1
Closed

Fix SyntaxWarning from update message#7453
living180 wants to merge 1 commit intojupyter:6.5.xfrom
living180:patch-1

Conversation

@living180
Copy link
Copy Markdown

The use of backslashes in the ASCII-art "Update" banner results in an "invalid escape sequence" SyntaxWarning under Python 3.12. Fix by changing the banner string to a raw string (which ignores backslashes).

The use of backslashes in the ASCII-art "Update" banner results in an "invalid escape sequence" SyntaxWarning under Python 3.12.  Fix by changing the banner string to a raw string (which ignores backslashes).
@JasonWeill JasonWeill added the bug label Sep 10, 2024
@JasonWeill
Copy link
Copy Markdown
Collaborator

@living180 Thank you for opening this pull request! Notebook 6 code is now maintained as part of nbclassic, or Classic Notebook. Looks like this style of string is being used in nbclassic as well:

https://github.com/jupyter/nbclassic/blob/abe28bc4fe5d3e026c68c01248047656f58db635/nbclassic/notebookapp.py#L328-L333

Can you please open an issue in nbclassic and open a pull request in that repo instead? Thanks again for your contribution.

@living180
Copy link
Copy Markdown
Author

Done - jupyter/nbclassic#297. Thanks for the input!

@jtpio
Copy link
Copy Markdown
Member

jtpio commented Apr 23, 2026

Closing as handled in jupyter/nbclassic#297

Thanks all!

@jtpio jtpio closed this Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants