Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64288

Re: graphical python

References <6ab6e315-78e1-4f14-9925-16bd9a4a0199@googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2014-01-19 01:19 -0700
Subject Re: graphical python
Newsgroups comp.lang.python
Message-ID <mailman.5704.1390120021.18130.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web