MCPcopy Index your code
hub / github.com/ipython/ipython / pprint

Method pprint

IPython/core/magics/basic.py:313–318  ·  view source on GitHub ↗

Toggle pretty printing on/off.

(self, parameter_s='')

Source from the content-addressed store, hash-verified

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=''):

Callers 1

test_user_expressionFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_user_expressionFunction · 0.64