Skip to content

Conversation

@frmdstryr
Copy link

I have an application that uses an integrated Qt and asyncio event loop that embeds an ipython console using enaml's ipython console.

When the run_sync call finishes here it attempts to close the main loop causing the whole app to hang.

This just adds a check so if it's already in a running loop it just uses that instead.

@frmdstryr
Copy link
Author

frmdstryr commented Mar 25, 2023

After reading through the run_sync code it looks like it might be something with async qt integration (https://github.com/codelv/asyncqtpy) not working in a nested thread.

The code was working fine with the old nest_asyncio implementation.

@blink1073
Copy link
Contributor

Hi @frmdstryr, this might be fixed by #1137, I'll be releasing a bugfix early next week.

@frmdstryr
Copy link
Author

Indeed. Thanks!

@frmdstryr frmdstryr closed this Sep 5, 2023
@frmdstryr frmdstryr deleted the fix-inprocesskernelclient-in-loop branch September 5, 2023 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants