Skip to content

Commit

Permalink
Example of adding input transformers.
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Dec 18, 2013
1 parent c73f752 commit f823888
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/config/inputtransforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------------------
Expand Down

0 comments on commit f823888

Please sign in to comment.