Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad orelse Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return ListLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr GeneratorExp SubscriptLoad NameLoad Slice Num comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str If UnaryOpNot NameLoad body Return NameLoad Return UnaryOpNot Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Str attr GeneratorExp Call AttributeLoad SubscriptLoad NameLoad Slice Num attr comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpAdd Str Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body If Call NameLoad NameLoad body Expr Yield Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Expr Yield Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Dict Str Str Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Dict Str Str Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Str keyword Str
N/A N/A Python reader and writer. N/A re N/A ast collections OrderedDict lib.base_lexer BaseGrammar BaseLexer lib.markdown MarkdownFilter lib.python _is_python ext.six StringIO utils.utils _ensure_string _preprocess PythonSplitGrammar N/A BaseGrammar N/A N/A Grammar used to split Python code into chunks while not cutting
    long Python strings. N/A _triple_quotes ''' N/A _triple_doublequotes """ N/A _triple N/A N/A _triple_quotes | _triple_doublequotes N/A text_var N/A N/A re compile N/A N/A ^({0})((?!{0}).|\n)*?\1 format _triple N/A newline N/A N/A re compile ^[\n]{2,}(?=[^ ]) N/A linebreak N/A N/A re compile ^\n+ N/A other N/A N/A re compile N/A N/A ^(?!{0}). format _triple N/A PythonSplitLexer N/A BaseLexer N/A N/A Lexer for splitting Python code into chunks. N/A grammar_class PythonSplitGrammar N/A default_rules N/A text_var newline linebreak other __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super PythonSplitLexer self __init__ N/A N/A self _chunks N/A N/A current N/A N/A self N/A N/A N/A N/A N/A self _chunks N/A N/A None N/A N/A N/A N/A self _chunks N/A -1 N/A property chunks N/A N/A self N/A N/A N/A N/A chunk N/A chunk N/A self _chunks chunk N/A property current N/A N/A self value N/A N/A N/A N/A N/A self _chunks N/A -1 value N/A N/A current setter new_chunk N/A N/A self N/A N/A N/A N/A N/A N/A self _chunks append N/A append N/A N/A self text N/A N/A N/A N/A self current text N/A parse_newline N/A N/A self m N/A N/A N/A N/A N/A self new_chunk N/A parse_linebreak N/A N/A self m N/A N/A N/A N/A N/A self append N/A N/A m group 0 N/A parse_text_var N/A N/A self m N/A N/A N/A N/A N/A self append N/A N/A m group 0 N/A parse_other N/A N/A self m N/A N/A N/A N/A N/A self append N/A N/A m group 0 N/A N/A _split_python N/A N/A python N/A N/A N/A Split Python source into chunks.

    Chunks are separated by at least two return lines. The break must not
    be followed by a space. Also, long Python strings spanning several lines
    are not splitted.

     N/A python N/A _preprocess python N/A N/A python N/A N/A N/A N/A lexer N/A PythonSplitLexer N/A N/A N/A lexer read python N/A N/A lexer chunks N/A _is_chunk_markdown N/A N/A source N/A N/A N/A Return whether a chunk contains Markdown contents. N/A lines N/A N/A source splitlines N/A N/A all N/A N/A N/A line startswith #  N/A line lines N/A N/A source N/A N/A join N/A N/A line N/A 2 N/A line lines N/A N/A N/A N/A line N/A 2 startswith # N/A N/A source N/A N/A True N/A N/A N/A _is_python source N/A False N/A _remove_hash N/A N/A source N/A N/A N/A Remove the leading '#' of every line in the source. N/A N/A N/A join N/A N/A N/A N/A line N/A 2 rstrip N/A line N/A N/A source splitlines N/A _add_hash N/A N/A source N/A N/A N/A Add a leading hash '#' at the beginning of every line in the source. N/A source N/A N/A join N/A N/A #  N/A N/A line rstrip N/A line N/A N/A source splitlines N/A source N/A PythonReader N/A object N/A N/A Python reader. read N/A N/A self python N/A N/A N/A chunks N/A _split_python python N/A chunk chunks N/A N/A N/A _is_chunk_markdown chunk N/A N/A N/A N/A N/A self _markdown_cell N/A _remove_hash chunk N/A N/A N/A N/A N/A self _code_cell chunk N/A _code_cell N/A N/A self source N/A N/A N/A N/A cell_type input output code source None N/A _markdown_cell N/A N/A self source N/A N/A N/A N/A cell_type source markdown source N/A N/A PythonWriter N/A object N/A N/A Python writer. __init__ N/A N/A self keep_markdown N/A None N/A N/A N/A self _output N/A StringIO N/A N/A self _markdown_filter N/A MarkdownFilter keep_markdown N/A _new_paragraph N/A N/A self N/A N/A N/A N/A N/A N/A self _output write N/A append_comments N/A N/A self source N/A N/A N/A source N/A N/A source rstrip N/A source N/A N/A self _markdown_filter source N/A N/A source N/A N/A N/A comments N/A _add_hash source N/A N/A N/A N/A self _output write comments N/A N/A N/A self _new_paragraph N/A append_code N/A N/A self input N/A N/A N/A N/A N/A N/A self _output write input N/A N/A N/A self _new_paragraph N/A write N/A N/A self cell N/A N/A N/A N/A N/A cell N/A cell_type markdown N/A N/A N/A N/A self append_comments N/A cell N/A source N/A N/A N/A N/A cell N/A cell_type code N/A N/A N/A N/A self append_code N/A cell N/A input N/A contents N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self _output getvalue rstrip N/A property close N/A N/A self N/A N/A N/A N/A N/A N/A self _output close N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self close N/A N/A N/A PYTHON_FORMAT N/A dict reader PythonReader writer PythonWriter file_extension .py file_type text