473,811 Members | 2,631 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1394
ho*******@cardi ff.ac.uk (Alex Holcombe) wrote in message news:<1b******* *************** ****@posting.go ogle.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
2209
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 of the applicable US government regulations is required.) Ick--at least, I suppose, until MathML is generally supported. One approach would be to set the ALT attribute to be a linearized version of the equation. But this gets to be tough if...
9
2306
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 another? Where does the meaning overlap, if it does? Where do they perhaps conflict with one another, if they do? Can anyone please explain to someone who is not native speaking, nor fluent in English? TIA
4
1757
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 for a brown-bag type. This is an area I once considered myself pretty knowledgable about, but I haven't been active in these circles for several years now. I don't want to start harping on ideas that have been out of date since 2001! So if...
8
7510
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 at sites like www.csszengarden.com and others. One common technique I see on many sites is to replace a bit of text with an image - something like this: ------------------------------------------------
4
2292
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 on a wide variety of usability and accessibility issues. I looked at Jakob Nielsons book which, from the toc, covered an excellent variety of web usability issues. It also touched on intranets which was very handy for myself. However, I did...
0
1247
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 intended to spam your mail boxes, so please ignore if its inappropriate. We are looking for Jr. Level DBAs to participate in a usability activity. Qualifications of participants should include: * Experience working as a DBA or System...
3
2672
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 be varchar(30) in 10s of tables and putting a CHECK constraint for presence of '@' we could declare
1
1627
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. What we have today are traditional BI tools that don't work nearly as well as they should, even for analysts and power users. The reason they haven't
20
2374
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 use abbreviations for things like millions of dollars, and so on. Thanks, Daniele
0
9730
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10403
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4341
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.