473,385 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

OSX IDE usability issues

*One thing that attracted me to Python was the prospect of
significantly shorter debugging times and debug-execution cycles
thanks to Python being an interpreted rather than compiled language.
In the case of MATLAB, the interpreted language I use currently,
programming is quite speedy because one can test small sets of lines
of code by copying them directly from the program file to the command
line and debugging them in isolation- e.g. allowing one to easily set
individual variables manually and checking the result. *

I was disappointed to find that I was not able to do this with Python
programs using OSX's PythonIDE (also I didn't find any alternative
IDEs on the web that might take care of this). *I am a newbie, so I
may be wrong, but there appear to be three reasons for this. *

1. when I copy text from a Python script (using command-C or the menu)
and paste it in on the command line, only the first line of the text
is actually executed, even though manually entering the same lines one
by one with carriage returns between them does execute the code
perfectly. *Why the problem with pasting occurs I don't know- does
anyone know? *

2.Even if the above did work, trying to execute a few lines of code
out of a Python script should typically not work, if I understand
Python syntax correctly. *Because to Python indentation whitespace is
meaningful, one cannot e.g. copy the contents out of a nested if-then
statement and expect it to execute, because when you paste the text it
will have that level of indentation still rather than having no
indentation as it should. *Am I right about this and is there a way
around it?

3. One nice thing about MATLAB is I can execute a script and then
query the values of all the script's variables from the command line.
By just typing the variable name, I can see its value. *In contrast,
it appears that in Python variables have more restricted scope such
that the command line can't "see" the variables executed in a Python
script. *Is there some way to make the variables in a Python script
global so that I can play with them on the command line?

Without solutions or workarounds to the above three issues, much of
the everyday efficiency advantage of using an interpreted language
seems to me to be lost. *So despite the beauty of Python, for my new
laboratory I might end up using MATLAB and Psychophysics toolbox
instead (presuming they someday get that to work with OSX!). *

Thanks in advance for any corrections comments etc.,
Alex Holcombe
Jul 18 '05 #1
2 1379
ho*******@cardiff.ac.uk (Alex Holcombe) wrote in message news:<1b**************************@posting.google. com>...
1. when I copy text from a Python script (using command-C or the menu)
and paste it in on the command line, only the first line of the text
is actually executed, even though manually entering the same lines one
This depends on the IDE. Most console applications use the stupid
method of one line after the other, not thinking about the reasons
that lead to this technique a few decades ago. I don't think an
interactive console should be implemented any more in this way.
2.Even if the above did work, trying to execute a few lines of code
out of a Python script should typically not work, if I understand
Python syntax correctly. *Because to Python indentation whitespace is
You can, this is also possible if the IDE indentifies your initial
indentation and unindent the code before feeding the it to the
interpreter. Should be a few lines of code.
3. One nice thing about MATLAB is I can execute a script and then
query the values of all the script's variables from the command line.
By just typing the variable name, I can see its value. *In contrast,
it appears that in Python variables have more restricted scope such
that the command line can't "see" the variables executed in a Python
script. *Is there some way to make the variables in a Python script
global so that I can play with them on the command line?


Can you explain this a little bit more ?
If you cut&paste some of the former local variables becames of course
global variables. If you give an example it would be much better to
understand.
And from what i know, Python is a much complexer language then MATLAB
so don't expect that everything is so easy. But you get back better
programs.
There are a lot of improvements by using an interpreted language like
python, but maybe this does not fit your personal programming style.
If you get more experience with programming you will find that testing
individuell code snippets will be less and less important. Of couse
it's nice to explore a new library but this can also be done with
simple scripts. In fact i find it much more complicated to cut&paste
code instead of running a file where i do the changes.

Oh yes, (1) and (2) are resolved in "Arachno Python IDE", which is in
a closed beta testing phase.
Jul 18 '05 #2
In article <6e**************************@posting.google.com >,
ll*****@web.de (Lothar Scholz) wrote:
There are a lot of improvements by using an interpreted language like
python, but maybe this does not fit your personal programming style.
If you get more experience with programming you will find that testing
individuell code snippets will be less and less important. Of couse
it's nice to explore a new library but this can also be done with
simple scripts. In fact i find it much more complicated to cut&paste
code instead of running a file where i do the changes.


I agree with this last paragraph. I typically build the code in stages
and run it between stages with some prints or something else to check
each stage. It's easy, doesn't involve copy-past or command lines. I'm
testing the code in-place. I think that's easier and better. Just code
and hit cmd-R.

-- Lou Pecora
My views are my own.

"If you're not part of the solution, you're part of the precipitate."
(Steven Wright)
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Harlan Messinger | last post by:
I am reviewing a set of pages, some of which include in-line mathematical formulas represented as images. I am addressing the accessibility issues behind those images. (Conformance to Section 508...
9
by: Barbara de Zoete | last post by:
I am getting more and more confused as to the meaning of the words 'accessibility' and 'usability' *in the context of the world wide web*. What do these two words mean? How do they differ from one...
4
by: Timothy Larson | last post by:
Hello again, groups. Long time, no post. I'm now working for the web center of a large Midwestern company, and am thinking of putting together a presentation on web usability and design issues...
8
by: George Adams | last post by:
I'm just starting to pick up some CSS knowledge after about 10 years of plain ol' HTML coding. I'm finding it easiest to learn CSS by example, so I'm following with interest the tricks I see done...
4
by: bissatch | last post by:
Hi, I am a web designer and have just recently took up the position of web marketer for a company managing their intranet and external website. I was interested in a book that provided good tips...
0
by: usable_us | last post by:
Hello, Oracle's Usability group will be conducting an incentive-based two hour usability activity. (This is not a job posting but an invitation to a two hour activity) This email was not...
3
by: Rajesh Kumar Mallah | last post by:
Hi , I think one of the usage patterns of DOMAINS is to have size specifications and validity constraints at one place for easy administration of Database. Eg, instead of declaring email to...
1
by: YellowfinTeam | last post by:
Laws and Myths of Usability & Interface Design Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications....
20
by: D.M. Procida | last post by:
I'm trying to find a guide for the formatting and presentation of numbers in web pages, which will answer questions along the lines of what if anything to use as separators in large figures, how to...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.