##// END OF EJS Templates
DEV: AST transformers supplied to `InteractiveShell` can reject input....
DEV: AST transformers supplied to `InteractiveShell` can reject input. * Adds a new exception class, `InputRejected` to IPython.lib.security. * Updates `InteractiveShell.run_cell` and `InteractiveShell.transform_ast` to allow user-supplied AST transformers to reject input by raising an `InputRejected`. * Adds tests for the above behavior.

File last commit:

r15672:8a560994
r17798:2591b6eb
Show More
style_python.tplx
21 lines | 630 B | text/plain | TextLexer
Jonathan Frederic
Added python style
r12713 ((= Python input/output style =))
Thomas Kluyver
Remove magic for loading templates from module names
r13925 ((*- extends 'base.tplx' -*))
Jonathan Frederic
Added python style
r12713
% Custom definitions
((* block definitions *))
((( super() )))
% Pygments definitions
Jonathan Frederic
s/pygment/pygments
r12742 ((( resources.latex.pygments_definitions )))
Jonathan Frederic
Added python style
r12713 ((* endblock definitions *))
Jonathan Frederic
Cleanup code spacing
r12714
Jonathan Frederic
Added python style
r12713 %===============================================================================
% Input
%===============================================================================
((* block input scoped *))
\begin{Verbatim}[commandchars=\\\{\}]
MinRK
allow highlighting language to be set from notebook metadata
r15672 ((( cell.input | highlight2latex(language=resources.get('language'), strip_verbatim=True) | add_prompts )))
Jonathan Frederic
Added python style
r12713 \end{Verbatim}
((* endblock input *))