However when trying to get a REPL after an execution (maybe inspect some variables or have imports ready):
user@pop-os:~/Documents/GitHub/standalone_scripts$ uv run python -i main.py
Traceback (most recent call last):
File "/home/user/Documents/GitHub/standalone_scripts/main.py", line 9, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'
>>>
Originally posted by @Michallote in https://github.com/astral-sh/uv/issues/6548#issuecomment-2403714219_