On Feb 21, 8:14 am, mark mcclure <mcmcc...@unca.edu> wrote:
Hi Mark,
> I can't quite figure out how to access optional programs
> using Sage.app. For example, if I start sage via the
> command line './sage-3.3.rc2/sage' and then fire up the
> notebook, I can access Octave and compute the eigenvalues
> of a random 5x5 matrix using something like the following
> %octave
> A = rand(5)
> eig(A)
>
> If I type the same thing into a notebook opened via
> Sage.app, then sage claims it can't find octave.
> Of course, when I run from the command line, Sage
> inherits my PATH which includes /usr/local/bin, where
> my copy of Octave is located. This presumably does
> not happen when I run Sage.app.
Sounds like a bug in the startup script to me since it should inherit
PATH and DYLD_LIBRARY_PATH. That is why we need more polish with the
dmg, but only the actual use will expose the problems :).
I will try to reproduce this and will open a ticket in case I can. If
anybody else can reproduce this please open a ticket and mention it in
this thread.
> Is there an easy way for me to set my PATH or other
> environment variables from within the sage notebook?
> Is there a logical init file to edit in the Sage.app
> package to make this happen automatically?
You can inject env values from the Python session, but I do believe if
you set it from inside Sage or python is is basically too late to have
any effect on the external launcher.
> Thanks,
> Mark McClure
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---