Created
May 3, 2020 12:19
-
-
Save leozc/72397f06fca47d2aace79f4dbfc86679 to your computer and use it in GitHub Desktop.
repl implementation for python in Bazel
This file contains 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
https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt#L350 | |
add | |
``` | |
import code | |
code.interact() | |
``` |
Or if need ipython support
import IPython
IPython.embed()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.scrygroup.com/tutorial/2019-07-29/dropping-into-python-interactive-shells/