How to return to the command from the state where you can not enter interactive mode with python of git bash

How to return to the command from the state where you can not enter interactive mode with python of git bash

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 ...

How to get out of python

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?


## (Supplement) How to enter python interactive mode with git bash Add `winpty` at the beginning. Only this.
$ 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

How to return to the command from the state where you can not enter interactive mode with python of git bash
How to use python interactive mode with git bash
How to return to the previous directory with the Bash cd command
From the initial state of CentOS8 to running php python perl ruby with nginx
How to scrape stock prices of individual stocks from the Nikkei newspaper website with Python
How to know the number of GPUs from python ~ Notes on using multiprocessing with pytorch ~
Consider what you can do with Python from the Qiita article
How to monitor the execution status of sqlldr with the pv command
From the introduction of JUMAN ++ to morphological analysis of Japanese with Python
How to crop the lower right part of the image with Python OpenCV
[Introduction to Python] How to sort the contents of a list efficiently with list sort
Move the turtle to the place where you click the mouse with turtle in Python
Launch the Python interpreter from Git bash
How to enter Japanese with Python curses
How to correctly upgrade the software when building Linux (CentOS) with Vagrant ~ Using the example of upgrading from Python 2.7 to Python 3.6 ~
How to pass the execution result of a shell command in a list in Python
What you want to memorize with the basic "string manipulation" grammar of python
Note: How to get the last day of the month with python (added the first day of the month)
[Python Tips] How to retrieve multiple keys with the maximum value from the dictionary
How to get a list of files in the same directory with python
[Introduction to Python] How to get the index of data with a for statement
How to upload with Heroku, Flask, Python, Git (4)
Get the contents of git diff from python
How to specify attributes with Mock of python
How to identify the element with the smallest number of characters in a Python list?
Extract images and tables from pdf with python to reduce the burden of reporting
How to pass arguments when invoking python script from blender on the command line
How to count the number of occurrences of each element in the list in Python with weight
I want to use Linux commands at the command prompt! Use Linux commands at the command prompt instead of Git Bash
The 15th offline real-time I tried to solve the problem of how to write with python
[Python] How to remove duplicate values from the list
How to create an article from the command line
The wall of changing the Django service from Python 2.7 to Python 3
How to delete the specified string with the sed command! !! !!
How to get the number of digits in Python
Learn Nim with Python (from the beginning of the year).
How to scrape image data from flickr with python
[Introduction to Python] How to iterate with the range function?
How to upload with Heroku, Flask, Python, Git (Part 3)
[Python] How to specify the download location with youtube-dl
Get the return code of the Python script from bat
How to upload with Heroku, Flask, Python, Git (Part 1)
How to upload with Heroku, Flask, Python, Git (Part 2)
[Python] Summary of how to specify the color of the figure
[Python] How to rewrite the table style with python-pptx [python-pptx]
How to switch to smartphone mode with Python + Selenium + Chrome
How much do you know the basics of Python?
Summary of how to share state with multiple functions
How to write offline real time I tried to solve the problem of F02 with Python
The world's most easy-to-understand explanation of how to make LINE BOT (3) [Linkage with server with Git]
How to quickly count the frequency of appearance of characters from a character string in Python?
Return the image data with Flask of Python and draw it to the canvas element of HTML
Not surprisingly known! ?? What about the arguments of built-in functions? What school are you from? [Python]
Dealing with import tk, matplotlib, etc. from the state where TSL / SSL is not available
A Python script that allows you to check the status of the server from your browser
How to pass the execution result of a shell command in a list in Python (non-blocking version)
How to get the information of organizations, Cost Explorer of another AWS account with Lambda (python)
[Codewars] A site where you can train from the basics of coding with a browser (Vim can be used with a browser to support 32 programming languages. More than 4000 problems have been posted!)
I tried to find the entropy of the image with python
I tried to simulate how the infection spreads with Python
Get the package version to register with PyPI from Git