limited-art-78990
10/10/2024, 3:18 PMpex_binary(
name = "jupyter",
dependencies = [
"3rdparty/python:reqs#jupyterlab",
],
entry_point = "jupyter"
)
but trying to run this results in an error
pants run //quality:jupyter -- lab
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [--debug] [subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-lab` not found.
17:16:42.75 [INFO] Preserving local process execution dir /private/var/folders/rg/_2zqyg0x5qn5tzkc19_jg77h0000gn/T/pants-sandbox-Xc0jie for interactive process
How do I run pypi requirements which define an entrypoint using Pants? 🤔limited-art-78990
10/10/2024, 3:58 PMpoetry
or pdm
I can do
pdm run <<tool>>
which then runs my tool in the venv. How do I achieve something similar with Pants?dazzling-pizza-75442
10/10/2024, 7:08 PMlimited-art-78990
10/11/2024, 2:17 PM