python-eel/Eel

Question: Call async Javascript function from Python

Open

#741 opened on Sep 9, 2024

View on GitHub
 (3 comments) (0 reactions) (0 assignees)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()

Contributor guide