From 19207476249988349c1317d86d232373a6af5b0c 2013-12-18 18:39:26 From: Thomas Kluyver Date: 2013-12-18 18:39:26 Subject: [PATCH] Example of adding input transformers. Closes gh-4709 --- diff --git a/docs/source/config/inputtransforms.rst b/docs/source/config/inputtransforms.rst index a28c13d..b2905fe 100644 --- a/docs/source/config/inputtransforms.rst +++ b/docs/source/config/inputtransforms.rst @@ -41,7 +41,10 @@ attributes :attr:`~IPython.core.interactiveshell.InteractiveShell.input_splitter to tell when a block of input is complete, and :attr:`~IPython.core.interactiveshell.InteractiveShell.input_transformer_manager`, to transform complete cells. If you add a transformer, you should make sure that -it gets added to both. +it gets added to both, e.g.:: + + ip.input_splitter.logical_line_transforms.append(my_transformer()) + ip.input_transformer_manager.logical_line_transforms.append(my_transformer()) Stateless transformations -------------------------