graphical python

B

buck

I'm trying to work through Skienna's algorithms handbook, and note that the author often uses graphical representations of the diagrams to help understand (and even debug) the algorithms. I'd like to reproduce this in python.

How would you go about this? pyQt, pygame and pyglet immediately come to mind, but if I go that route the number of people that I can share my work with becomes quite limited, as compared to the portability of javascript projects.

I guess my question really is: has anyone had success creating an interactive graphical project in the browser using python?

Is this a dream I should give up on, and just do this project in coffeescript/d3?
 
I

Ian Kelly

I'm trying to work through Skienna's algorithms handbook, and note that the author often uses graphical representations of the diagrams to help understand (and even debug) the algorithms. I'd like to reproduce this in python.

How would you go about this? pyQt, pygame and pyglet immediately come to mind, but if I go that route the number of people that I can share my work with becomes quite limited, as compared to the portability of javascript projects.

I guess my question really is: has anyone had success creating an interactive graphical project in the browser using python?

Is this a dream I should give up on, and just do this project in coffeescript/d3?

You should be able to do something without much fuss using HTML 5 and
either Pyjamas (which compiles Python code to Javascript) or Brython
(a more or less complete implementation of Python within Javascript).
For example, see the clock demo on the Brython web page.

Pyjamas is the more established and probably more stable of the two
projects, but you should be aware that there are currently two active
forks of Pyjamas and some controversy surrounding the project
leadership.
 
I

Irmen de Jong

I'm trying to work through Skienna's algorithms handbook, and note that the author often uses graphical representations of the diagrams to help understand (and even debug) the algorithms. I'd like to reproduce this in python.

How would you go about this?

Would something like this help http://ipython.org/notebook.html ?

Irmen
 
B

buck

You should be able to do something without much fuss using HTML 5 and

either Pyjamas (which compiles Python code to Javascript) or Brython

(a more or less complete implementation of Python within Javascript).

For example, see the clock demo on the Brython web page.



Pyjamas is the more established and probably more stable of the two

projects, but you should be aware that there are currently two active

forks of Pyjamas and some controversy surrounding the project

leadership.

Thanks Ian.
Have you personally used pyjs successfully?
It's ominous that the examples pages are broken...

I was impressed with the accuracy of the Brython implementation. I hope they're able to decrease the web weight in future versions.
 
I

Ian Kelly

Thanks Ian.
Have you personally used pyjs successfully?
It's ominous that the examples pages are broken...

I don't have any personal experience with either project. I don't
know what's going on with pyjs.org currently, but the examples at the
pyj.be fork seem to be in working order.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top