##// END OF EJS Templates
Example of adding input transformers....
Thomas Kluyver -
Show More
@@ -41,7 +41,10 b' attributes :attr:`~IPython.core.interactiveshell.InteractiveShell.input_splitter'
41 to tell when a block of input is complete, and
41 to tell when a block of input is complete, and
42 :attr:`~IPython.core.interactiveshell.InteractiveShell.input_transformer_manager`,
42 :attr:`~IPython.core.interactiveshell.InteractiveShell.input_transformer_manager`,
43 to transform complete cells. If you add a transformer, you should make sure that
43 to transform complete cells. If you add a transformer, you should make sure that
44 it gets added to both.
44 it gets added to both, e.g.::
45
46 ip.input_splitter.logical_line_transforms.append(my_transformer())
47 ip.input_transformer_manager.logical_line_transforms.append(my_transformer())
45
48
46 Stateless transformations
49 Stateless transformations
47 -------------------------
50 -------------------------
General Comments 0
You need to be logged in to leave comments. Login now