ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
Komodo
Tutorials
Feature Showcase
Live Projects
Remote Files
Custom Toolbars
Directory Shortcut
Export/Import a Project Package
Filesystem in Project
Custom Keybindings
Custom Template in a Project
Preview Cascading Style Sheets
Simple Snippets
Create a Prompting Snippet
Code Completion Snippet
Break on a Variable Value
Debug an XSLT Program
Fast String Finder
Incremental Searching
The Open/Find Toolbar
Installing Extensions
Using SCC
Google Run Command
Using Interactive Shells
Test a Regular Expression

MyASPN >> Reference >> Komodo >> Tutorials >> Feature Showcase
Komodo documentation

Feature Showcase: Using the Interactive Shell Komodo IDE only


Press 'F12' ('Command'+'Esc' on Mac OS X) to switch between the Editor Pane and the interactive shell. This showcase uses the sample program preprocess.py, described in the Python tutorial, located by default in install dir\Komodo x.x\samples\python_tutorials.

Before you start: Configure the interactive shell preferences to load the Python shell by default.

The key bindings mentioned below are part of the default Windows/Linux key binding scheme. If you are using Komodo for Mac OS X, click Help|Key Bindings to view the equivalent OS X key bindings.

On line 67 of preprocess.py, select contenttype.




Press 'F12' ('Command'+'Esc' on Mac OS X) to open the shell. Enter import and press 'Ctrl'+'V'. Press 'Enter' to load the module.




Enter help ( and press 'Ctrl'+'V' again to paste contenttype. Add a period.




Press 'F12' ('Command'+'Esc' on Mac OS X) to switch back to the Editor Pane. Select getContentType.




Press 'F12' ('Command'+'Esc' on Mac OS X) to switch back to the interactive shell. Press 'Ctrl'+'V' to paste getContentType, then enter a closing parenthesis and press 'Enter'.



Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved