Last Site Update: 01 August 2008 | Latest Version: 1.3.19

 
 
 
Home
Features
Editor
Debugger
Code Completion
Templates
Code Coverage
Content Assistants
Refactoring
Tasks
PyLint
Interactive Console
Roadmap
Screenshots
Download
Getting started
Credits
More info
FAQ / BUGS
Developers Guide
pydev-code List
Users Forum
Blog: Pydev Adventures
Hosted at
PyDev at Sourceforge
Donate
Sponsored by
 
Want a better PyDev? Why not give a small donation? (paypal)

Console View


Initialize the pydev console from the console view from the dropdown for a new console (rightmost corner icon in the console view):


Choose the console type -- this will determine the PYTHONPATH and the interpreter that will be used in the console:
  • only the PYTHONPATH for the current editor (gotten from the related project)
  • PYTHONPATH containing all the paths from Python (for all the projects in the workspace)
  • PYTHONPATH containing all the paths from Jython (for all the projects in the workspace)


Code completion can be activated with Ctrl+Space (or the default keybinding in the target installation). All the features available for code completion in the editor are also available in the console (and they're controlled from the same place).


Ctrl+1 can be used to make an assign to a variable


Hovering over some element in the console shows docstrings (or other suitable description if not available)


Page up shows the history (multiple lines may be selected to be re-executed and the field can be used to filter suitable lines -- with wildcards)


Hyperlinks are linked in tracebacks


The color, initial commands and vm args for jython can be configured in window > preferences > pydev > interactive console


Other actions/features available:
  • Up / Down Arrows cycles through the history (and uses the current text to match for the start of the history command)
  • Esc: clears current line
  • Paste added directly to the command line
  • Cut will only cut from the command line
  • Copy does not get the prompt chars
  • Home goes to: first text char / prompt end / line start (and cycles again)
  • Cursor automatically moved to command line on key events
  • Multiple views of the same console can be created

  • Limitation: Output is not asynchonous (stdout and stderr are only shown after a new command is sent to the console)