Module Expr Str Assign NameStore Str Import alias Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Str body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword Str keyword ListLoad NameLoad keyword Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict If BoolOpAnd Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str UnaryOpNot Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpAdd Str NameLoad orelse If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Dict Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Return For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad Return Call NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Str If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad Str attr IfExp NameLoad NameLoad Str AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword IfExp AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad AugAssignAdd NameStore NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Return ListLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore IfExp AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Str If CompareNotIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str orelse AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad orelse Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad AugAssignAdd NameStore NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Return ListLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Dict Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword ListLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return ListLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Str body Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str ListLoad Dict Str Str Str ListLoad Dict Str Str Str ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Str Str keyword NameLoad Return Call AttributeLoad NameLoad attr Str Str NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return IfExp Call NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return IfExp Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list Assign NameStore ListLoad Str Str NameLoad Str Str Assign NameStore ListLoad Str Str Str Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse If CompareIs NameLoad NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotIn Str NameLoad body For NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assert AttributeLoad NameLoad attr Assert Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Break Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str Str Call NameLoad Call AttributeLoad NameLoad attr Str Str Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore BinOpSub BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str If UnaryOpNot NameLoad body Continue orelse If CompareIn Str NameLoad body Continue orelse If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Continue For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Slice UnaryOpUSub Call NameLoad NameLoad Break orelse Assign NameStore Str If NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad orelse If CompareIn Str Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Str Assign NameStore Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Continue orelse If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Continue If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad attr NameLoad Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body If NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assert AttributeLoad NameLoad attr Assert Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str ListLoad NameLoad Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index NameLoad TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index NameLoad TupleLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index NameLoad TupleLoad AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index NameLoad TupleLoad AttributeLoad NameLoad attr Str Assign NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotEq SubscriptLoad NameLoad Index Str Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Assign NameStore Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad body Assign NameStore BoolOpAnd Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr CompareEq SubscriptLoad NameLoad Index Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad keyword ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Break orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr ListLoad NameLoad Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore NameLoad If BoolOpAnd NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body AugAssignAdd NameStore NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr Str Dict attr body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd Str BinOpMult Str Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd BinOpMult Str Call AttributeLoad NameLoad attr Str Num Str Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn Str AttributeLoad NameLoad attr body Raise Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Assign NameStore ListLoad Assert CompareEq SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assert Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Assign NameStore BinOpAdd BinOpAdd BinOpMult ListLoad Str Call AttributeLoad NameLoad attr Str Num SubscriptLoad NameLoad Slice Num Num BinOpMult ListLoad Str Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore IfExp Call AttributeLoad NameLoad attr Str Str Str Assign NameStore IfExp NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str Str For NameStore SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Assign NameStore BinOpMult Str Call NameLoad NameLoad For NameStore SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Assert Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Assert CompareEq SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str body If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str ListLoad Str If Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore ListLoad NameLoad If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Dict If BoolOpAnd CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad NameLoad keyword TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad NameLoad keyword TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Dict Str Str NameLoad NameLoad decorator_list
N/A N/A Jupyter Notebook Tools for Sphinx.

http://nbsphinx.rtfd.org/

 N/A __version__ 0.2.6 N/A copy N/A docutils docutils.parsers rst N/A jinja2 N/A json N/A nbconvert N/A nbformat N/A os N/A re N/A sphinx N/A subprocess N/A N/A urllib.parse unquote N/A N/A N/A ImportError N/A urllib2 unquote N/A _ipynbversion 4 N/A RST_TEMPLATE 
{% extends 'rst.tpl' %}


{% macro insert_empty_lines(text) %}
{%- set before, after = text | get_empty_lines %}
{%- if before %}
    :empty-lines-before: {{ before }}
{%- endif %}
{%- if after %}
    :empty-lines-after: {{ after }}
{%- endif %}
{%- endmacro %}


{% block any_cell %}
{%- if cell.metadata.nbsphinx != 'hidden' %}
{{ super() }}
{% endif %}
{%- endblock any_cell %}


{% block input -%}
.. nbinput:: {% if nb.metadata.language_info -%}
{{ nb.metadata.language_info.pygments_lexer }}
{%- else -%}
{{ resources.codecell_lexer }}
{%- endif -%}
{{ insert_empty_lines(cell.source) }}
{%- if cell.execution_count %}
    :execution-count: {{ cell.execution_count }}
{%- endif %}
{%- if not cell.outputs %}
    :no-output:
{%- endif %}
{%- if cell.source.strip() %}

