On 6/29/12 1:18 AM, Ivan Andrus wrote:
> If you want something really fast you can look into sage-forker which
> simply starts a shell session, then forks when ever you ask for
> another session:
>
>
https://github.com/jasongrout/sage-forker
>
> I have used it in the past and it worked quite well. The biggest
> problem for me was that `sage -c` didn't take advantage of it so it
> was still terribly slow.
>
> I'm hoping that once the new ipython is installed it will be possible
> to start an ipython kernel (will all of sage loaded of course), and
> then connect to it for `sage -c` and for starting a new terminal
> session. It's quite possible that I don't understand ipython though.
> Perhaps someone more familiar with ipython can weigh in.
>
Here are a couple of caveats:
1. the sage-forker mentioned above has some issues that I have
programmed around, but I haven't had time to post yet. These are things
like the random number seed is not set, directories are not changed, etc.
2. In the old version of the Sage cell server, we implement a model for
forking a new Sage process when needed.
3. In the new Sage cell server, we take advantage of the IPython
architecture to implement a general way to fork to create new kernels.
We hope to clean up this code and submit it to IPython, so it will be as
easy as Ivan describes.
Thanks,
Jason