Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Python IDE can run my script line-by-line?

Tags:

python

ide

I wouldn't call myself programmer, but I've started learning Python recently and really enjoy it.

I mainly use it for small tasks so far - scripting, text processing, KML generation and ArcGIS.

From my experience with R (working with excellent Notepad++ and NppToR combo) I usually try to work with my scripts line by line (or region by region) in order to understand what each step of my script is doing.. and to check results on the fly.

My question: is there and IDE (or editor?) for Windows that lets you evaluate single line of Python script?

I have seen quite a lot of discussion regarding IDEs in Python context.. but havent stubled upon this specific question so far.

Thanks for help!

like image 930
radek Avatar asked Oct 22 '10 18:10

radek


People also ask

How do I run a Python script from line by line?

If you have migrated from R, changing this to Ctrl+Enter would help you run the code line by line. Or Cmd+Enter if you were using a Mac.

How do I run a Python script directly?

To run Python scripts with the python command, you need to open a command-line and type in the word python , or python3 if you have both versions, followed by the path to your script, just like this: $ python3 hello.py Hello World!

Which software do you need to execute a Python script?

Text Editor (VS Code) To run Python script on a text editor like VS Code (Visual Studio Code) then you will have to do the following: Go in the extension section or press ' Ctrl+Shift+X ' on windows, then search and install the extension named ' Python ' and ' Code Runner '.


2 Answers

If you like R's layout. I highly recommend trying out Spyder. If you are using windows, try out Python(x,y). It is a package with a few different editors and a lot of common extra modules like scipy and numpy.

like image 106
l337x911 Avatar answered Oct 19 '22 12:10

l337x911


The only one I've had success with is Eclipse with Pydev

like image 45
Chris Avatar answered Oct 19 '22 11:10

Chris