<#3423 Add support for passthrough args to the pyt...
# github-notifications
c
#3423 Add support for passthrough args to the python repl Issue created by stuhood In particular, the
ipython
repl supports CLI arguments like:
Copy code
ipython notebook
which launches a visual repl. Supporting passthrough args would mean that:
Copy code
./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/pants