Esempio n. 1
0
def test_import_invocation():
    import js

    def temp():
        print("okay?")

    js.setTimeout(temp, 100)
    js.fetch("packages.json")
Esempio n. 2
0
def test_import_invocation():
    import js

    def temp():
        print("okay?")

    from pyodide import create_once_callable

    js.setTimeout(create_once_callable(temp), 100)
    js.fetch("packages.json")
Esempio n. 3
0
def test_import_bind():
    from js import fetch

    fetch("packages.json")