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
11
votes
4 answers

Convert JSON to CSV using Python (Idle)

I have a JSON file of Latitude/Longitude that I want to covert to a CSV file. I want to do this using Python. I have read/tried all other stackoverflow and google search results suggestions. I've managed to get as far as creating the CSV and…
Kristen G.
  • 705
  • 1
  • 8
  • 15
10
votes
8 answers

Python IDLE subprocess error?

IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection. Don't think this has been asked-how come this comes up occasionally when running very simple programs-I…
James Wanchai
  • 2,861
  • 4
  • 21
  • 16
10
votes
0 answers

Python - IDLE Crashes when Scrolling

With Python 3.7.1 (installed with Homebrew) on macOS Mojave 10.14.1, whenever I scroll using the trackpad while using IDLE for python scripting, the IDLE window crashes. So much as moving along the trackpad in any way while in the IDLE window causes…
john_super
  • 101
  • 2
10
votes
3 answers

Import a script in IDLE

This has probably been asked before, and is really basic, but: I'm using Windows 7. I have Idle for Python 2.4.4 and 3.1. I have some scripts residing in arbitrary locations on my file system. I'd like to import them and play around with their…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
10
votes
3 answers

Idle and Anaconda

I use to have idle. Then I downloaded Anaconda and opened idle through there. I have not used idle for a while but just recently went to go open it up and use it again. However, it seems I no longer have idle on my computer, to my understanding I…
AlleyCat
  • 165
  • 1
  • 2
  • 11
10
votes
3 answers

How to import/open numpy module to IDLE

I want to use numpy for a program I have to run and I want to do it in the IDLE IDE. I have installed the numpy binary from online, but when I try running "import numpy" and then some numpy commands in my script, but the python shell returns an…
SUPhys
  • 221
  • 1
  • 5
  • 8
10
votes
2 answers

Carriage Return not working in IDLE?

I'm trying to create a code for a countdown timer that stays in place: so that each line overwrites the previous one. This is what I have so far: import time def countdown(t): while t: mins, secs = divmod(t, 60) timeformat =…
GM.Ghost
  • 117
  • 1
  • 5
10
votes
3 answers

Using IDLE to run Python PyUnit unit tests

Is there a way, within IDLE, to run the PyUnit (unittest module) unit tests directly? I ask because I have a short test module and when I run it with python mymodule.py from the Cygwin shell I get all tests passed, but when I use Run->Run Module…
Chirael
  • 3,025
  • 4
  • 28
  • 28
10
votes
8 answers

starting Python IDLE from command line to edit scripts

I've tried many variations of this command: idle.py -e filepath, but it simply starts IDLE like normal, not opening any extra windows for editing, and not throwing any errors. So how can I do the equivalent of opening IDLE, file>open>filepath via…
Ponkadoodle
  • 5,777
  • 5
  • 38
  • 62
10
votes
6 answers

How to physically print python code in color from IDLE?

I have searched for an answer to this but the related solutions seem to concern 'print'ing in the interpreter. I am wondering if it is possible to print (physically on paper) python code in color from IDLE? I have gone to: File > Print Window in…
user1063287
  • 10,265
  • 25
  • 122
  • 218
10
votes
11 answers

Can't run Python via IDLE from Explorer [2013] - IDLE's subprocess didn't make connection

Resolved April 15, 2013. In windows 7 (64bit) windows explorer when I right clicked a Python file and selected "edit with IDLE" the editor opens properly but when I run (or f5) the Python 3.3.1 program, it fails with the "IDLE's subprocess didn't…
Lynn Rice 2259129
  • 111
  • 1
  • 1
  • 6
10
votes
7 answers

Python, writing multi line code in IDLE

How do i write >>> x = int(raw_input("Please enter an integer: ")) >>> if x < 0: ... x = 0 ... print 'Negative changed to zero' ... elif x == 0: ... print 'Zero' ... elif x == 1: ... print…
Himanshu.MarJAVA
  • 475
  • 1
  • 11
  • 33
9
votes
3 answers

Python: Different results when using PyCharm and IDLE/python

I was just reading about the 'unexpected result of is operator' which happens because Python cache numbers between -5 and 256. This was discussed here: "is" operator behaves unexpectedly with integers and here: "is" and "id" in Python 3.5 When I run…
Alonbs
  • 259
  • 1
  • 11
9
votes
5 answers

Run pip in python idle

I am curious about running pip. Everytime I ran pip in command shell in windows like that c:\python27\script>pip install numpy But, I wondered if I can run it in python idle. import pip pip.install("numpy") Unfortunately, it is not working.
Hyun-geun Kim
  • 919
  • 3
  • 22
  • 37
9
votes
2 answers

Why does IDLE 3.4 take so long on this program?

EDIT: I'm redoing the question entirely. The issue has nothing to do with time.time() Here's a program: import time start=time.time() a=9<<(1<<26) # The line that makes it take a while print(time.time()-start) This program, when saved…
isaacg
  • 593
  • 6
  • 19