As Django 1.3 is almost ready for release, so is PyCharm 1.2. The Release Candidate build, in addition to a bunch of improvements for Django support and general bugfixes, includes a new feature: an action in the context menu to execute the selected code fragment in a Python console. It uses a running console if one exists, or starts a new one if one is not running.
As usual, the PyCharm 1.2 Release Candidate download and the Release Notes are available on the PyCharm EAP page.
Diificult to see the value of execute seleection. Just looking at my code there is nothing I could just highlight and run, and thats not to say my code isnt modular or covered by unit tests. Selections are likely going to depend on various input variables, unless your selection starts with something like
a = 1 * 5
b = a * 3
Think about someone learning Python using PyCharm. That is a huge bonus.
Nice for working out all of those StackOverflow answers too.
Hi Matt, btw it is possible to execute selection in debug command line console during debug session. For example at the point, where your input variables are known.