Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InProcessKernelClient: Do not use run_sync if already in a running loop #1106

Closed

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