Issue
How can we start ipython REPL and instruct it to pass some command-line arguments to the underlying python interpreter?
For example, we can open a python REPL with increased verbosity by using
python -v
But I could not see how to pass that flag through when opening IPython.
Solution
I'd say the best way to do that would be to explicitly launch ipython
with python:
python /usr/bin/ipython
as the ipython
executable is just a python script ; or you can launch ipython
by telling python to load the ipython
library:
python -m IPython.frontend.terminal.ipapp
and then you can add all the native python arguments:
python -v /usr/bin/ipython
python -v -m IPython.frontend.terminal.ipapp
HTH
Answered By - zmo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.