On Sun, Jan 4, 2009 at 5:16 AM, gerhard <[email protected]> wrote:
>
> Consistent with what I was guessing.
> Since I need have the notebook invoke my own executable,
> rather than python (just an init function will not do),
> I have to find where the process is spawned and insure I have
> an option that allows me to do something different.
>
> So where do I look?
> The way I start the command line version is to
> invoke a new option that is processed in sage.sage.
>
The command that is run to start the new sage process is line 119 in
SAGE_ROOT/devel/sage/sage/interfaces/sage0.py:
command = "sage -python -u"
This is called from line 110 of
SAGE_ROOT/devel/sage/sage/server/notebook/worksheet.py:
# Create new pexpect interface to a Python instance
S = Sage(server=server, ulimit=ulimit, maxread = 1, python=True,
verbose_start=False)
- William
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---