#12926: `sage -ipython` doesn't use the sage directory for ipython.
------------------------------+---------------------------------------------
       Reporter:  itaibn      |         Owner:  itaibn  
           Type:  defect      |        Status:  new     
       Priority:  major       |     Milestone:  sage-5.1
      Component:  interfaces  |    Resolution:          
       Keywords:  ipython     |   Work issues:          
Report Upstream:  N/A         |     Reviewers:          
        Authors:              |     Merged in:          
   Dependencies:              |      Stopgaps:          
------------------------------+---------------------------------------------

Comment (by jhpalmieri):

 Maybe it's not a duplicate. Unfortunately, the "obvious" patch
 {{{
 #!diff
 diff --git a/spkg/bin/sage-env b/spkg/bin/sage-env
 --- a/spkg/bin/sage-env
 +++ b/spkg/bin/sage-env
 @@ -298,6 +298,8 @@ if [ "$SAGE_STARTUP_FILE" = "" ]; then
      export SAGE_STARTUP_FILE
  fi

 +IPYTHONDIR="$DOT_SAGE/ipython" && export IPYTHONDIR
 +
  if [ -d "$SAGE_ROOT/local/lib/python" ]; then
      PYTHONPATH="$SAGE_ROOT/local/lib/python"
      if [ -n "$SAGE_PATH" ]; then
 }}}
 doesn't work: then `sage --ipython` has "sage: " as a prompt. I think that
 someone needs to improve how we deal with the IPython config files. See
 also #12167.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12926#comment:3>
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 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-trac?hl=en.

Reply via email to