Open strangemonad opened 2 months ago
Thanks, these are great examples!
The last one seems easiest to fix (we can recommend --from
there with a command you can copy-paste).
The Jupyter one is somewhat rough. I think the correct invocation is: uvx --with jupyter --from jupyter-core jupyter notebook
. Because jupyter-core
ships the executable, and then dynamically figures out which commands are enabled -- so you do need to install jupyter
in that environment, but it doesn't contain the executable.
\cc @zanieb
Thank you!
I wonder what the pipx
invocation for Jupyter is?
@zanieb it's equally convoluted for pipx, which I know really comes down to how the package authors choose to expose things. What I've done in the past is something like
pipx install --include-deps jupyter # to grap `jupyter` from `jupyter-core`
pipx inject jupyter --include-apps --include-deps jupyter-lab
That ends up installing too many entrypoints but at least it's been reliable across the last few versions.
😬 Yeah that's pretty wild too. Thanks for sharing!
Seems like Jupyter should ship a CLI package that does something reasonable.. haha
I don't have a great solution but wanted to call out some uvx rough edges. Some popular python packages don't expose conventionally named CLI entrypoints or rely on entrypoints from a transitive dependency.
Some examples:
jupyterlab
doesn't provide meaningful info of how to get to a solution.jupyter
does seem to work but gives a confusing warningdbt
You sort of have to know that the warning means use--from