Avoid Repeated "poetry run" #6894
-
|
Hello all, When I am in a poetry project directory, I almost always want to run commands from within the project's virtualenv. Thus I find it slightly tedious to constantly type Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Note: Since Poetry 2.0.0, the |
Beta Was this translation helpful? Give feedback.
-
|
If anyone is coming across this in 2025, I believe the correct answer is now |
Beta Was this translation helpful? Give feedback.
poetry shellorsource $(poetry env info --path)/bin/activate-- overall it's "just" another virtual environment.Note: Since Poetry 2.0.0, the
poetry shellcommand is only available as a plugin. You can use$(poetry env activate)instead.