On Jun 8, 2012, at 11:45 PM, Chris Hall wrote:
> I know this is a broad question. What are the existing 'serious' alternates
> to the 'usual' browser-based interface to sage?
>
> I'm used to the usual interface, and most of the time it suffices for what I
> want. Alas, when it comes to developing serious modules or worksheets, it's
> not powerful enough. My usual development cycle looks something like:
>
> 1) (re)start the sage notebook server;
>
> 2) edit a worksheet;
>
> 3) edit a module (e.g. foo.py or bar.pyx);
>
> 4) goto 1 (or restart sage if get a .pyx).
>
> A key point is that in 3, I edit the module with a separate application. I
> would like something where everything is integrated into the same
> application. Since my browser doesn't have a decent editor, this doesn't
> seem possible to me. On the other hand, it seems like anything which knows
> how to communicate with the twisted server could mimic and perhaps even
> enhance the standard interface for the notebook. I have come across
> references to attempts to run sage through some other GUI (e.g. Eclipse), but
> I'm not aware of an attempt to reproduce the notebook interface.
>
> Regarding step 1, I don't really mind restarting the notebook server or sage
> itself, though I would like to know what is appropriate. For example, if I
> start a worksheet running and edit a dependent file foo.py, then the server
> doesn't see the changes. I found that it suffices to restart the notebook
> server (but not sage) in order to force regeneration of foo.pyc. Is there a
> better way? Unfortunately restarting the notebook server is insufficient if
> I change bar.pyx. It is sufficient to exit sage and restart it with 'sage
> -br' (and then to restart the notebook server). Is there a better way to
> force regeneration of bar.cpp (say)?
>
> Thanks,
> Chris
I recently found an emacs interface [1] to the ipython notebook which should be
in Sage soon. I haven't tried it, but it might be close to what you want.
Then you could use Emacs for interacting with a Sage notebook and a Sage shell.
Of course, if you don't already use Emacs, then it may not be the best option.
I believe Cantor [2] has a notebook-like interface. What exactly do you want
from the interface?
Regarding not having to restart to pick up changes, then I think you can attach
the files you'll be changing like:
attach('/path/to/file')
and that will bring in the changes whenever it's changed. I'm not sure if it
works for pyx files though.
-Ivan
[1] https://github.com/tkf/emacs-ipython-notebook
[2] http://edu.kde.org/cantor/
--
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
URL: http://www.sagemath.org