shiv
shiv copied to clipboard
Supporting tab completion when using the REPL
Has there been any investigation done into whether/how to support niceties from the normal Python REPL like tab completion and command history?
I've tried using import site; site.enablerlcompleter()
and import rlcompleter; import readline; readline.parse_and_bind("tab: complete")
before calling code.interact()
, but neither seem to be enough.
hey @kennydo
I haven't done any investigation into this, mostly out of personal bias (I typically use iPython for interactive sessions, so it never occurred to me to check the command completion in an interactive pyz)
I'll find some time to look into this :)
Noticed this issue and it made me think: is there a way to use SHIV_INTERPRETER
but have it drop directly into an IPython REPL?
I guess I could do something like:
SHIV_ENTRY_POINT=IPython:embed
.. and include IPython as a requirement for my shiv. Wonder if there is or could be a better way.
it would be nice as I find myself having to do some quick and dirty debug with shivs sometimes and auto complete and IPython would be sweet here.