PyCharm 2.7.2 Web Help

Tools | Run Python Console

Tools | Run Django Console


Python or Django consoles appear in the separate tabs of the Run tool window every time you choose the corresponding command on the Tools menu.
Note that Django console is only available for the Django applications.

Color and font scheme of a console is configurable on the Console Colors and Console Fonts pages of the Colors and Fonts editor settings.

An interactive console is divided into two panes: the lower pane serves for user input, the upper pane displays results and messages.

ItemDescription
2.7+ rerunConsoleRerun console
Ctrl+F5Ctrl+F5
Click this button to terminate the current process and launch the new one.
stopStop
Ctrl+F2Ctrl+F2
Click this button to stop the current process.
close.pngClose
Ctrl+Shift+F4Ctrl+Shift+F4
Click this button to close the selected tab of the Run tool window and terminate the current process.
runBuildExecute Current Statement
EnterEnter.
Click this button to execute the command at caret, entered in the input pane of the console.
help.gifHelp
F1F1
Click this button to show reference.

Context menu commands

CommandShortcutDescription
Copy ReferenceCtrl+Alt+Shift+CCtrl+Alt+Shift+CChoose this command to put reference to the symbol at caret to the Clipboard.
Compare with ClipboardShow selection in the console and contents of the Clipboard in the Differences viewer.
gistCreate GistChoose this command to create a Git Gist.
clear_allClear AllChoose this item on the context menu to delete all messages from the upper part of the console.
Paste Ctrl+V; Shift+InsertCtrl+V; Shift+Insert Insert the last entry of the Clipboard next to the caret position in the lower part of the console.
Paste from History Ctrl+Shift+V; Ctrl+Shift+InsertCtrl+Shift+V; Ctrl+Shift+Insert Insert selected entry of the Clipboard next to the caret position in the lower part of the console.
Paste Simple Ctrl+Shift+V; Ctrl+Shift+InsertCtrl+Shift+V; Ctrl+Shift+Insert Insert selected entry of the Clipboard as plain text, next to the caret position in the lower part of the console.

Tip

Use up and down arrow keys to browse through the history of executed commands, and repeat the desired ones.

2.7.2+

Tip

PyCharm console is available for both local and remote interpreters.

See Also

Procedures:

Getting Started:

Web Resources: