Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Asyncio inside dash callback

$
0
0

Hi,

I am using pyppeteer library to generate pdfs inside callback. This library is implemented with asyncio and the code works just fine outside of the callback as a standalone program.

Sample code is available at https://github.com/pyppeteer/pyppeteer.

I get the error “RuntimeError: There is no current event loop in thread ‘Thread-6’.” as the get_event_loop fails. If a create new loop and use this, I get the error “ValueError: signal only works in main thread”.

Would asyncio even work with Flask/Dash?

Thanks.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles