Hi Tim Thanks for the prompt reply! I have tried and, of course, confirmed your suggestions.
However, I am a little concerned about the best way to streamline my experience with Sage. In fact, I find the embedding of the figures (all kinds of plots) and even Latex in the notebook quite amazing and nice; I would like to be able to merge all the convenience of ipython and the Sage notebook as well: I use to leave some data files in differente directories of my account and would like to easily and permanently change to these directories, within the Sage notebook... If I understood your reply correctly this is not possible, only for each cell of the notebook. That's frustrating; what is the rationale behind this, since, if I stick to Sage command line, I would, as far as I could tell, have all ipython;s functionality (apart from colored i/o..). How do you read or import a file from different directories, within the notebook??? Then how do you save data from within the notebook to your machine? Thanks again! On Jul 13, 6:59 am, Tim Joseph Dumol <[email protected]> wrote: > 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 > > athttp://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
