Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64281 > unrolled thread
| Started by | buck <workitharder@gmail.com> |
|---|---|
| First post | 2014-01-18 21:40 -0800 |
| Last post | 2014-01-19 12:13 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.python
graphical python buck <workitharder@gmail.com> - 2014-01-18 21:40 -0800
Re: graphical python Ian Kelly <ian.g.kelly@gmail.com> - 2014-01-19 01:19 -0700
Re: graphical python buck <workitharder@gmail.com> - 2014-01-19 11:30 -0800
Re: graphical python Ian Kelly <ian.g.kelly@gmail.com> - 2014-01-19 13:20 -0700
Re: graphical python Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-01-19 12:13 +0100
| From | buck <workitharder@gmail.com> |
|---|---|
| Date | 2014-01-18 21:40 -0800 |
| Subject | graphical python |
| Message-ID | <6ab6e315-78e1-4f14-9925-16bd9a4a0199@googlegroups.com> |
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?
[toc] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2014-01-19 01:19 -0700 |
| Message-ID | <mailman.5704.1390120021.18130.python-list@python.org> |
| In reply to | #64281 |
On Sat, Jan 18, 2014 at 10:40 PM, buck <workitharder@gmail.com> wrote: > 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.
[toc] | [prev] | [next] | [standalone]
| From | buck <workitharder@gmail.com> |
|---|---|
| Date | 2014-01-19 11:30 -0800 |
| Message-ID | <cb6a4423-63c1-46c3-87aa-29d6db5583b1@googlegroups.com> |
| In reply to | #64288 |
On Sunday, January 19, 2014 12:19:29 AM UTC-8, Ian wrote: > On Sat, Jan 18, 2014 at 10:40 PM, buck <w***@gmail.com> wrote: > > > 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. 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.
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2014-01-19 13:20 -0700 |
| Message-ID | <mailman.5726.1390162880.18130.python-list@python.org> |
| In reply to | #64318 |
On Sun, Jan 19, 2014 at 12:30 PM, buck <workitharder@gmail.com> wrote: > 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.
[toc] | [prev] | [next] | [standalone]
| From | Irmen de Jong <irmen.NOSPAM@xs4all.nl> |
|---|---|
| Date | 2014-01-19 12:13 +0100 |
| Message-ID | <52dbb34b$0$2844$e4fe514c@news.xs4all.nl> |
| In reply to | #64281 |
On 19-1-2014 6:40, buck wrote: > 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web