#12719: Upgrade to IPython 0.13
----------------------------------------------------------+-----------------
       Reporter:  kini                                    |         Owner:  tbd 
                                  
           Type:  enhancement                             |        Status:  
needs_work                            
       Priority:  critical                                |     Milestone:  
sage-5.3                              
      Component:  packages                                |    Resolution:      
                                  
       Keywords:  sd40.5                                  |   Work issues:  ?? 
doesn't show code                  
Report Upstream:  N/A                                     |     Reviewers:  
Volker Braun, Mike Hansen, Jason Grout
        Authors:  Mike Hansen, Volker Braun, Jason Grout  |     Merged in:      
                                  
   Dependencies:                                          |      Stopgaps:      
                                  
----------------------------------------------------------+-----------------

Comment (by schilly):

 Replying to [comment:2 fbissey]:
 > Would be nice but we need some porting, here is what typically happen if
 you try to use ipython-0.12 with sage:
 > {{{
 > $ sage
 > ----------------------------------------------------------------------
 > | Sage Version 4.7.2, Release Date: 2011-10-29                       |
 > | Type notebook() for the GUI, and license() for information.        |
 > ----------------------------------------------------------------------
 > Traceback (most recent call last):
 >   File "/usr/bin/sage-ipython", line 19, in <module>
 >     from IPython.CrashHandler import CrashHandler
 > ImportError: No module named CrashHandler
 > }}}


 Hi fbissey, sorry for hijacking this a bit, but i had exactly the same
 problem over and over again. What I just found out (and I think it really
 helps) is to temporarily disable the paths containing ".local" in sys.path
 in the sage-ipython file. The reason is, that ipython seems to import the
 "site package" (disable it for pure python via "-S"), because that's where
 my ipython 0.13 is.

 So, by adding this to sage-ipython you I have both at the same time:

 {{{
 ~~~ after import sys
 oldpath = sys.path
 sys.path = filter(lambda s : '.local' not in s, sys.path)
 import IPython
 sys.path = oldpath
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12719#comment:80>
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