{{ cell.source.strip('
') | indent }}
{%- endif %}
{% endblock input %}


{% block nboutput %}
{%- if output.output_type == 'stream' %}
    {%- set datatype = 'ansi' %}
    {%- set outputdata = output.text[:-1] %}{# trailing 
 is stripped #}
{%- elif output.output_type == 'error' %}
    {%- set datatype = 'ansi' %}
    {%- set outputdata = '
'.join(output.traceback) %}
{%- else %}
    {%- set datatype = (output.data | filter_data_type)[0] %}
    {%- set outputdata = output.data[datatype] %}
{%- endif -%}
.. nboutput::
{%- if datatype == 'text/plain' %}{# nothing #}
{%- else %} rst
{%- endif %}
{%- if output.output_type == 'execute_result' and cell.execution_count %}
    :execution-count: {{ cell.execution_count }}
{%- endif %}
{%- if output != cell.outputs[-1] %}
    :more-to-come:
{%- endif %}
{%- if output.name == 'stderr' %}
    :class: stderr
{%- endif %}
{%- if datatype == 'text/plain' -%}
{{ insert_empty_lines(outputdata) }}

{{ outputdata.strip(
) | indent }}
{%- elif datatype in ['image/svg+xml', 'image/png', 'image/jpeg', 'application/pdf'] %}

    .. image:: {{ output.metadata.filenames[datatype].rsplit('.', 1)[0] + '.*' | posix_path }}
{%- elif datatype in ['text/markdown'] %}

{{ output.data['text/markdown'] | markdown2rst | indent }}
{%- elif datatype in ['text/latex'] %}

    .. math::

{{ output.data['text/latex'] | strip_dollars | indent | indent }}
{%- elif datatype == 'text/html' %}

    .. raw:: html

{{ output.data['text/html'] | indent | indent }}
{%- elif datatype == 'ansi' %}

    .. rst-class:: highlight

    .. raw:: html

        <pre>
{{ outputdata | ansi2html | indent | indent }}
        </pre>

    .. raw:: latex

        % This comment is needed to force a line break for adjacent ANSI cells
        \begin{OriginalVerbatim}[commandchars=\\\{\}]
{{ outputdata | ansi2latex | indent | indent }}
        \end{OriginalVerbatim}
{% else %}

    WARNING! Data type not implemented: {{ datatype }}
{%- endif %}
{% endblock nboutput %}


{% block execute_result %}{{ self.nboutput() }}{% endblock execute_result %}
{% block display_data %}{{ self.nboutput() }}{% endblock display_data %}
{% block stream %}{{ self.nboutput() }}{% endblock stream %}
{% block error %}{{ self.nboutput() }}{% endblock error %}


{% block markdowncell %}
{%- if 'nbsphinx-toctree' in cell.metadata %}
{{ cell | extract_toctree }}
{%- else %}
{{ super() }}
{% endif %}
{% endblock markdowncell %}


{% block rawcell %}
{%- set raw_mimetype = cell.metadata.get('raw_mimetype', '').lower() %}
{%- if raw_mimetype == '' %}
.. raw:: html

{{ cell.source | indent }}

.. raw:: latex

{{ cell.source | indent }}
{%- elif raw_mimetype == 'text/html' %}
.. raw:: html

{{ cell.source | indent }}
{%- elif raw_mimetype == 'text/latex' %}
.. raw:: latex

{{ cell.source | indent }}
{%- elif raw_mimetype == 'text/markdown' %}
{{ cell.source | markdown2rst }}
{%- elif raw_mimetype == 'text/restructuredtext' %}
{{ cell.source }}
{% endif %}
{% endblock rawcell %}
 N/A LATEX_PREAMBLE 
% Jupyter Notebook prompt colors
\definecolor{nbsphinxin}{HTML}{303F9F}
\definecolor{nbsphinxout}{HTML}{D84315}
% ANSI colors for output streams and traceback highlighting
\definecolor{ansi-black}{HTML}{3E424D}
\definecolor{ansi-black-intense}{HTML}{282C36}
\definecolor{ansi-red}{HTML}{E75C58}
\definecolor{ansi-red-intense}{HTML}{B22B31}
\definecolor{ansi-green}{HTML}{00A250}
\definecolor{ansi-green-intense}{HTML}{007427}
\definecolor{ansi-yellow}{HTML}{DDB62B}
\definecolor{ansi-yellow-intense}{HTML}{B27D12}
\definecolor{ansi-blue}{HTML}{208FFB}
\definecolor{ansi-blue-intense}{HTML}{0065CA}
\definecolor{ansi-magenta}{HTML}{D160C4}
\definecolor{ansi-magenta-intense}{HTML}{A03196}
\definecolor{ansi-cyan}{HTML}{60C6C8}
\definecolor{ansi-cyan-intense}{HTML}{258F8F}
\definecolor{ansi-white}{HTML}{C5C1B4}
\definecolor{ansi-white-intense}{HTML}{A1A6B2}
 N/A CSS_STRING 
/* CSS for nbsphinx extension */

/* remove conflicting styling from Sphinx themes */
div.nbinput,
div.nbinput > div,
div.nbinput div[class^=highlight],
div.nbinput div[class^=highlight] pre,
div.nboutput,
div.nboutput > div,
div.nboutput div[class^=highlight],
div.nboutput div[class^=highlight] pre {
    background: none;
    border: none;
    padding: 0 0;
    margin: 0;
    box-shadow: none;
}

/* avoid gaps between output lines */
div.nboutput div[class^=highlight] pre {
    line-height: normal;
}

/* input/output containers */
div.nbinput,
div.nboutput {
    display: -webkit-flex;
    display: flex;
    align-items: flex-start;
    margin: 0;
}

/* input container */
div.nbinput {
    padding-top: 5px;
}

/* last container */
div.nblast {
    padding-bottom: 5px;
}

/* input prompt */
div.nbinput > :first-child pre {
    color: #303F9F;
}

/* output prompt */
div.nboutput > :first-child pre {
    color: #D84315;
}

/* all prompts */
div.nbinput > :first-child[class^=highlight],
div.nboutput > :first-child[class^=highlight],
div.nboutput > :first-child {
    min-width: 11ex;
    padding-top: 0.4em;
    padding-right: 0.4em;
    text-align: right;
    flex: 0;
}

/* input/output area */
div.nbinput > :nth-child(2)[class^=highlight],
div.nboutput > :nth-child(2),
div.nboutput > :nth-child(2)[class^=highlight] {
    padding: 0.4em;
    -webkit-flex: 1;
    flex: 1;
    overflow: auto;
}

/* input area */
div.nbinput > :nth-child(2)[class^=highlight] {
    border: 1px solid #cfcfcf;
    border-radius: 2px;
    background: #f7f7f7;
}

/* override MathJax center alignment in output cells */
div.nboutput div[class*=MathJax] {
    text-align: left !important;
}

/* override sphinx.ext.pngmath center alignment in output cells */
div.nboutput div.math p {
    text-align: left;
}

/* standard error */
div.nboutput  > :nth-child(2).stderr {
    background: #fdd;
}

/* ANSI colors */
.ansi-black-fg { color: #3E424D; }
.ansi-black-bg { background-color: #3E424D; }
.ansi-black-intense-fg { color: #282C36; }
.ansi-black-intense-bg { background-color: #282C36; }
.ansi-red-fg { color: #E75C58; }
.ansi-red-bg { background-color: #E75C58; }
.ansi-red-intense-fg { color: #B22B31; }
.ansi-red-intense-bg { background-color: #B22B31; }
.ansi-green-fg { color: #00A250; }
.ansi-green-bg { background-color: #00A250; }
.ansi-green-intense-fg { color: #007427; }
.ansi-green-intense-bg { background-color: #007427; }
.ansi-yellow-fg { color: #DDB62B; }
.ansi-yellow-bg { background-color: #DDB62B; }
.ansi-yellow-intense-fg { color: #B27D12; }
.ansi-yellow-intense-bg { background-color: #B27D12; }
.ansi-blue-fg { color: #208FFB; }
.ansi-blue-bg { background-color: #208FFB; }
.ansi-blue-intense-fg { color: #0065CA; }
.ansi-blue-intense-bg { background-color: #0065CA; }
.ansi-magenta-fg { color: #D160C4; }
.ansi-magenta-bg { background-color: #D160C4; }
.ansi-magenta-intense-fg { color: #A03196; }
.ansi-magenta-intense-bg { background-color: #A03196; }
.ansi-cyan-fg { color: #60C6C8; }
.ansi-cyan-bg { background-color: #60C6C8; }
.ansi-cyan-intense-fg { color: #258F8F; }
.ansi-cyan-intense-bg { background-color: #258F8F; }
.ansi-white-fg { color: #C5C1B4; }
.ansi-white-bg { background-color: #C5C1B4; }
.ansi-white-intense-fg { color: #A1A6B2; }
.ansi-white-intense-bg { background-color: #A1A6B2; }

.ansi-bold { font-weight: bold; }
 N/A CSS_STRING_READTHEDOCS 
/* CSS overrides for sphinx_rtd_theme */

/* 24px margin */
.nbinput.nblast,
.nboutput.nblast {
    margin-bottom: 19px;  /* padding has already 5px */
}

/* ... except between code cells! */
.nblast + .nbinput {
    margin-top: -19px;
}

/* nice headers on first paragraph of info/warning boxes */
.admonition .first {
    margin: -12px;
    padding: 6px 12px;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1;
    display: block;
}
.admonition.warning .first {
    background: #f0b37e;
}
.admonition.note .first {
    background: #6ab0de;
}
.admonition > p:before {
    margin-right: 4px;  /* make room for the exclamation icon */
}
 Exporter N/A N/A nbconvert RSTExporter N/A N/A Convert Jupyter notebooks to reStructuredText.

    Uses nbconvert to convert Jupyter notebooks to a reStructuredText
    string with custom reST directives for input and output cells.

    Notebooks without output cells are automatically executed before
    conversion.

     __init__ N/A N/A self allow_errors timeout codecell_lexer N/A False 30 none N/A N/A Initialize the Exporter. N/A N/A self _allow_errors allow_errors N/A N/A self _timeout timeout N/A N/A self _codecell_lexer codecell_lexer N/A loader N/A N/A jinja2 DictLoader N/A nbsphinx-rst.tpl RST_TEMPLATE N/A N/A N/A N/A super Exporter self __init__ template_file nbsphinx-rst extra_loaders N/A loader filters N/A markdown2rst get_empty_lines extract_toctree markdown2rst _get_empty_lines _extract_toctree N/A from_notebook_node N/A N/A self nb resources N/A None kw N/A N/A nb N/A N/A copy deepcopy nb N/A N/A resources None N/A N/A resources N/A N/A N/A resources N/A N/A copy deepcopy resources N/A N/A resources N/A codecell_lexer N/A self _codecell_lexer N/A nbsphinx_metadata N/A N/A N/A nb metadata get nbsphinx N/A N/A N/A N/A any N/A N/A c source N/A c N/A nb cells N/A N/A c cell_type code N/A N/A any N/A N/A c outputs N/A c N/A nb cells N/A outputs c N/A N/A allow_errors N/A N/A nbsphinx_metadata get allow_errors N/A self _allow_errors N/A timeout N/A N/A nbsphinx_metadata get timeout N/A self _timeout N/A pp N/A N/A N/A nbconvert preprocessors ExecutePreprocessor allow_errors allow_errors timeout timeout N/A N/A nb resources N/A N/A pp preprocess nb resources N/A N/A rststr resources N/A N/A N/A super Exporter self from_notebook_node nb resources kw N/A orphan N/A N/A nbsphinx_metadata get orphan False N/A N/A orphan True N/A N/A rststr N/A :orphan:

 rststr N/A N/A N/A orphan False N/A N/A N/A NotebookError N/A N/A invalid orphan option: {!r} format orphan N/A N/A rststr resources N/A N/A NotebookParser N/A N/A rst Parser N/A N/A Sphinx source parser for Jupyter notebooks.

    Uses nbsphinx.Exporter to convert notebook content to a
    reStructuredText string, which is then parsed by Sphinx's built-in
    reST parser.

     get_transforms N/A N/A self N/A N/A N/A List of transforms for documents parsed by this parser. N/A N/A N/A N/A N/A rst Parser get_transforms self N/A ProcessLocalLinks CreateSectionLabels ReplaceAlertDivs N/A parse N/A N/A self inputstring document N/A N/A N/A Parse `inputstring`, write results to `document`. N/A nb N/A N/A nbformat reads inputstring as_version _ipynbversion N/A env N/A N/A document settings env N/A srcdir N/A N/A N/A os path dirname N/A N/A env doc2path N/A env docname N/A auxdir N/A N/A N/A os path join N/A env doctreedir nbsphinx N/A N/A N/A N/A sphinx util ensuredir auxdir N/A resources N/A N/A N/A resources N/A metadata N/A path srcdir N/A N/A resources N/A output_files_dir N/A N/A N/A os path relpath auxdir srcdir N/A N/A resources N/A unique_key N/A N/A N/A env docname replace / _ N/A exporter N/A Exporter allow_errors N/A N/A env config nbsphinx_allow_errors timeout N/A N/A env config nbsphinx_timeout codecell_lexer N/A N/A env config nbsphinx_codecell_lexer N/A N/A N/A N/A rststring resources N/A N/A exporter from_notebook_node nb resources N/A N/A N/A NotebookError N/A e N/A N/A N/A N/A env warn N/A env docname N/A str e N/A N/A N/A filename data N/A N/A N/A N/A resources get outputs N/A items N/A N/A dest N/A N/A N/A os path normpath N/A N/A N/A os path join srcdir filename N/A N/A open dest wb f N/A N/A N/A N/A f write data N/A N/A N/A N/A rst Parser parse self rststring document N/A N/A NotebookError N/A Exception N/A N/A Error during notebook parsing. N/A CodeNode N/A N/A N/A docutils nodes Element N/A N/A A custom node that contains a literal_block node. create N/A N/A cls text language N/A none N/A N/A Create a new CodeNode containing a literal_block node.

        Apparently, this cannot be done in CodeNode.__init__(), see:
        https://groups.google.com/forum/#!topic/sphinx-dev/0chv7BsYuW0

         N/A node N/A N/A N/A docutils nodes literal_block text text language language N/A N/A cls text node N/A classmethod N/A AdmonitionNode N/A N/A N/A docutils nodes Element N/A N/A A custom node for info and warning boxes. N/A NbInput N/A N/A rst Directive N/A N/A A notebook input cell with prompt and code area. N/A required_arguments 0 N/A optional_arguments 1 N/A final_argument_whitespace False N/A option_spec N/A execution-count empty-lines-before empty-lines-after no-output N/A N/A rst directives positive_int N/A N/A rst directives nonnegative_int N/A N/A rst directives nonnegative_int N/A N/A rst directives flag N/A has_content True run N/A N/A self N/A N/A N/A This is called by the reST parser. N/A execution_count N/A N/A N/A self options get execution-count N/A classes N/A nbinput N/A N/A no-output N/A self options N/A N/A N/A N/A classes append nblast N/A container N/A N/A N/A docutils nodes container classes classes N/A text N/A N/A In [{}]: format N/A execution_count execution_count N/A container N/A N/A CodeNode create text N/A latex_prompt N/A text N/A text N/A N/A join N/A N/A self content data N/A node N/A N/A CodeNode create text language N/A N/A self arguments N/A N/A self arguments N/A 0 none N/A N/A _set_empty_lines node N/A self options N/A N/A N/A node attributes N/A latex_prompt latex_prompt N/A container node N/A N/A N/A N/A self state document N/A nbsphinx_include_css True N/A N/A container N/A N/A NbOutput N/A N/A rst Directive N/A N/A A notebook output cell with optional prompt. N/A required_arguments 0 N/A optional_arguments 1 N/A final_argument_whitespace False N/A option_spec N/A execution-count more-to-come empty-lines-before empty-lines-after class N/A N/A rst directives positive_int N/A N/A rst directives flag N/A N/A rst directives nonnegative_int N/A N/A rst directives nonnegative_int N/A N/A rst directives unchanged N/A has_content True run N/A N/A self N/A N/A N/A This is called by the reST parser. N/A outputtype N/A N/A self arguments N/A N/A self arguments N/A 0 N/A execution_count N/A N/A N/A self options get execution-count N/A classes N/A nboutput N/A N/A more-to-come N/A self options N/A N/A N/A N/A classes append nblast N/A container N/A N/A N/A docutils nodes container classes classes N/A execution_count N/A N/A text N/A N/A Out[{}]: format execution_count N/A container N/A N/A CodeNode create text N/A latex_prompt N/A text N/A N/A container N/A N/A N/A rst nodes container N/A latex_prompt N/A N/A outputtype rst N/A N/A classes N/A N/A N/A N/A self options get class N/A output_area N/A N/A N/A docutils nodes container classes classes N/A N/A N/A N/A self state nested_parse N/A self content N/A self content_offset output_area N/A container output_area N/A N/A text N/A N/A join N/A N/A self content data N/A node N/A N/A CodeNode create text N/A N/A _set_empty_lines node N/A self options N/A N/A N/A node attributes N/A latex_prompt latex_prompt N/A container node N/A N/A N/A N/A self state document N/A nbsphinx_include_css True N/A N/A container N/A N/A _NbAdmonition N/A N/A rst Directive N/A N/A Base class for NbInfo and NbWarning. N/A required_arguments 0 N/A optional_arguments 0 N/A option_spec N/A N/A has_content True run N/A N/A self N/A N/A N/A This is called by the reST parser. N/A node N/A AdmonitionNode classes N/A admonition N/A self _class N/A N/A N/A N/A self state nested_parse N/A self content N/A self content_offset node N/A N/A node N/A N/A NbInfo N/A _NbAdmonition N/A N/A An information box. N/A _class note N/A NbWarning N/A _NbAdmonition N/A N/A A warning box. N/A _class warning N/A markdown2rst N/A N/A text N/A N/A N/A Convert a Markdown string to reST via pandoc.

    This is very similar to nbconvert.filters.markdown.markdown2rst(),
    except that it uses a pandoc filter to convert raw LaTeX blocks to
    "math" directives (instead of "raw:: latex" directives).

     rawlatex2math_hook N/A N/A obj N/A N/A N/A N/A N/A N/A N/A obj get t RawBlock N/A N/A N/A obj N/A c N/A 0 latex N/A N/A N/A obj N/A t Para N/A N/A obj N/A c N/A N/A t c Math N/A N/A t c DisplayMath N/A N/A N/A obj N/A c N/A 1 N/A obj N/A rawlatex2math N/A N/A text N/A N/A N/A json_data N/A N/A json loads text object_hook rawlatex2math_hook N/A N/A N/A json dumps json_data N/A N/A rststring N/A pandoc text markdown rst filter_func rawlatex2math N/A N/A N/A re sub ^(\s*)\.\. math::$ \1.. math::\1   :nowrap: rststring flags N/A re MULTILINE N/A pandoc N/A N/A source fmt to filter_func N/A None N/A N/A Convert a string in format `from` to format `to` via pandoc.

    This is based on nbconvert.utils.pandoc.pandoc() and extended to
    allow passing a filter function.

     encode N/A N/A text N/A N/A N/A N/A N/A isinstance text bytes text N/A N/A text encode utf-8 N/A decode N/A N/A data N/A N/A N/A N/A N/A isinstance data bytes N/A N/A data decode utf-8 data N/A N/A cmd1 N/A pandoc --from fmt --to json N/A cmd2 N/A pandoc --from json --to to N/A N/A N/A N/A N/A nbconvert utils pandoc check_pandoc_version N/A p N/A N/A subprocess Popen cmd1 stdin N/A subprocess PIPE stdout N/A subprocess PIPE N/A N/A json_data _ N/A N/A p communicate N/A encode source N/A filter_func N/A N/A json_data N/A encode N/A filter_func N/A decode json_data N/A p N/A N/A subprocess Popen cmd2 stdin N/A subprocess PIPE stdout N/A subprocess PIPE N/A N/A out _ N/A N/A p communicate json_data N/A N/A N/A N/A decode out rstrip N/A _extract_toctree N/A N/A cell N/A N/A N/A Extract links from Markdown cell and create toctree. N/A lines N/A .. toctree:: N/A options N/A N/A cell metadata N/A nbsphinx-toctree N/A N/A N/A N/A option value N/A N/A options items N/A N/A N/A value True N/A N/A N/A N/A lines append N/A N/A :{}: format option N/A N/A N/A value False N/A N/A N/A N/A N/A N/A lines append N/A N/A :{}: {} format option value N/A N/A N/A AttributeError N/A N/A N/A NotebookError N/A N/A invalid nbsphinx-toctree option: {!r} format options N/A text N/A N/A N/A nbconvert filters markdown2rst N/A cell source N/A settings N/A N/A N/A N/A N/A docutils frontend OptionParser components N/A N/A rst Parser get_default_values N/A toctree_node N/A N/A N/A docutils utils new_document extract_toctree settings N/A parser N/A N/A rst Parser N/A N/A N/A parser parse text toctree_node N/A N/A caption options N/A N/A sec N/A N/A toctree_node traverse N/A N/A docutils nodes section N/A N/A N/A sec children N/A N/A isinstance N/A N/A sec children N/A 0 N/A N/A docutils nodes title N/A title N/A N/A N/A N/A sec children N/A 0 astext N/A N/A N/A lines append N/A :caption:  title N/A N/A N/A N/A lines append N/A ref N/A N/A toctree_node traverse N/A N/A docutils nodes reference N/A N/A N/A N/A lines append N/A N/A N/A N/A N/A N/A N/A ref astext replace  < N/A unquote N/A N/A ref get refuri > N/A N/A N/A join lines N/A _get_empty_lines N/A N/A text N/A N/A N/A Get number of empty lines before and after code. N/A before N/A N/A len text N/A len N/A N/A text lstrip N/A after N/A N/A N/A len text N/A len N/A N/A text strip before N/A N/A before after N/A _set_empty_lines N/A N/A node options N/A N/A N/A Set "empty lines" attributes on a CodeNode.

    See http://stackoverflow.com/q/34050044/500098.

     N/A attr N/A empty-lines-before empty-lines-after N/A N/A value N/A N/A options get attr 0 N/A value N/A N/A N/A N/A node attributes N/A attr value N/A ProcessLocalLinks N/A N/A N/A docutils transforms Transform N/A N/A Process links to local files.

    Marks local files to be copied to the HTML output directory and
    turns links to local notebooks into ``:doc:``/``:ref:`` links.

    Links to subsections are possible with ``...#Subsection-Title``.
    These links use the labels created by CreateSectionLabels.

    Links to subsections use ``:ref:``, links to whole notebooks use
    ``:doc:``.  Latter can be useful if you have an ``index.rst`` but
    also want a distinct ``index.ipynb`` for use with Jupyter.
    In this case you can use such a link in a notebook::

        [Back to main page](index.ipynb)

    In Jupyter, this will create a "normal" link to ``index.ipynb``, but
    in the files generated by Sphinx, this will become a link to the
    main page created from ``index.rst``.

     N/A default_priority 400 apply N/A N/A self N/A N/A N/A env N/A N/A N/A self document settings env N/A node N/A N/A N/A self document traverse N/A N/A docutils nodes reference N/A N/A uri N/A N/A node get refuri N/A N/A uri N/A N/A N/A N/A N/A :// uri N/A N/A N/A N/A N/A N/A N/A uri startswith # N/A N/A uri startswith mailto: N/A N/A N/A suffix N/A N/A env config source_suffix N/A N/A N/A N/A N/A N/A uri lower endswith N/A N/A suffix lower N/A N/A target N/A uri N/A N/A N/A len suffix N/A N/A N/A target N/A target N/A N/A target_ext N/A reftype doc N/A refdomain None N/A N/A N/A .ipynb# N/A N/A uri lower N/A N/A idx N/A N/A N/A N/A uri lower find .ipynb# N/A target N/A uri N/A idx N/A target_ext N/A uri N/A idx N/A reftype ref N/A refdomain std N/A N/A file N/A N/A N/A os path normpath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A env docname uri N/A N/A N/A N/A N/A os path isfile N/A N/A N/A os path join N/A env srcdir file N/A N/A N/A N/A N/A env app warn N/A N/A file not found: {!r} format file N/A N/A env doc2path N/A env docname N/A N/A N/A N/A N/A file startswith .. N/A N/A N/A N/A N/A env app warn N/A N/A link outside of source directory: {!r} format file N/A N/A env doc2path N/A env docname N/A N/A N/A N/A hasattr env nbsphinx_files N/A N/A N/A env nbsphinx_files N/A N/A N/A N/A N/A N/A N/A env nbsphinx_files setdefault N/A env docname N/A append file N/A N/A target_docname N/A N/A N/A os path normpath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A env docname target N/A N/A target_docname N/A env found_docs N/A N/A target_ext N/A N/A target N/A target_docname target_ext N/A target N/A N/A target lower N/A linktext N/A N/A node astext N/A xref N/A N/A N/A sphinx addnodes pending_xref reftype reftype reftarget target refdomain refdomain refwarn True refexplicit True refdoc N/A env docname N/A xref N/A N/A N/A docutils nodes Text linktext linktext N/A N/A N/A node replace_self xref N/A N/A CreateSectionLabels N/A N/A N/A docutils transforms Transform N/A N/A Make labels for each notebook and each section thereof.

    These labels are referenced in ProcessLocalLinks.
    Note: Sphinx lower-cases the HTML section IDs, Jupyter doesn't.

     N/A default_priority 250 apply N/A N/A self N/A N/A N/A env N/A N/A N/A self document settings env N/A i_still_have_to_create_the_notebook_label True N/A section N/A N/A N/A self document traverse N/A N/A docutils nodes section N/A N/A N/A section children N/A N/A isinstance N/A N/A section children N/A 0 N/A N/A docutils nodes title N/A title N/A N/A N/A N/A section children N/A 0 astext N/A link_id N/A N/A title replace - N/A N/A section N/A ids N/A link_id N/A label N/A N/A N/A env docname .ipynb# link_id N/A label N/A N/A label lower N/A N/A N/A N/A N/A env domaindata N/A std N/A labels N/A label N/A N/A env docname link_id title N/A N/A N/A N/A N/A env domaindata N/A std N/A anonlabels N/A label N/A N/A env docname link_id N/A i_still_have_to_create_the_notebook_label N/A N/A label N/A N/A N/A N/A env docname lower .ipynb N/A N/A N/A N/A N/A env domaindata N/A std N/A labels N/A label N/A N/A env docname title N/A N/A N/A N/A N/A env domaindata N/A std N/A anonlabels N/A label N/A N/A env docname N/A i_still_have_to_create_the_notebook_label False N/A N/A ReplaceAlertDivs N/A N/A N/A docutils transforms Transform N/A N/A Replace certain <div> elements with AdmonitionNode containers.

    This is a quick-and-dirty work-around until a proper
    Mardown/CommonMark extension for note/warning boxes is available.

     N/A default_priority 500 N/A _start_re N/A N/A re compile \s*<div\s*class\s*=\s*(?P<q>"|\')([a-z\s-]*)(?P=q)\s*>\s*\Z flags N/A re IGNORECASE N/A _class_re N/A N/A re compile \s*alert\s*alert-(info|warning)\s*\Z N/A _end_re N/A N/A re compile \s*</div\s*>\s*\Z flags N/A re IGNORECASE apply N/A N/A self N/A N/A N/A start_tags N/A N/A node N/A N/A N/A self document traverse N/A N/A docutils nodes raw N/A N/A N/A N/A node N/A format html N/A N/A N/A start_match N/A N/A N/A self _start_re match N/A N/A node astext N/A N/A start_match N/A N/A N/A class_match N/A N/A N/A self _class_re match N/A N/A start_match group 2 N/A N/A class_match N/A N/A N/A admonition_class N/A N/A class_match group 1 N/A N/A admonition_class info N/A N/A admonition_class note N/A N/A N/A start_tags append N/A node admonition_class N/A N/A node admonition_class N/A reversed start_tags N/A N/A content N/A N/A sibling N/A N/A node traverse include_self False descend False siblings True ascend False N/A N/A end_tag N/A N/A isinstance sibling N/A N/A docutils nodes raw N/A N/A sibling N/A format html N/A N/A N/A self _end_re match N/A N/A sibling astext N/A end_tag N/A N/A admonition_node N/A AdmonitionNode classes N/A admonition admonition_class N/A N/A N/A admonition_node extend content N/A parent N/A node parent N/A N/A N/A parent replace node admonition_node N/A n content N/A N/A N/A N/A parent remove n N/A N/A N/A parent remove sibling N/A N/A N/A N/A N/A content append sibling N/A N/A builder_inited N/A N/A app N/A N/A N/A Add color definitions to LaTeX preamble. N/A latex_elements N/A N/A N/A app builder config latex_elements N/A N/A latex_elements N/A preamble N/A N/A join N/A LATEX_PREAMBLE N/A N/A latex_elements get preamble N/A html_page_context N/A N/A app pagename templatename context doctree N/A N/A N/A Add CSS string to HTML pages that contain code cells. N/A style N/A N/A doctree N/A N/A doctree get nbsphinx_include_css N/A N/A style CSS_STRING N/A N/A doctree N/A N/A N/A app config html_theme sphinx_rtd_theme N/A N/A style CSS_STRING_READTHEDOCS N/A style N/A N/A N/A context N/A body N/A N/A N/A 
<style> style </style>
 N/A context N/A body N/A html_collect_pages N/A N/A app N/A N/A N/A This event handler is abused to copy local files around. N/A files N/A set N/A file_list N/A N/A N/A getattr N/A app env nbsphinx_files N/A values N/A N/A N/A N/A files update file_list N/A file N/A N/A app status_iterator files copying linked files...  N/A N/A N/A sphinx util console brown N/A len files N/A N/A target N/A N/A N/A os path join N/A N/A app builder outdir file N/A N/A N/A N/A sphinx util ensuredir N/A N/A N/A os path dirname target N/A N/A N/A N/A N/A N/A sphinx util copyfile N/A N/A N/A os path join N/A N/A app env srcdir file target N/A N/A N/A OSError N/A err N/A N/A N/A N/A app warn N/A N/A cannot copy local file {!r}: {} format file err N/A N/A N/A env_purge_doc N/A N/A app env docname N/A N/A N/A Remove list of local files for a given document. N/A N/A N/A N/A N/A env nbsphinx_files N/A docname N/A N/A N/A N/A AttributeError KeyError N/A N/A N/A depart_code_html N/A N/A self node N/A N/A N/A Add empty lines before and after the code. N/A text N/A N/A self body N/A -1 N/A text N/A N/A text replace <pre> N/A <pre>
 N/A N/A N/A node get empty-lines-before 0 N/A text N/A N/A text replace </pre> N/A N/A N/A N/A node get empty-lines-after 0 </pre> N/A N/A N/A self body N/A -1 text N/A visit_code_latex N/A N/A self node N/A N/A N/A Avoid creating a separate prompt node.

    The prompt will be pre-pended in the main code node.

     N/A N/A latex_prompt N/A node attributes N/A N/A N/A N/A N/A docutils nodes SkipNode N/A depart_code_latex N/A N/A self node N/A N/A N/A Some changes to code blocks.

    * Remove the frame (by changing Verbatim -> OriginalVerbatim)
    * Add empty lines before and after the code
    * Add prompt to the first line, empty space to the following lines

     N/A lines N/A N/A N/A N/A self body N/A -1 split N/A out N/A N/A N/A N/A lines N/A 0 N/A N/A N/A out append N/A lines N/A 0 N/A N/A N/A N/A lines N/A 1 startswith \begin{Verbatim} N/A N/A N/A out append N/A N/A N/A lines N/A 1 replace Verbatim OriginalVerbatim N/A code_lines N/A N/A N/A N/A N/A N/A node get empty-lines-before 0 N/A lines N/A 2 -2 N/A N/A N/A N/A node get empty-lines-after 0 N/A prompt N/A N/A node get latex_prompt N/A color N/A N/A N/A prompt startswith In nbsphinxin nbsphinxout N/A prefix N/A prompt N/A N/A N/A N/A \textcolor{ color }{ prompt } N/A line N/A code_lines N/A 1 N/A N/A N/A N/A out append N/A prefix line N/A prefix N/A N/A len prompt N/A line N/A code_lines N/A 1 N/A N/A N/A N/A out append N/A prefix line N/A N/A N/A N/A lines N/A -2 startswith \end{Verbatim} N/A N/A N/A out append N/A N/A N/A lines N/A -2 replace Verbatim OriginalVerbatim N/A N/A N/A lines N/A -1 N/A N/A N/A out append N/A lines N/A -1 N/A N/A N/A self body N/A -1 N/A N/A join out N/A visit_admonition_html N/A N/A self node N/A N/A N/A N/A N/A N/A self body append N/A N/A self starttag node div N/A N/A N/A self set_first_last node N/A N/A N/A N/A N/A N/A self settings env config html_theme sphinx_rtd_theme N/A N/A N/A node children N/A N/A classes N/A N/A N/A node children N/A 0 N/A classes N/A N/A last classes N/A N/A N/A N/A classes extend N/A fa fa-exclamation-circle N/A depart_admonition_html N/A N/A self node N/A N/A N/A N/A N/A N/A self body append </div>
 N/A visit_admonition_latex N/A N/A self node N/A N/A N/A N/A N/A N/A self body append N/A N/A 
\begin{notice}{ N/A N/A node N/A classes N/A 1 }{}\unskip N/A depart_admonition_latex N/A N/A self node N/A N/A N/A N/A N/A N/A self body append \end{notice}
 N/A do_nothing N/A N/A self node N/A N/A N/A N/A _add_notebook_parser N/A N/A app N/A N/A N/A Ugly hack to modify source_suffix and source_parsers.

    Once https://github.com/sphinx-doc/sphinx/pull/2209 is merged (and
    some additional time has passed), this should be replaced by ::

        app.add_source_parser('.ipynb', NotebookParser)

    See also https://github.com/sphinx-doc/sphinx/issues/2162.

     N/A source_suffix N/A N/A N/A N/A app config _raw_config get source_suffix N/A .rst N/A N/A isinstance source_suffix N/A N/A sphinx config string_types N/A N/A source_suffix N/A source_suffix N/A N/A .ipynb source_suffix N/A N/A N/A N/A source_suffix append .ipynb N/A N/A N/A N/A app config _raw_config N/A source_suffix source_suffix N/A source_parsers N/A N/A N/A N/A app config _raw_config get source_parsers N/A N/A N/A N/A .ipynb source_parsers N/A ipynb source_parsers N/A N/A N/A source_parsers N/A .ipynb NotebookParser N/A N/A N/A N/A app config _raw_config N/A source_parsers source_parsers N/A setup N/A N/A app N/A N/A N/A Initialize Sphinx extension. N/A N/A _add_notebook_parser app N/A N/A N/A app add_config_value nbsphinx_allow_errors False rebuild N/A N/A N/A app add_config_value nbsphinx_timeout 30 rebuild N/A N/A N/A app add_config_value nbsphinx_codecell_lexer none rebuild env N/A N/A N/A app add_directive nbinput NbInput N/A N/A N/A app add_directive nboutput NbOutput N/A N/A N/A app add_directive nbinfo NbInfo N/A N/A N/A app add_directive nbwarning NbWarning N/A N/A N/A app add_node CodeNode html N/A do_nothing depart_code_html latex N/A visit_code_latex depart_code_latex N/A N/A N/A app add_node AdmonitionNode html N/A visit_admonition_html depart_admonition_html latex N/A visit_admonition_latex depart_admonition_latex N/A N/A N/A app connect builder-inited builder_inited N/A N/A N/A app connect html-page-context html_page_context N/A N/A N/A app connect html-collect-pages html_collect_pages N/A N/A N/A app connect env-purge-doc env_purge_doc N/A N/A N/A N/A rst directives register_directive code N/A N/A N/A sphinx directives code CodeBlock N/A N/A version parallel_read_safe __version__ True N/A