Hi,

so I fixed most of the early bugs, here is my latest attempt:

http://4.latest.pythonnb.appspot.com/

it seems to be working reasonably well in most browsers I tried (FF,
IE, Safari, Opera, Chrome, ...).

Opera can't handle event.preventDefault(), which means that if you
press shift+enter, the enter will still get propagated and the new
cell will have 2 rows. I think it's a bug in Opera, but maybe there is
some fix for this. All other browsers seem to work for me.

It's not as polished as my original javascript version:

http://pythonnb.appspot.com/

e.g. the evaluate button is not there, and the blue line is not there
yet either, neither is the blue focus rectangle around cells. I will
not have time for the next month or so to work on this, but I am now
confident that it can be done.

Look at the code here, that gets translated to javascript:

http://github.com/certik/notebook/blob/ef396ef2eb3314ff787000cac7e34b1c08d9af6a/media/index.py

It's all pure python and with pyjamas desktop it should be possible to
run it on the desktop, e.g. in a python interpreter. I think in the
long term, this is the way to go.

Pyjamas is still developing, e.g. I contributed the initial urllib
package into it (the index.py file above still contains my older hack,
that calls javascript --- with new pyjamas, this is not needed
anymore), etc.

Anyway, I am looking forward, I think in couple years it will be
absolutely common thing to have sophisticated web applications and we
could write them in Python.

Ondrej

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to