Show More
@@ -319,9 +319,9 class BaseFormatter(Configurable): | |||||
319 | class PlainTextFormatter(BaseFormatter): |
|
319 | class PlainTextFormatter(BaseFormatter): | |
320 | """The default pretty-printer. |
|
320 | """The default pretty-printer. | |
321 |
|
321 | |||
322 |
This uses :mod:`IPython. |
|
322 | This uses :mod:`IPython.lib.pretty` to compute the format data of | |
323 | the object. If the object cannot be pretty printed, :func:`repr` is used. |
|
323 | the object. If the object cannot be pretty printed, :func:`repr` is used. | |
324 |
See the documentation of :mod:`IPython. |
|
324 | See the documentation of :mod:`IPython.lib.pretty` for details on | |
325 | how to write pretty printers. Here is a simple example:: |
|
325 | how to write pretty printers. Here is a simple example:: | |
326 |
|
326 | |||
327 | def dtype_pprinter(obj, p, cycle): |
|
327 | def dtype_pprinter(obj, p, cycle): | |
@@ -412,7 +412,7 class PlainTextFormatter(BaseFormatter): | |||||
412 | numpy.set_printoptions(precision=8) |
|
412 | numpy.set_printoptions(precision=8) | |
413 | self.float_format = fmt |
|
413 | self.float_format = fmt | |
414 |
|
414 | |||
415 |
# Use the default pretty printers from IPython. |
|
415 | # Use the default pretty printers from IPython.lib.pretty. | |
416 | def _singleton_printers_default(self): |
|
416 | def _singleton_printers_default(self): | |
417 | return pretty._singleton_pprinters.copy() |
|
417 | return pretty._singleton_pprinters.copy() | |
418 |
|
418 |
General Comments 0
You need to be logged in to leave comments.
Login now