On 8/9/07, Ted Kosan <[EMAIL PROTECTED]> wrote:
> For the past few weeks I have been putting together a cross platform
> IDE for Sage.  It is based on jEdit, it has most of the features that
> a typical programmer's text editor has, and it can also be extended to
> support Java3D.  My next step is to add the protocol to it that is
> needed to talk with the Notebook server.

This is very interesting.   I haven't yet tried the java program below,
but your email raises the questions of what exactly is the protocol
needed to talk with the server.  There is one, but it isn't really written
down anywhere.  One can partially reverse engineer it either by looking
at the javascript in the notebook itself, in the file
   SAGE_ROOT/devel/sage/sage/server/notebook/js.py
or by looking mainly at the file
   SAGE_ROOT/devel/sage/sage/server/notebook/twist.py
which actually maps URL's and post/get requests to actual actions.
Undoubtedly, you'll rapidly run into situations where the current
"notebook server protocol" doesn't do everything you need, or
does things in a way that is possibly too confusing.  Please
post when that happens.

Just as a very quick overview, most things are done using
very simple URL's.  For example, the print version of worksheet 9
is got via:
  http://localhost:8000/home/admin/9/print
and there are numerous other worksheet-related commands that
are all of the form
   http://localhost:8000/home/admin/9/command_name

Probably in many cases, without modifying the notebook server,
you'll have to do lots of "html --> something else" parsing in
your java / SAGE IDE ?  This is perhaps not desirable, and could
be avoided by adding some more functionality to twist.py.

Anyway, perhaps you could post back with a few examples of
specific things you'll need from the notebook server for your java
ide, and I can think about how best to actually do them?

 -- William

> Anyway, the application can be downloaded from the following URL if
> anyone is interested in looking at it:
>
> http://206.21.94.60/tmp/sageide_dist.01.zip
>
> Java needs to be installed in order to run the IDE.  For people that
> use Windows, Java can be obtained here:
>
> http://java.com
>
> Just unzip the archive and execute either the run.bat script or the
> run.sh script in order to launch the application.
>
> Ted
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to