SageTeX: Honey?
     Sage: Yes, dear?
  SageTeX: You know, we've been together for a while now. We get along
           really well. I really like being with you. But...things have
           been changing for me, and I think it's time we consider a
           long distance relationship.
     Sage: What?! No, please don't!
  SageTeX: Well, I'd like to expand my horizons and go new places.
     Sage: But since I met you, we've been inseparable!
  SageTeX: Until now...but you see, with the help of my friend Python,
           I'll keep in touch. I'll call everyday and tell you about
           everything I'm doing. And when you're ready, you can come
           join me.

Yes, it's true: Sage and SageTeX can now have a long distance
relationship. I'm announcing Remote SageTeX, which lets you typeset
LaTeX documents that use SageTeX without Sage being installed on your
computer. You can now use SageTeX on any computer that has LaTeX and
Python 2.6.

To try this out, download the script from [1], and typeset a document
that uses SageTeX. Instead of running Sage on the generated .sage file,
run

    $ python remote-sagetex.py foo.sage

and it should do everything that running Sage on foo.sage would do,
except by contacting a remote server and using the "simple server" API.

You can specify a server, username and password on the command line (see
"--help"), or easily hard-code them into the script (just open the
script in an editor, you'll see where to put the information). If you
don't set them, the script will ask you for any information it needs.

This is beta software, which as we all know, is a hip way of saying that
it's buggy and unfinished. It's brittle in many ways, and it doesn't
work *exactly* like regular SageTeX, but it's pretty close.

Also, note that because of #6251 (which needs review!) if you
run this script over and over again on the same server, it will
accumulate sessions and gobble up memory. So perhaps you should avoid
trying this with a public server such as sagenb.org for the moment.

Please try this out and report any problems, but do remember that my
answer for now might be "well, when it breaks, you get to keep *both*
pieces." Remember that you need Python 2.6.

Also, I'm taking suggestions for a better name. "Remote SageTeX" is
accurate enough, but not too catchy. I think this script is cool and it
needs a cool name!

Enjoy,

Dan

  1. http://sage.math.washington.edu/home/drake/remote-sagetex.py
-- 
---  Dan Drake <dr...@kaist.edu>
-----  KAIST Department of Mathematical Sciences
-------  http://mathsci.kaist.ac.kr/~drake

Attachment: signature.asc
Description: Digital signature

Reply via email to