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

Add nest_asyncio to run threaded queries #737

Merged
merged 4 commits into from
Dec 9, 2023

Conversation

FlorianBracq
Copy link
Collaborator

When running queries from a Jupyter notebook, threaded queries do no work unless nest_syncio.apply() is called.

To prevent users having to import this and invoke nest_asyncio.apply() in all their notebooks, this has been done within msticpy/data/core/query_provider_connections_mixin.py

This was already used in a few notebooks and for TI Lookup:

  • docs/notebooks/ContiLeaksAnalysis.ipynb
  • docs/notebooks/VTLookupV3.ipynb
  • msticpy/context/lookup.py
  • msticpy/context/vtlookupv3/vtlookupv3.py

Reference: https://bugs.python.org/issue22239

@ianhelle ianhelle merged commit ca2104b into microsoft:main Dec 9, 2023
17 checks passed
@FlorianBracq FlorianBracq deleted the nest_async_query_providers branch June 26, 2024 13:09
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