When I try to enter python's interactive mode with git bash and get depressed, I can't enter the interactive mode, I can't return to the command, and I stay there.
You can't exit with ctrl + c
, ʻesc, ʻexit ()
, etc., but you can exit by typing on the keyboard or pressing Enter.
↓ This state
$ python
o
ora
oraora
oraoraora
#I can't get out ...
Space + character + Enter
You can get out with this.
** ↓ Enter "a" and Enter **
$ python
a
File "<stdin>", line 1
a
^
IndentationError: unexpected indent
$
I'm missing an error, but is there any other correct way?
$ winpty python
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
If you want to use python's interactive mode with git bash, ipython is recommended.
For ipython, I wonder if it will be reference here.
Recommended Posts