cool-easter-32542
09/27/2023, 3:57 AMipython repl supports CLI arguments like:
ipython notebook
which launches a visual repl.
Supporting passthrough args would mean that:
./pants repl.py --ipython $target -- notebook $file
would work (assuming you added the relevant 'notebook' deps to --ipython-requirements)
* * *
To do this, you would enable passthru args on the PythonRepl task by overriding the supports_passthru_args property to True (example), and then pass any additional self.get_passthru_args() as args while launching the repl.
You could then add either a unit or integration test for the passthru.
pantsbuild/pantscool-easter-32542
09/27/2023, 3:57 AM