Questions tagged [python-idle]

IDLE is Python's Integrated Development and Learning Environment. It is part of the standard Python distribution.

IDLE is Python's Integrated Development and Learning Environment. It is part of the standard Python distribution. Though lightweight, it has a fairly rich feature set, including a code editor and a shell (in separate windows). It is written in Python using the tkinter toolkit.

1438 questions
40
votes
4 answers

How do you add breakpoints to a Python program in IDLE?

I solved this already, I'm just posting it here because I couldn't figure it out with google, or by reading the docs. I only found it by accident. To add a breakpoint, right-click on the line that you want to add a breakpoint on and select "Set…
Nick ODell
  • 15,465
  • 3
  • 32
  • 66
37
votes
4 answers

Pasting multiple lines into IDLE

Is there a way to paste a block of code into IDLE? Pasting line by line works, but sometimes I'd like to paste many lines at once. When I try, IDLE reads the first line and ignores the rest. >>> a = 1 b = 2 c = 3 >>> >>> a 1 >>> b Traceback (most…
foosion
  • 7,619
  • 25
  • 65
  • 102
35
votes
6 answers

What's the working directory when using IDLE?

So, I'm learning Python and would like to create a simple script to download a file from the internet and then write it to a file. However, I am using IDLE and have no idea what the working directory is in IDLE or how to change it. How can I do file…
Nathan2055
  • 2,283
  • 9
  • 30
  • 49
27
votes
12 answers

"Edit with IDLE" option missing from context menu

I have Python 2.7.5 that installed with ArcGIS 10.2.2. When I first right-clicked a .py script I'd previously written it listed the "Edit with IDLE" option in the context menu. However, this option no longer appears when I right-click a .py…
nokalake
  • 433
  • 2
  • 5
  • 11
27
votes
2 answers

Exit gracefully if file doesn't exist

I have following script in Python 3.2.3: try: file = open('file.txt', 'r') except IOError: print('There was an error opening the file!') sys.exit() #more code that is relevant only if the file exists How do I exit gracefully, if the…
Jakub Zaverka
  • 8,816
  • 3
  • 32
  • 48
26
votes
8 answers

after pip successful installed: ModuleNotFoundError

I am trying to install the SimPy module so that I can use it in IDLE. However, everytime I try to import in IDLE, I got an error. I already tried reinstalling Python and Pip and tried to modify the location of the apps. SimPy can be found in the…
Robert
  • 263
  • 1
  • 3
  • 4
25
votes
6 answers

SyntaxError: multiple statements found while compiling a single statement

I'm in Python 3.3 and I'm only entering these 3 lines: import sklearn as sk import numpy as np import matplotlib.pyplot as plt I'm getting this error: SyntaxError: multiple statements found while compiling a single statement What could I be doing…
user3213857
  • 369
  • 1
  • 3
  • 6
24
votes
9 answers

Cleanest way to run/debug python programs in windows

Python for Windows by default comes with IDLE, which is the barest-bones IDE I've ever encountered. For editing files, I'll stick to emacs, thank you very much. However, I want to run programs in some other shell than the crappy windows command…
YGA
  • 9,546
  • 15
  • 47
  • 50
24
votes
2 answers

Python: Why is IDLE so slow?

IDLE is my favorite Python editor. It offers very nice and intuitive Python shell which is extremely useful for unit-testing and debugging, and a neat debugger. However, code executed under IDLE is insanely slow. By insanely I mean 3 orders of…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
23
votes
6 answers

Python IDLE: Change Python Version

I have Python 2.x and 3.x on my machine (Mac OS X 10.6). For some things I want to use ver 2, but for others I want ver 3. I like the IDLE software for editing/running, but it always uses version 3. Is there any way to change the version of the…
Nathan
  • 6,772
  • 11
  • 38
  • 55
22
votes
12 answers

Python error - IDLE's subprocess didn't make connection. Either IDLE can't start or personal firewall software is blocking connection

I am new to programming and i decided to learn Python first, so; I installed Python, latest version 3.4. and I am trying to open Python IDLE(GUI) mode, so when I open I get message "IDLE's subprocess didn't make connection. Either IDLE can't start…
Usce
  • 417
  • 1
  • 7
  • 18
19
votes
5 answers

Python IDLE. Auto-complete/Show completions not working

IDLE is being very dodgy as to when it will actually show an Auto-complete menu. As of late it hasn't been working at all, or, more specifically, only works during an interactive session. I've been using Code Blocks for C, and have gotten really…
Zack
  • 4,177
  • 8
  • 34
  • 52
19
votes
4 answers

Is it possible to print a string at a certain screen position inside IDLE?

It's a strange and silly question I know, but I'm curious because I don't know that much about python and how it works. From the terminal or when you use IDLE, is there any way to print a string at a certain screen position? I'll try to explain this…
Cesco
  • 3,770
  • 7
  • 24
  • 26
19
votes
8 answers

Running Python file by double-click

I have really annoying problem, I cannot run a Python file just by double-clicking. I have tried to set it to open the file with idle.bat but that only starts IDLE editor on double-click, it does not run the Python file.
Bob
  • 347
  • 2
  • 3
  • 12
19
votes
8 answers

IDLE warns against an old TCL version even though I've installed a newer version

I have installed ActiveTcl8.6.1.1.297588-macosx10.5-i386-x86_64-threaded on my OS X 10.9.1 . However, when I launch IDLE by running idle3 from the terminal, the following warning shows in the IDLE window: Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 16…
Evan Aad
  • 5,699
  • 6
  • 25
  • 36
1
2
3
95 96