##// END OF EJS Templates
Pprint works again
vivainio -
Show More
@@ -1,7 +1,7 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Magic functions for InteractiveShell.
2 """Magic functions for InteractiveShell.
3
3
4 $Id: Magic.py 1140 2006-02-10 17:07:11Z vivainio $"""
4 $Id: Magic.py 1163 2006-02-15 14:10:49Z vivainio $"""
5
5
6 #*****************************************************************************
6 #*****************************************************************************
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
@@ -2112,9 +2112,9 b' Defaulting color scheme to \'NoColor\'"""'
2112 def magic_Pprint(self, parameter_s=''):
2112 def magic_Pprint(self, parameter_s=''):
2113 """Toggle pretty printing on/off."""
2113 """Toggle pretty printing on/off."""
2114
2114
2115 self.shell.outputcache.Pprint = 1 - self.shell.outputcache.Pprint
2115 self.shell.rc.pprint = 1 - self.shell.rc.pprint
2116 print 'Pretty printing has been turned', \
2116 print 'Pretty printing has been turned', \
2117 ['OFF','ON'][self.shell.outputcache.Pprint]
2117 ['OFF','ON'][self.shell.rc.pprint]
2118
2118
2119 def magic_exit(self, parameter_s=''):
2119 def magic_exit(self, parameter_s=''):
2120 """Exit IPython, confirming if configured to do so.
2120 """Exit IPython, confirming if configured to do so.
@@ -1,3 +1,7 b''
1 2006-02-15 Ville Vainio <vivainio@gmail.com>
2
3 * Magic.py: %Pprint work again
4
1 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
5 2006-02-11 Fernando Perez <Fernando.Perez@colorado.edu>
2
6
3 * IPython/hooks.py (editor): quote the call to the editor command,
7 * IPython/hooks.py (editor): quote the call to the editor command,
General Comments 0
You need to be logged in to leave comments. Login now