Created
September 12, 2019 16:44
-
-
Save jsdt/182a5e2f38e8037597a285bb4c9554ee to your computer and use it in GitHub Desktop.
Python shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def start_repl(): | |
import code | |
import readline | |
import rlcompleter | |
vars = globals() | |
vars.update(locals()) | |
readline.set_completer(rlcompleter.Completer(vars).complete) | |
readline.parse_and_bind("tab: complete") | |
code.InteractiveConsole(vars).interact() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment