Hi,
You can use:
{{{
%sh
cd ~/foobar
ls
echo "Blah"
}}},
but any directory changes are limited to the cell only (due to
architectural reasons). Otherwise, os.listdir('.') and and
os.chdir('~/foo') are your best choices.
On Tue, Jul 13, 2010 at 5:53 PM, orca <[email protected]> wrote:
> Hi there,
>
> I'm a newbie Sage user and my question is related to using its
> notebook interface in a more convenient ipython-like way in my single
> machine (be it a laptop or desktop), if possible. What I mean,
> explicitly, for example, is being able to type:
>
> cd ~orca/research
>
> and being able to change to my research directory under my account.
> This works under the command line prompt of Sage (before launching the
> notebook) interface and I wonder whether it would be possible under
> the notebook as well.
>
> Another example was trying to use the ls shell command:
>
> ls
>
> I tried !ls and $ls, without success...
>
> Any help is appreciated!
>
> --
> 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
>
--
Tim Joseph Dumol <tim (at) timdumol (dot) com>
http://timdumol.com
--
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