473,287 Members | 1,533 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,287 software developers and data experts.

Python as a teaching (visualization) tool

I've been using Pyrex to get me through the Computer Vision
class I'm taking this semester
http://shay.ecn.purdue.edu/~ece661/
by dealing with the requirement that all programming
assignments be submitted as C code. That's worked *very* well
for me and I'm thankful that I don't have to deal with writing
the assignments in C from scratch. (I am sure that it would
degrade my understanding of the course material.) Now I've
found another use for Python in this course.

Our lecture yesterday
http://shay.ecn.purdue.edu/~ece661/E...Notes/CV10.pdf
was about Hough Transformations.
http://shay.ecn.purdue.edu/~ece661/E...HoughXform.pdf
There were a lot of questions about how points in image space
appear in parameter space and what a point in parameter space
represents in image space. I was a little confused and trying
to stay on top of the conversation. The visualization in my
head was fuzzy.

The instructor made a comment along the lines of "No one ever
shows the sinusoidal curves in papers" and instructed us to go
home and try drawing some. It struck me that it would be a
*huge* benefit to have tools to help students visualize these
concepts in the classroom.

So I built one.
http://lairds.us/ECE661/Hough
*Now* I can see how the transform works. Much better. (The
parameterization used is for detection of lines.)

What does all of this have to do with Python? Well, I did build
the little Hough tool using Python (and PIL), but while I was in
class thinking "There's got to be a better way to show this" I
kept thinking in terms of taking advantage of Python's
interactive nature to whip together tools like this in front of
a class. Numeric, PIL, WxPython, SciPy, GGobi, MayaVi, ... if
an instructor had a basic understanding of some of these tools
and a handy framework for using them, explanations of many
difficult concepts would come very naturally.

I don't mind building my own tools from rough building blocks,
but I'm going to watch for tools that would be more appropriate
for classroom presentations. I welcome suggestions.

--kyler
Jul 18 '05 #1
7 1973
In article <c1************@jowls.lairds.org>,
Kyler Laird <Ky***@news.Lairds.org> wrote:

I don't mind building my own tools from rough building blocks,
but I'm going to watch for tools that would be more appropriate
for classroom presentations. I welcome suggestions.


Cool! Gonna be at PyCon? There should be lots of opportunities for
discussions like this there.
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

"Argue for your limitations, and sure enough they're yours." --Richard Bach
Jul 18 '05 #2
At some point, Kyler Laird <Ky***@news.Lairds.org> wrote:
So I built one.
http://lairds.us/ECE661/Hough
*Now* I can see how the transform works. Much better. (The
parameterization used is for detection of lines.)


That's a pretty cool use of <input type="image">.

--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca
Jul 18 '05 #3
aa**@pythoncraft.com (Aahz) writes:
I don't mind building my own tools from rough building blocks,
but I'm going to watch for tools that would be more appropriate
for classroom presentations. I welcome suggestions.
Cool! Gonna be at PyCon?
DC?! Uh...no.
There should be lots of opportunities for
discussions like this there.


Yeah, it's tempting. I am certainly feeling the urge to once again
be in the physical presence of lots of Python people but it's not
enough to get me to go to DC.

Perhaps I'll head out West to the O'Reilly Open Source Conference
this year.
http://conferences.oreillynet.com/os2004/
I see that Python 12 is part of it. Yes, that would be a nice way
to spend my birthday. See you there?

I still hope that people will point out solutions here, of course.
(I was half expecting someone to say something along the lines of
"Why didn't you just pull up PyXXX, create a new window, and send
it the Hough_transform() message?")

--kyler
Jul 18 '05 #4
In article <ld************@jowls.lairds.org>,
Kyler Laird <Ky***@news.Lairds.org> wrote:

Perhaps I'll head out West to the O'Reilly Open Source Conference
this year.
http://conferences.oreillynet.com/os2004/
I see that Python 12 is part of it. Yes, that would be a nice way
to spend my birthday. See you there?


If they pick one or more of my tutorials, yes.
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

"Argue for your limitations, and sure enough they're yours." --Richard Bach
Jul 18 '05 #5
On Fri, 13 Feb 2004 15:11:59 GMT, Kyler Laird <Ky***@news.Lairds.org>
wrote:

What does all of this have to do with Python? Well, I did build
the little Hough tool using Python (and PIL), but while I was in
class thinking "There's got to be a better way to show this" I
kept thinking in terms of taking advantage of Python's
interactive nature to whip together tools like this in front of
a class. Numeric, PIL, WxPython, SciPy, GGobi, MayaVi, ... if
an instructor had a basic understanding of some of these tools
and a handy framework for using them, explanations of many
difficult concepts would come very naturally.


I certainly feel there is something substanital to be explored and
exploited here.

My effort to give it realization is PyGeo

http://pw1.netcom.com/~ajs

which uses VPython for 3d rendering - which I think deserves mention
on your list particularly because of its facility at the interactive
prompt.

And I will in fact be hoping to dazzle with my presentation of PyGeo
at PyCon.

One concrete thing I think would help spread the gospel as to Python's
usefulness in this area is a LiveCD - Knoppix based, let's say - that
would come pre-configured with a good amount of this good stuff.

Getting up and running with some of these tools can otherwise be a
chore that one cannot expect the merely curious to undertake.

I have been contemplating a sourceforge project to produce a LiveCD of
Python related educational/visualization tools.

Would you jump in?

Art

Jul 18 '05 #6
Arthur <aj******@optonline.com> writes:
My effort to give it realization is PyGeo http://pw1.netcom.com/~ajs which uses VPython for 3d rendering - which I think deserves mention
on your list particularly because of its facility at the interactive
prompt.
I like it. I hope it becomes a Debian package soon.
One concrete thing I think would help spread the gospel as to Python's
usefulness in this area is a LiveCD - Knoppix based, let's say - that
would come pre-configured with a good amount of this good stuff.
I'm quite dependent on Knoppix/Morphix these days. I appreciate
what they allow.
Getting up and running with some of these tools can otherwise be a
chore that one cannot expect the merely curious to undertake.


I need even more than that right now. I'd like to be able to run
tools on the MS Windows-based computers that litter the classrooms
on campus. That leaves me to either use pure Web-based apps like I
usually make or perhaps Java applets.

I haven't done anything with Jython in a long time but I was
hoping to experiment with it again for building applets. That
would make it easy to deliver some simple interactive apps.

I'm also hoping to figure out a good way to integrate SSH and VNC
into a Java applet so that I can easily use a browser to run apps
on a better platform. That'll give me a lot more flexibility to
run things that Jython won't.

A Knoppix-like solution doesn't work at all in many cases (locked
BIOS) and is clumsy in others (where the instructor presents using
PowerPoint). I think it would be a *great* thing to give to
people who do control their presentation systems though. I can
easily imagine a compelling demonstration to high school teachers
followed by "Oh, and here's a CD you can use to do all of this.
Grab one on your way out the door and feel free to make copies
for your students and colleagues. No salesmen/lawyers will call."
*That* could be very exciting.

