googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.18k stars 708 forks source link

Strings aren't shown with their usual repr() #4641

Open nedbat opened 3 months ago

nedbat commented 3 months ago

Describe the current behavior I enter this into a cell:

'doesn\'t'

And the result is shown to me as:

'doesn't'

which isn't a valid string, and isn't the repr() of the string.

How it looks in Firefox:

image

This started from this discussion about the Python docs: https://discuss.python.org/t/suggestion-to-improve-docs-about-nested-quotes-in-strings/55914

cperry-goog commented 3 months ago

Thanks. Tracking this internally at b/348407096