Module Expr Str ImportFrom alias alias alias Assign NameStore NameStore NameStore NameStore NameStore NameLoad ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict If BoolOpAnd CompareIs Call NameLoad NameLoad Str CompareIs Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Print Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Return AttributeLoad AttributeLoad NameLoad attr attr orelse Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Raise Str orelse Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Raise Str Assign AttributeStore NameLoad attr NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str If BoolOpAnd NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list If AttributeLoad NameLoad attr body 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 orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad AttributeLoad NameLoad attr attr body Return Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore ListComp IfExp CompareIn Str NameLoad Call AttributeLoad NameLoad attr Str Str SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num comprehension NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad Str attr NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Expr Call NameLoad SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body Expr Call NameLoad SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse If Call AttributeLoad NameLoad attr Str body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Str Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list decorator_list Call NameLoad keyword NameLoad
N/A N/A 
The client's core Flexx engine, implemented in PyScript.
 pyscript py2js undefined window N/A flexx_session_id location root module typeof None FlexxJS N/A N/A N/A  JavaScript Flexx module. This provides the connection between
    the Python and JS (via a websocket).
     __init__ N/A N/A self N/A N/A N/A N/A self ws None N/A N/A self last_msg None N/A N/A self is_notebook False N/A loc location N/A N/A self ws_url N/A ws://%s:%s/%s/ws N/A N/A loc hostname N/A loc port N/A loc pathname N/A N/A self is_exported False N/A N/A self classes N/A N/A N/A self instances N/A N/A N/A N/A N/A typeof window undefined N/A N/A typeof module object N/A N/A N/A root window root N/A N/A self nodejs True N/A N/A N/A window setTimeout N/A self init 1 N/A N/A N/A N/A window process on exit N/A self exit False N/A N/A N/A N/A window process on SIGINT N/A self exit False N/A N/A N/A window setTimeout N/A self exit 10000000 N/A N/A N/A N/A window addEventListener load N/A self init False N/A N/A N/A window addEventListener beforeunload N/A self exit False N/A init N/A N/A self N/A N/A N/A  Called after document is loaded.  N/A N/A N/A window flexx is_exported N/A N/A N/A N/A N/A window flexx runExportedApp N/A N/A N/A N/A N/A window flexx is_notebook N/A N/A N/A window IPython N/A N/A window IPython notebook N/A N/A N/A window IPython notebook session N/A N/A Flexx: hey, I am in an exported notebook! N/A N/A N/A N/A N/A window flexx initSocket N/A N/A N/A N/A window flexx initLogging N/A exit N/A N/A self N/A N/A N/A  Called when runtime is about to quit.  N/A N/A self ws N/A N/A N/A N/A N/A self ws close N/A N/A self ws None N/A get N/A N/A self id N/A N/A N/A  Get instance of a Model class.
         N/A N/A id body N/A N/A N/A N/A window document body N/A N/A N/A N/A self instances N/A id N/A initSocket N/A N/A self N/A N/A N/A  Make the connection to Python.
         N/A N/A self nodejs N/A N/A N/A N/A WebSocket N/A N/A window require ws N/A N/A N/A Exception N/A N/A FAIL: you need to 'npm install -g ws' (or 'websocket'). N/A N/A WebSocket N/A window WebSocket N/A N/A WebSocket undefined N/A N/A N/A N/A N/A window document body innerHTML Browser does not support WebSockets N/A FAIL: need websocket N/A N/A self ws ws N/A WebSocket N/A N/A window flexx ws_url N/A N/A ws binaryType arraybuffer on_ws_open N/A N/A evt N/A N/A N/A N/A N/A N/A window console info Socket connected N/A N/A N/A ws send N/A hiflexx  N/A window flexx_session_id N/A on_ws_message N/A N/A evt N/A N/A N/A N/A N/A window flexx last_msg N/A N/A evt data evt N/A msg N/A N/A N/A window flexx decodeUtf8 N/A N/A window flexx last_msg N/A N/A N/A N/A window flexx command msg N/A on_ws_close N/A N/A evt N/A N/A N/A N/A self ws None N/A msg Lost connection with server N/A N/A evt N/A evt reason N/A N/A msg N/A : %s (%i) N/A N/A evt reason N/A evt code N/A N/A N/A N/A N/A window flexx is_notebook N/A N/A self nodejs N/A N/A N/A N/A N/A window document body innerHTML msg N/A N/A N/A N/A N/A window console info msg N/A on_ws_error N/A N/A self evt N/A N/A N/A N/A self ws None N/A N/A N/A N/A window console error Socket error N/A N/A N/A self nodejs N/A N/A N/A N/A ws on open on_ws_open N/A N/A N/A ws on message on_ws_message N/A N/A N/A ws on close on_ws_close N/A N/A N/A ws on error on_ws_error N/A N/A N/A ws onopen on_ws_open N/A N/A ws onmessage on_ws_message N/A N/A ws onclose on_ws_close N/A N/A ws onerror on_ws_error N/A initLogging N/A N/A self N/A N/A N/A  Setup logging so that messages are proxied to Python.
         N/A N/A N/A window console ori_log N/A N/A N/A N/A N/A window console ori_log N/A N/A window console log N/A N/A N/A window console ori_info N/A N/A N/A window console info N/A N/A window console log N/A N/A N/A window console ori_warn N/A N/A N/A window console warn N/A N/A window console log N/A N/A N/A window console ori_error N/A N/A N/A window console error N/A N/A window console log log N/A N/A self msg N/A N/A N/A N/A N/A N/A window console ori_log msg N/A N/A N/A N/A window flexx ws None N/A N/A N/A N/A N/A N/A window flexx ws send N/A PRINT  msg N/A info N/A N/A self msg N/A N/A N/A N/A N/A N/A window console ori_info msg N/A N/A N/A N/A window flexx ws None N/A N/A N/A N/A N/A N/A window flexx ws send N/A INFO  msg N/A warn N/A N/A self msg N/A N/A N/A N/A N/A N/A window console ori_warn msg N/A N/A N/A N/A window flexx ws None N/A N/A N/A N/A N/A N/A window flexx ws send N/A WARN  msg N/A error N/A N/A self msg N/A N/A N/A N/A N/A N/A window console ori_error msg N/A N/A N/A N/A window flexx ws None N/A N/A N/A N/A N/A N/A window flexx ws send N/A ERROR  msg N/A on_error N/A N/A self evt N/A N/A N/A msg N/A evt message N/A N/A N/A evt error stack N/A N/A stack N/A N/A N/A .js x N/A N/A x replace @  @  N/A N/A N/A x split @ N/A 0 N/A x N/A N/A N/A N/A evt error stack splitlines N/A msg N/A N/A N/A join stack N/A N/A N/A N/A evt message N/A evt lineno N/A N/A msg N/A 
