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

Frame work for simple physics web applications

I'd like to use my webserver to distribute some simple python physics
apps. Ideally, I'd like to use some simple form to input a few pieces
of data, call a python program, and return some image from a plot or
some other rendering. This is easy to do using CGI, but I was
wondering whether anyone on the list could recommend that would look a
little more polished and professional.

Let's say I want to input a wave vector k, and then input a plot of
sin(k*x). I would like to have a simple form input for k, and then
display an image of the plot. What I'm doing is a little more varied
than this, but the common thread is that in each application I need to
input several pieces of data and then display some image. I can
probably think of 20 different applications right off the bat that I'd
like to deploy.

The idea behind this is to put together some simple toy models for
quantum computing qubits that my experimental collaborators can play
with without having to install Python, NumPy, and MatPlotLib
themselves. (I understand, of course, that such an installation might
be "good for them", but I'd rather not fight that battle just now.)

I could, of course, write a Jython applet for this, but this would
require my re-learning how to use the Java API, and it has been a few
years for me.

Do any of the AJAX frameworks for Python compare in simplicity to
writing a simple CGI script? I've been impressed with web.py, since it
seems pretty easy to use, but I would go to the trouble of learning
one of the bigger frameworks if they would provide a more elegant
solution.

My web skillz are obviously several years out of date, so I'd like
some guidance on the best way to update them.

Thanks in advance,

Rick
Jun 27 '08 #1
3 1327
On 19 Apr, 21:55, Rick Muller <rpmul...@gmail.comwrote:
I'd like to use my webserver to distribute some simple python physics
apps. Ideally, I'd like to use some simple form to input a few pieces
of data, call a python program, and return some image from a plot or
some other rendering. This is easy to do using CGI, but I was
wondering whether anyone on the list could recommend that would look a
little more polished and professional.

Let's say I want to input a wave vector k, and then input a plot of
sin(k*x). I would like to have a simple form input for k, and then
display an image of the plot. What I'm doing is a little more varied
than this, but the common thread is that in each application I need to
input several pieces of data and then display some image. I can
probably think of 20 different applications right off the bat that I'd
like to deploy.

The idea behind this is to put together some simple toy models for
quantum computing qubits that my experimental collaborators can play
with without having to install Python, NumPy, and MatPlotLib
themselves. (I understand, of course, that such an installation might
be "good for them", but I'd rather not fight that battle just now.)

I could, of course, write a Jython applet for this, but this would
require my re-learning how to use the Java API, and it has been a few
years for me.

Do any of the AJAX frameworks for Python compare in simplicity to
writing a simple CGI script? I've been impressed with web.py, since it
seems pretty easy to use, but I would go to the trouble of learning
one of the bigger frameworks if they would provide a more elegant
solution.

My web skillz are obviously several years out of date, so I'd like
some guidance on the best way to update them.

Thanks in advance,

Rick
www.vpython.org might be what you are looking for.
Jun 27 '08 #2
On Apr 19, 2:44 pm, globalrev <skanem...@yahoo.sewrote:
>
www.vpython.orgmight be what you are looking for.
Except, if I'm not mistaken, vpython isn't a web framework. It would
work if I wanted to write some python scripts and have other people
run them, but I want to run everything through a web page, so I don't
have to worry about installing python on everyone's computer and
distributing updates of all of my scripts.
Jun 27 '08 #3
Rick Muller wrote:
On Apr 19, 2:44 pm, globalrev <skanem...@yahoo.sewrote:

>www.vpython.orgmight be what you are looking for.

Except, if I'm not mistaken, vpython isn't a web framework. It would
work if I wanted to write some python scripts and have other people
run them, but I want to run everything through a web page, so I don't
have to worry about installing python on everyone's computer
So what should the students use when they want to explore quantum
computing outside the scope you're offering ?
C++, MatLab, LabView perhaps, this looks to me like an unique
opportunity to promote Python.
and
distributing updates of all of my scripts.
I'm not familiar with this, but isn't it possible to run scripts from a
website locally ?

cheers,
Stef
Jun 27 '08 #4

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

Similar topics

0
by: harold fellermann | last post by:
Am I stupid or what? I want to implement a very simple extension class in C (as I did it many times before...) The python equivalent of my class whould look like: class physics_DPD : def...
4
by: Ray Schaeffer | last post by:
Hi, I've written a very simple test HTML/JS program where the JS code in one frame writes to a different frame with "parent.frame1.document.write(...". This seems to work ok with IE-6, but with...
14
by: Frances Del Rio | last post by:
if (parent.frames.main.location == 'mediaselect.html') { I have a very simple frameset, name of frame where I'm checking is 'main'... why is this not working? I mean this is correct syntax,...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
3
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a...
3
by: Vongza | last post by:
<html> <head> <title>Cross Frame Reference</title> <script language="javascript"> function showThisTitle() { alert(document.title); } function showAnotherTitle() { try {...
42
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
1
by: asibin2000 | last post by:
I'm having problems with a VB.NET application. We have multiple web applications and we are using a VB.NET program to do a sort of Single Sign On. So this works great, the system automatically...
0
by: kirby.urner | last post by:
This archival (yet recent) posting to an obscure physics list might be of some interest to those taking a longer view. The work/study projects described below come from an Oregon think tank...
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:
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.