>> Actually one more question --- if I run the terminal, e.g. ipython,
>> then you have your own hook in ipython (executed after each command)
>> which checks which files were generated (in ~/.sage/temp)  and does
>> the right thing (e.g. calling jmol or some viewer for the image?).  
>> The
>> code seems to be in misc/interpreter.py, but right now I can't find
>> the place where this is hooked into ipython. I also didn't find the
>> hooks in ~/.sage/ipythonrc. I'll search further.
>
> No.  Plotting on the command line is completely different than
> plotting in the notebook.
> On the command line it works 100% just like you might expect.  The
> show command draws the image in some temp directory, then runs a
> viewer on it.  Ipython has *nothing* to do with this.  It would work
> fine even in pure python, eg., "sage -python"   then "from sage.all
> import *" then plot.

You can make the command line more like the notebook -- see the sage- 
mode elisp code for the correct incantations -- but sage itself (the  
command line interpreter) doesn't try to embed images etc, sage-mode  
does.

Nick

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to