python-eel/Eel

Question: Call async Javascript function from Python

Open

#741 ouverte le 9 sept. 2024

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Python (5 980 stars) (570 forks)batch import
help wanted

Description

Maybe I'm stupid, but I don't understand how to call an async JS function from Python. For example:

eel.expose(test);
async function test() {
    console.log("Hello world!");
}

This does not work:

eel.test()

Guide contributeur