python-idle Questions

5

In - Python, inside the the IDLE, in the File Editor Window, How do you run just a selected single line of code in the script, without having the rest of the lines of the program being runned ?
Loleta asked 10/9, 2015 at 13:32

3

The string I am writing is very long. To make it easier to read, I would like to wrap the text onto multiple lines. How is this done?
Guay asked 17/5, 2018 at 4:35

5

Solved

What are the key differences between Python's IDLE and its command line environment? IDLE looks nicer, of course, and has some kind of GUI... Moreover, is IDLE treated the same as the shell? I mean...
Nesbitt asked 10/9, 2015 at 9:12

8

Solved

I want to write the following two lines on the console: x = 3 print x**5 But when I type x = 3, I press enter, it then executes the assignment. How to get it to execute only after typing the seco...
Runoff asked 19/6, 2011 at 13:59

7

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...
Scotfree asked 20/1, 2014 at 5:27

9

Solved

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 ...
Outstation asked 13/1, 2017 at 16:58

2

Solved

Is there a way to find out if the python script is running in the IDLE interpreter or the terminal? Works cross-platform if possible, or if needed a different way for each platform. Work with Pyt...
Effuse asked 16/6, 2013 at 13:18

6

Solved

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 directo...
Allveta asked 4/4, 2013 at 20:30

4

Solved

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...
Dentalium asked 12/9, 2011 at 19:14

11

Solved

I am running python 2.7.1. I can't figure out how to launch the IDLE IDE. I am told it comes already installed with python, but I can't find it using spotlight.
Sybilla asked 9/1, 2012 at 16:50

5

I am well aware of the thread How to execute Python code from within Visual Studio Code But none of them shows how to get the >>> python shell running with the file imported. Cuz I would like to c...
Waistcoat asked 25/10, 2019 at 10:51

3

IDLE just straight up stopped working on my desktop, as in when I try and open it nothing happens, it won't even give me an error message. It works fine on my laptop however. Right-clicking and try...
Selftaught asked 6/1, 2019 at 6:22

3

Solved

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...
Dismiss asked 3/3, 2011 at 2:19

8

Solved

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 ...
Bushelman asked 26/2, 2010 at 23:57

5

I´m a noob in python and about a week ago IDLE stop working, I have readed some other people questions about this, but none of them had the same error that I´m getting, which is: Traceback (most r...
Tomato asked 22/9, 2011 at 4:30

8

Solved

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...
Shani asked 13/6, 2017 at 18:9

23

I know there's a similar topic about the Python console, but I do not know if they are the same. I tried system("clear") and it didn't work here. How do I clear Python's IDLE window?
Heterophyllous asked 16/9, 2009 at 11:49

4

For running Python 2, all I do is activate the required Conda environment and just type idle. It automatically opens IDLE for Python 2.7. But I can't figure out how to do this for Python 3. I have ...
Variable asked 19/1, 2016 at 15:49

3

Solved

How can I detect user inactivity in a Qt QMainWindow? My idea so far is to have a QTimer that increments a counter, which, if a certain value is passed, locks the application. Any mouse or key inte...
Erring asked 27/7, 2010 at 7:52

13

Solved

I'm trying to teach Komodo to fire up IDLE when I hit the right keystrokes. I can use the exact path of the shortcut in start menu in the Windows Explorer location bar to launch IDLE so I was hopin...
Leatri asked 22/9, 2008 at 23:44

12

Solved

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...
Silage asked 21/3, 2015 at 5:35

7

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...
Barnabe asked 2/5, 2012 at 12:21

14

Solved

Is there a GUI for IPython that allows me to open/run/edit Python files? My way of working in IDLE is to have two windows open: the shell and a .py file. I edit the .py file, run it, and interact w...
Nguyetni asked 9/8, 2010 at 8:50

2

Solved

I am working on a super simple socket program and I have code for the client and code for the server. How do I run both these .py files at the same time to see if they work ?
Terribly asked 11/3, 2013 at 0:53

3

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 longe...
Parthinia asked 10/5, 2018 at 17:29

© 2022 - 2024 — McMap. All rights reserved.