fastai / nbdev

Create delightful software with Jupyter Notebooks
https://nbdev.fast.ai/
Apache License 2.0
4.8k stars 484 forks source link

showdoc: SyntaxWarning: invalid escape sequence with Python 3.12 #1396

Open castorfou opened 4 months ago

castorfou commented 4 months ago

Provide a minimally reproducible example

run nbs/api/08_showdoc.ipynb with Python 3.12 kernel

some background

what I understand from https://stackoverflow.com/questions/77531208/python3-12-syntaxwarning-on-triplequoted-string-d-must-be-d is that with python 3.12, these messages have been promoted from DeprecationWarning to SyntaxWarning and are therefore not automatically filtered anymore.

image

This is not a bug but I guess something should be made about it?