Toggle pretty printing on/off.
(self, parameter_s='')
| 311 | |
| 312 | @line_magic |
| 313 | def pprint(self, parameter_s=''): |
| 314 | """Toggle pretty printing on/off.""" |
| 315 | ptformatter = self.shell.display_formatter.formatters['text/plain'] |
| 316 | ptformatter.pprint = bool(1 - ptformatter.pprint) |
| 317 | print('Pretty printing has been turned', |
| 318 | ['OFF','ON'][ptformatter.pprint]) |
| 319 | |
| 320 | @line_magic |
| 321 | def colors(self, parameter_s=''): |
no outgoing calls