Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I’m facing an annoying issue while use Cursor to edit my package and use the updates in the same time on jupyter lab. The cursor uses non-ASCII characters in the code comments and then this prevents autoreload doing its job.
[autoreload of ******.modules.**.**** failed: Traceback (most recent call last):
File "/opt/global/lib/python3.12/site-packages/IPython/extensions/autoreload.py", line 322, in check
elif self.deduper_reloader.maybe_reload_module(m):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/global/lib/python3.12/site-packages/IPython/extensions/deduperreload/deduperreload.py", line 545, in maybe_reload_module
new_source_code = f.read()
^^^^^^^^
File "/usr/lib/python3.12/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6130: ordinal not in range(128)
]
Steps to Reproduce
install a package using pip install -e .
Operating System
Linux
Version Information
Version: 2.4.37 (Universal)
VSCode Version: 1.105.1
Commit: 7b9c34466f5c119e93c3e654bb80fe9306b6cc70
Date: 2026-02-12T23:15:35.107Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.1.0
For AI issues: which model did you use?
Opus 4.6 MAX
Does this stop you from using Cursor
No - Cursor works, but with this issue