According to the docs:
In order to get the latest versions of the dependencies and to update the poetry.lock file, you should use the update command.
poetry update
: resolve all dependencies of the project and write the exact versions into poetry.lock.
I ran poetry update
in my project and nothing happened because I already ran it before.
But when I ran poetry update jupyterlab-server
, then
Updating jupyterlab-server (1.2.0 -> 2.10.3)
As I understand, poetry
tried to update the package to the latest possible version permitted by the constraint in the pyproject.toml
. It also did “Resolving dependencies” as well.
My question is why poetry update
did not update jupyterlab-server
to the latest 2.10.3
as it claimed? Why stop at 1.2.0
?