Toggle pretty printing on/off.
(self, parameter_s='')
| 303 | |
| 304 | @line_magic |
| 305 | def pprint(self, parameter_s=''): |
| 306 | """Toggle pretty printing on/off.""" |
| 307 | ptformatter = self.shell.display_formatter.formatters['text/plain'] |
| 308 | ptformatter.pprint = bool(1 - ptformatter.pprint) |
| 309 | print('Pretty printing has been turned', |
| 310 | ['OFF','ON'][ptformatter.pprint]) |
| 311 | |
| 312 | @line_magic |
| 313 | def colors(self, parameter_s=''): |
no outgoing calls