On Monday, 24 January 2011 05:52:33 UTC+11, Pablo W.  wrote:
> Hi,
> 
> 
> 
> I'm planning to use sage notebook for a tutorial on numerical
> 
> techniques in economics. I would like to leave my students free to
> 
> choose the language they already know among octave, R and python .
> 
> When doing some preliminay work I noticed a difference in the way
> 
> interfaces for Octave or Matlab are configured :
> 
> 
> 
> the current directory inside octave cells is always '/home/pablo/
> 
> Sources/sage/sage-4.6/data/extcode/octave/user'
> 
> 
> 
> the current directory inside matlab cells is a temporary directory
> 
> (e.g. /tmp/tmpI3ubrq) and its new files are printed in the Worksheet.
> 
> 
> 
> The second behaviour is very convenient for remote session but I
> 
> did'nt find how to change the default settings for octave. Is there an
> 
> option for that ?
> 
> 
> 
> 
> 
> I was also thinking that another useful solution would be to always
> 
> stay in the DATA directory, where additional libraries can be added,
> 
> and to monitor new files after each cell evaluation and eventually to
> 
> copy/symlink them in the temporary directory.
> 
> In the current situation, I don't know how to save files in DATA
> 
> directory in order to share it between many cells or to access
> 
> manually uploaded files. What do people do ?
> 
> 
> 
> Best,
> 
> 
> 
> Pablo

I know this one!

I can fix it on Sage 5.2.

You can copy and paste the chdir function from 
local/lib/python/site-packages/sage/interfaces/matlab.py line 286 (from the 
relative root of sage) into 
local/lib/python/site-packages/sage/interfaces/octave.py line 366.

Cheers!

-- 
-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org



Reply via email to