You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Experienced behaviour: Can't call "rye add" or "rye sync" when uv is enabled in rye, from a jupyterlab python kernel command line.
I think this could be a bug in uv, that's why I'm reporting it here. This is how I reproduce it:
Using jupyterlab (v3.6 or v4.1 both show this problem), create a new notebook in a new directory.
Write 'numpy>=1.2' to 'requirements.txt'
Run !uv pip compile -o "outputfile" "requirements.txt" in a python notebook
Bug: outputfile contains ansi escapes in the lockfile output.
For some reason this happens in the notebook environment but not in a regular terminal. The original bug in rye seems to be related to this - it also gets this behaviour when called from a notebook. Rye could work around it using --no-color, but it might be something that can be fixed in uv.
When using rye in the notebook the output looks something like this:
!rye add numpy
Added numpy>=1.26.4 as regular dependency
Reusing already existing virtualenv
Generating production lockfile: /.../newjupyterlabproject/requirements.lock
error: Unexpected '�', expected '-c', '-e', '-r' or the start of a requirement in `/tmp/.tmpXbPWlj/requirements.txt` at position 221
error: could not write production lockfile for project
Caused by:
failed to generate lockfile
uv 0.1.11
Linux
The text was updated successfully, but these errors were encountered:
Experienced behaviour: Can't call "rye add" or "rye sync" when uv is enabled in rye, from a jupyterlab python kernel command line.
I think this could be a bug in uv, that's why I'm reporting it here. This is how I reproduce it:
!uv pip compile -o "outputfile" "requirements.txt"
in a python notebookFor some reason this happens in the notebook environment but not in a regular terminal. The original bug in rye seems to be related to this - it also gets this behaviour when called from a notebook. Rye could work around it using --no-color, but it might be something that can be fixed in uv.
When using rye in the notebook the output looks something like this:
uv 0.1.11
Linux
The text was updated successfully, but these errors were encountered: