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+F5Ctrl+5Ctrl+F5Ctrl+F5Ctrl+F5Ctrl+F5Ctrl+F11Control F5Control F5Control F5
Click this button to terminate the current process and launch the new one.
stopStop
Ctrl+F2Ctrl+F2Ctrl+2Ctrl+F2Ctrl+F2Shift+F5Shift+F5 or Ctrl+Shift+DeleteCtrl+F2Meta F2Meta F2Meta F2
Click this button to stop the current process.
close.pngClose
Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+Shift+F4Ctrl+WMeta Shift F4Meta Shift F4Meta W
Click this button to close the selected tab of the Run tool window and terminate the current process.
runBuildExecute Current Statement
EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter.
Click this button to execute the command at caret, entered in the input pane of the console.
help.gifHelp
F1F1F1F1F1F1F1F1F1F1F1
Click this button to show reference.

Context menu commands

CommandShortcutDescription
Copy ReferenceCtrl+Alt+Shift+CCtrl+Alt+Shift+CCtrl+Alt+Shift+CCtrl+Alt+Shift+CCtrl+Alt+Shift+CCtrl+Alt+Shift+CCtrl+Alt+Shift+CCtrl+Alt+Shift+CMeta Alt Shift CMeta Alt Shift CMeta 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 or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertAlt+P, Shift+Insert or Ctrl+YCtrl+V or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertMeta V or Shift InsertMeta V or Shift InsertMeta V or 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 or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertAlt+YCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertMeta Shift V or Meta Shift InsertMeta Shift V or Meta Shift InsertMeta Shift V or Meta 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 or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertAlt+YCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertMeta Shift V or Meta Shift InsertMeta Shift V or Meta Shift InsertMeta Shift V or Meta 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: