#17203: Make sage -notebook=ipython land by default in pwd
------------------------+----------------------------
Reporter: slabbe | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: notebook | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------+----------------------------
Since #16996 the default directory of {{{sage -notebook=ipython}}} is
{{{DOT_SAGE/notebooks_ipython/}}} following the old notebook. In the old
Sage notebook, each worksheet was a directory and even each single cell
was stored in its own directory. Therefore, there was no notion of
"present working directory" at all. With the ipython notebook, each
worksheet lives in one present working directory chosen by the user. That
is one of the main point of the ipython notebook philosophy and we should
not change that in Sage. See the post of Fernando Perez about difference
between the ipython notebook and the Sage notebook:
''"This is a key difference of our approach and the Sage notebook, so
it' worth clarifying what I mean, the key point being the execution model
and its relation to the filesystem. The Sage notebook took the route of
using the filesystem for notebook operations, so you can't meaningfully
use 'ls' in it or move around the filesystem yourself with 'cd', because
Sage will always execute your code in hidden directories with each cell
actually being a separate subdirectory. This is a perfectly valid
approach and has a number of very good consequences for the Sage notebook,
but it is also very different from the IPython model where we always keep
the user very close to the filesystem and OS. For us, it's really
important that you can access local scripts, use %run, see arbitrary files
conveniently, etc., as these are routine needs in data analysis and
numerical simulation."'' (Fernando Perez, [http://blog.fperez.org/2012/01
/ipython-notebook-historical.html The IPython notebook: a historical
retrospective], January 2012)
Let's change the default directory so that it is equal to the present
working directory (`pwd`) as it is the nice way of using ipython.
--
Ticket URL: <http://trac.sagemath.org/ticket/17203>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.