Sorry if this question has been asked already, but...
# general
l
Sorry if this question has been asked already, but I'm unable to figure out how to start JupyterLab from Pants. I would think this would be sufficient:
Copy code
pex_binary(
    name = "jupyter",
    dependencies = [
        "3rdparty/python:reqs#jupyterlab",
    ],
    entry_point = "jupyter"
)
but trying to run this results in an error
Copy code
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? 🤔
Similar for things like Airflow, Dagster, dbt. With
poetry
or
pdm
I can do
Copy code
pdm run <<tool>>
which then runs my tool in the venv. How do I achieve something similar with Pants?
l
Have not! And sweet, it works like a charm! No errors, nothing ❤️. Thanks @dazzling-pizza-75442!