Module ImportFrom alias alias Import alias Import alias TryExcept body Import alias ImportFrom alias ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Exec NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad Call NameLoad Index Str attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn Str AttributeLoad NameLoad attr body Expr Call NameLoad Str AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad AttributeLoad NameLoad attr attr orelse FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Pass Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr IfExp BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Call NameLoad Str Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot NameLoad NameLoad body Return NameLoad orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return ListLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr Assign NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp BinOpAdd NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Return ListComp SubscriptLoad NameLoad Slice SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Return IfExp NameLoad NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore IfExp NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num NameLoad If UnaryOpNot NameLoad body Return NameLoad For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad If CompareEq NameLoad Num body Return Call NameLoad NameLoad Str Call NameLoad Call NameLoad NameLoad orelse Return Call NameLoad Call NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A metakernel Magic option N/A traceback N/A sys N/A N/A N/A jedi jedi Interpreter jedi.api.helpers completion_parts jedi.parser.user_context UserContext N/A N/A N/A ImportError N/A N/A jedi None N/A PY3 N/A N/A N/A sys version_info N/A 0 3 exec_code N/A N/A code env kernel N/A N/A N/A N/A N/A code env N/A N/A N/A Exception N/A exc N/A N/A N/A N/A kernel Error N/A N/A traceback format_exc N/A None N/A N/A retval env N/A N/A N/A env N/A retval N/A PythonMagic N/A Magic N/A __init__ N/A N/A self kernel N/A N/A N/A N/A N/A N/A super PythonMagic self __init__ kernel N/A N/A self env N/A N/A N/A N/A globals N/A __builtins__ copy N/A N/A self retval None N/A line_python N/A N/A self N/A args N/A N/A 
        %python CODE - evaluate code as Python

        This line magic will evaluate the CODE (either expression or
        statement) as Python code.

        Note that the version of Python is that of the notebook server. 

        Examples:
            %python x = 42
            %python import math
            %python x + math.pi

         N/A code N/A N/A join args N/A N/A self retval N/A N/A self eval code N/A eval N/A N/A self code N/A N/A N/A N/A __builtins__ N/A self env N/A N/A N/A eval 1 N/A self env N/A N/A N/A N/A self env N/A __builtins__ N/A kernel N/A self kernel N/A PY3 N/A N/A N/A N/A N/A self env N/A __builtins__ N/A input N/A N/A self kernel raw_input N/A N/A N/A self env N/A input N/A N/A self kernel raw_input N/A input N/A N/A N/A args kwargs N/A N/A N/A eval N/A N/A N/A self kernel raw_input args kwargs N/A N/A N/A N/A N/A self env N/A __builtins__ N/A input input N/A N/A N/A self env N/A input input N/A N/A N/A N/A self env N/A __builtins__ N/A raw_input N/A N/A self kernel raw_input N/A N/A self kernel raw_input N/A N/A N/A self env N/A raw_input N/A N/A self kernel raw_input N/A N/A self kernel raw_input N/A N/A N/A N/A eval N/A N/A code strip N/A self env N/A N/A N/A N/A N/A N/A exec_code N/A N/A code strip N/A self env N/A self kernel N/A cell_python N/A N/A self eval_output N/A False N/A N/A 
        %%python - evaluate contents of cell as Python

        This cell magic will evaluate the cell (either expression or
        statement) as Python code.

        Unlike IPython's Python, this does not return the last expression.
        To do that, you need to assign the last expression to the special
        variable "retval".

        The -e or --eval_output flag signals that the retval value expression
        will be used as code for the cell to be evaluated by the host 
        language.

        Note that the version of Python is that of the notebook server. 

        Examples:
            %%python 
            x = 42

            %%python 
            import math
            retval = x + math.pi

            %%python -e
            retval = "'(this is code in the kernel language)"

            %%python -e
            "'(this is code in the kernel language)"

         N/A N/A N/A N/A self code strip N/A N/A eval_output N/A N/A N/A N/A self eval N/A self code N/A N/A self code N/A N/A N/A retval N/A self env N/A N/A N/A self env N/A retval None N/A str N/A N/A self env N/A retval N/A N/A self retval None N/A N/A N/A self env N/A retval None N/A N/A self evaluate True N/A N/A N/A self retval N/A N/A self eval N/A self code N/A N/A N/A self env N/A retval None N/A N/A self evaluate False N/A N/A option -e --eval_output action store_true default False help Use the retval value from the Python cell as code in the kernel language. post_process N/A N/A self retval N/A N/A N/A N/A retval None N/A N/A retval N/A N/A N/A self retval N/A get_completions N/A N/A self info N/A N/A N/A Get Python completions N/A N/A jedi None N/A N/A N/A N/A text N/A info N/A code N/A interpreter N/A Interpreter text N/A N/A self env N/A position N/A N/A info N/A line_num N/A info N/A column N/A path N/A N/A N/A UserContext text position get_path_until_cursor N/A N/A path dot like N/A completion_parts path N/A before N/A text N/A N/A N/A len text N/A len like N/A completions N/A N/A interpreter completions N/A completions N/A N/A before N/A c name_with_symbols N/A c completions N/A N/A N/A c N/A N/A info N/A start N/A c completions N/A get_help_on N/A N/A self info level none_on_fail N/A 0 False N/A N/A Implement basic help for functions N/A N/A N/A info N/A code N/A N/A N/A none_on_fail None N/A last N/A info N/A obj N/A default N/A none_on_fail None N/A No help available for "%s" last N/A parts N/A N/A last split . N/A obj N/A N/A N/A self env get N/A parts N/A 0 None N/A N/A obj N/A N/A default N/A p N/A parts N/A 1 N/A N/A obj N/A getattr obj p None N/A N/A obj N/A N/A default N/A N/A level 0 N/A N/A N/A getattr obj __doc__ N/A str N/A help obj N/A N/A N/A str N/A help obj N/A N/A register_magics N/A N/A kernel N/A N/A N/A N/A N/A kernel register_magics PythonMagic N/A