Skip to content

Python


Poetry Shell Changed to Env Activate

For some mysterious reason, poetry decided to drop the shell subcommand.

Before

It was simple to use. To switch to the virtual environment created by poetry just use the following.

poetry shell

Now

Now, we need to leverage env subcommand.

eval $(poetry env activate)

There is another problem here. For now, VSCode doesn't recognize any poetry virtual environment.


References: