The Python Console is called the Python console, which is the Python interactive mode; the Terminal is called the terminal, which is the command line mode.
There are two main Python interactive modes: CPython uses >>> as a prompt, and IPython uses In [number]: as a prompt.
The Python interactive mode can directly enter the code, then execute it, and get the result immediately, so the Python interactive mode is mainly used for debugging Python code.
The command line mode is the same as the system's CMD (command prompt) and can run various system commands.
Use >>> as a prompt
- If the ipython package is not installed in the virtual environment, the default is >>> mode
- If IN[serial number] is currently displayed, and you want to change it back to >>>, uncheck the following boxes in File->Setting, Apply->OK
and restart the PyCharm application ( it is useless to restart the Console after testing )
Use IN[number] as a prompt
- Check the following boxes in File->Setting, Apply->OK
- Restart PyCharm ( only restarting Console is invalid after testing )
- If it is still in >>> mode, it means that iPython is not installed in your environment. You can install it with conda install ipython. After the installation is complete, restart PyCharm again to switch to IN [serial number] mode.