Hello,

When I use sage in a xterm I can load a source file with the *.sage  name.

sage: load ('In/This/Directory/MyFile.sage') # it's fine with and without parenthesis
sage: # I continue my sage session

Now I run sage in emacs with the sage-mode.el file.
And with the same command I get an error because this time sage is looking for a *.sobj file.

sage: load('TheSameFile.sage') # In the right directory
---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)

/home/fmy/.sage/temp/solen/11856/_tmp_sage11812Muu_sage_5.py in <module>()

/usr/local/sage-4.2-devel/local/lib/python2.6/site-packages/sage/structure/sage_object.so in sage.structure.sage_object.load (sage/structure/sage_object.c:7156)()

IOError: [Errno 2] No such file or directory: '/home/fmy/Atelier/Sage/rewrite11.sage.sobj'

Then I try to load this file without parenthesis. I get an other error :

Sage doesn't find the right path even if the *SAGE-main* is in the right directory.

How can I load this file from a test.sage file ?

My second question :
How can I read output from the *Sage-main* buffer when I use sage-send-region ?

My emacs displays only load "a ramdom file",
and doesn't display neither the input (in the other buffer)
nor the result of this display. So I must use a lot of "print".

I add these require in my .emacs :

(require 'sage-view "sage-view")
(require 'sage "sage")

Many thanks to Sage user in emacs !

F.

--
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

Reply via email to