For an automated solution you can look at the Eclipse External Tools
capability. This is documented in the Eclipse help for the workbench. Follow the links Workbench User Guide ==> Concepts ==> Ant & External Tools ==> External Tools
.
for interactive use, you can run lettuce
from the Python console within Eclipse if you have Pydev
installed, and you should if you use Eclipse for Python development.