Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7680173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:03:11+00:00 2026-05-31T18:03:11+00:00

Is it possible for TextMate to run Python scripts in IDLE instead of internally

  • 0

Is it possible for TextMate to run Python scripts in IDLE instead of internally or via Terminal?

Rather than just use the Python build that comes with IDLE installation I want the shell window to actually launch so I can type in the interactive session.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:03:13+00:00Added an answer on May 31, 2026 at 6:03 pm

    I’ve had a play on OSX, and I think I’ve got it working.

    Open TextMate’s Bundle Editor (Bundles -> Bundle Editor -> Show Bundle Editor)

    On the left hand side: Expand Python, then duplicate your “Run Script” command (bottom corner, second-left button [++]), and name it “Run Script in IDLE”

    Choose a keyboard shortcut, and put it in the box next to Activation: Key Equivalent

    Replace the following line:

    TextMate::Executor.run(ENV["TM_PYTHON"] || "python", "-u", ENV["TM_FILEPATH"]) do |str, type|
    

    with

    TextMate::Executor.run("/usr/bin/idle2.7", "-r", ENV["TM_FILEPATH"]) do |str, type|
    

    This supplies your filepath as an argument to idle, as if you ran /usr/bin/idle2.7 -r /path/to/script.py directly. (Or whatever python version you’re using – /usr/bin/idle3.1 etc)

    You could also use the -e flag instead of the -r flag, to edit your script in IDLE instead of running it.

    screenshot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: What IDE to use for Python? I want to get serious with
Possible Duplicate: Python or Ruby Interpreter on iOS I just discovered this apps pypad
Is it possible for TextMate to syntax highlight the opening and closing tags of
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should
I'm trying to use textmate, but I find it hard to navigate a project
It is possible to emulate vim modes, macros and bindings in textmate?
I use textmate for website development and compass to compile css stylesheets. Right now
Is it possible to change the file sorting order in Textmate's project drawer, say,
I wonder whether it is possible to debug a C++ program with Textmate, using
How, if possible, can I have iPhone SDK's classes (UI*) to autocomplete inside TextMate?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.