--kyler
Jul 18 '05 #7
On Sat, 14 Feb 2004 04:11:56 GMT, Kyler Laird <Ky***@news.Lairds.org>
wrote:
Arthur <aj******@optonline.com> writes:
My effort to give it realization is PyGeo
http://pw1.netcom.com/~ajs

which uses VPython for 3d rendering - which I think deserves mention
on your list particularly because of its facility at the interactive
prompt.


I like it. I hope it becomes a Debian package soon.
One concrete thing I think would help spread the gospel as to Python's
usefulness in this area is a LiveCD - Knoppix based, let's say - that
would come pre-configured with a good amount of this good stuff.


I'm quite dependent on Knoppix/Morphix these days. I appreciate
what they allow.


The Morphix concept is wonderful. In lieu of a full-fledged LiveCD of
Python related visualization tools, would be a base Morphix
distribution of some of the key enabling infrastructure tools - let's
say wxPython, Numeric, pyOpenGL, pygame. And hopefully people will
morph from there as to their specific needs. I'll get to it,
eventually.
Getting up and running with some of these tools can otherwise be a
chore that one cannot expect the merely curious to undertake.
I need even more than that right now. I'd like to be able to run
tools on the MS Windows-based computers that litter the classrooms
on campus. That leaves me to either use pure Web-based apps like I
usually make or perhaps Java applets.


As much as I believe Linux should be encouraged as the preferred
educational platfrom - for a number of reasons - I agree that it is
foolhardy to be reliigious on the issue. The fact is that my own
day-today desktop is Windows, and I have tried to see to it that some
key tools in the category you describe are available as easy Windows
installs

http://pw1.netcom.com/~ajs/download/

This "service" tends to be of particular relevance shortly after a
major Python release.
I haven't done anything with Jython in a long time but I was
hoping to experiment with it again for building applets. That
would make it easy to deliver some simple interactive apps.
Yeah but...

Perhaps good for demos. But in the area in which I am most interested
- geometyry - I find interactive applets tend to be a bit glib - if
that word makes sense in this context - and don't provide an avenue
for the kind of involvment that scripting does. Unless what it is we
are doing is providing the student with the tools to be the creators
of the applets.

I'm also hoping to figure out a good way to integrate SSH and VNC
into a Java applet so that I can easily use a browser to run apps
on a better platform. That'll give me a lot more flexibility to
run things that Jython won't.
Don't understand.

A Knoppix-like solution doesn't work at all in many cases (locked
BIOS) and is clumsy in others (where the instructor presents using
PowerPoint). I think it would be a *great* thing to give to
people who do control their presentation systems though.
Wouldn't it be.
I can easily imagine a compelling demonstration to high school teachers
followed by "Oh, and here's a CD you can use to do all of this.
Grab one on your way out the door and feel free to make copies
for your students and colleagues. No salesmen/lawyers will call."
*That* could be very exciting.
And with Morphix, see how easy it might be to add you own matter to
the existing matter,

--kyler


Jul 18 '05 #8

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

Similar topics

17
by: mike | last post by:
hi all - i'm fairly new to python, coming from a java servlet / velocity template background. i'm looking for a good python web development tool, and hope to find some suggestions here. ...
10
by: Paul Kooistra | last post by:
I need a tool to browse text files with a size of 10-20 Mb. These files have a fixed record length of 800 bytes (CR/LF), and containt records used to create printed pages by an external company. ...
9
by: Robey Holderith | last post by:
Does anybody know of a tool that can tell me all possible exceptions that might occur in each line of code? What I'm hoping to find is something like the following: given all necessary python...
6
by: dcolford2000 | last post by:
Hi All - I'm new to python Is there an impact analysis tool out there that can cross reference python -- VB has a couple of these tools (eg. Visual Expert) TIA, All comments welcome Dave
7
by: adsheehan | last post by:
Hi, I am embedding Python with a C++ app and need to provide the Python world with access to objects & data with the C++ world. I am aware or SWIG, BOOST, SIP. Are there more? I welcome...
191
by: Xah Lee | last post by:
Software Needs Philosophers by Steve Yegge, 2006-04-15. Software needs philosophers. This thought has been nagging at me for a year now, and recently it's been growing like a tumor. One...
0
by: Boris Ozegovic | last post by:
Hi I don't know if someone is familiar with Java JUNG, framework for data visualization (http://jung.sourceforge.net/), I am interested is there anything lik JUNG for Python? -- Greatest...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.