In %s:%i N/A N/A evt filename N/A evt lineno N/A N/A N/A N/A window console error msg N/A N/A N/A evt preventDefault N/A N/A N/A N/A window console log log N/A N/A N/A window console info info N/A N/A N/A window console warn warn N/A N/A N/A window console error error N/A N/A self nodejs N/A N/A N/A N/A N/A window process on uncaughtException on_error False N/A N/A N/A N/A window addEventListener error on_error False N/A command N/A N/A self msg N/A N/A N/A  Execute a command received from the server.
         N/A N/A N/A msg startswith PRINT  N/A N/A N/A N/A N/A window console ori_log N/A msg N/A 6 N/A N/A N/A N/A msg startswith EVAL  N/A N/A N/A window _ N/A eval N/A msg N/A 5 N/A N/A N/A N/A N/A window flexx ws send N/A RET  N/A window _ N/A N/A N/A N/A msg startswith EXEC  N/A N/A N/A eval N/A msg N/A 5 N/A N/A N/A N/A msg startswith DEFINE-JS  N/A N/A N/A eval N/A msg N/A 10 N/A N/A N/A N/A msg startswith DEFINE-CSS  N/A N/A el N/A N/A N/A window document createElement style N/A N/A el type text/css N/A N/A el innerHTML N/A msg N/A 11 N/A N/A N/A N/A N/A window document body appendChild el N/A N/A N/A N/A msg startswith TITLE  N/A N/A N/A N/A self nodejs N/A N/A N/A N/A window document title N/A msg N/A 6 N/A N/A N/A N/A msg startswith ICON  N/A N/A N/A N/A self nodejs N/A N/A link N/A N/A N/A window document createElement link N/A N/A link rel icon N/A N/A link href N/A msg N/A 5 N/A N/A N/A N/A N/A window document head appendChild link N/A N/A N/A N/A msg startswith OPEN  N/A N/A N/A window win1 N/A N/A window open N/A msg N/A 5 new chrome N/A N/A N/A N/A N/A window console warn N/A N/A Invalid command: " msg " N/A decodeUtf8 N/A N/A self arrayBuffer N/A N/A N/A 
        var result = "",
            i = 0,
            c = 0,
            c1 = 0,
            c2 = 0,
            c3 = 0,
            data = new Uint8Array(arrayBuffer);
    
        // If we have a BOM skip it
        if (data.length >= 3 &&
            data[0] === 0xef && data[1] === 0xbb && data[2] === 0xbf) {
            i = 3;
        }
    
        while (i < data.length) {
            c = data[i];
    
            if (c < 128) {
                result += String.fromCharCode(c);
                i += 1;
            } else if (c > 191 && c < 224) {
                if (i + 1 >= data.length) {
                    throw "UTF-8 Decode failed. Two byte character was truncated.";
                }
                c2 = data[i + 1];
                result += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
                i += 2;
            } else {
                if (i + 2 >= data.length) {
                    throw "UTF-8 Decode failed. Multi byte character was truncated.";
                }
                c2 = data[i + 1];
                c3 = data[i + 2];
                result += String.fromCharCode(((c & 15) << 12) |
                                              ((c2 & 63) << 6) | (c3 & 63));
                i += 3;
            }
        }
        return result;
         N/A N/A N/A py2js inline_stdlib False