-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Use zmq-anyio #1291
Open
davidbrochart
wants to merge
87
commits into
ipython:main
Choose a base branch
from
davidbrochart:zmq_anyio
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Use zmq-anyio #1291
Changes from all commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
3c14166
Use zmq-anyio
davidbrochart b3c1fcf
Replace thread add_task with start_soon
davidbrochart d9ae3fc
Replace _IOPubThread with BaseThread
davidbrochart 093d959
Fix tests
davidbrochart b789ab6
Allow testing trio
davidbrochart 18a8467
Remove pytest-asyncio from test dependencies
davidbrochart 2d83916
Use selector thread from anyio
davidbrochart 19ebe89
Test more Python versions on Windows
davidbrochart 5bd6f36
Use anyio's alternate selector thread
davidbrochart d91abc7
-
davidbrochart ed4b682
-
davidbrochart 4b73bc1
-
davidbrochart 333f71c
-
davidbrochart fe2be51
-
davidbrochart e125d6b
-
davidbrochart 1a3f0f6
-
davidbrochart 30ee9f5
-
davidbrochart 7137e7a
Enable tracemalloc
davidbrochart 7b4abc2
Update .github/workflows/ci.yml
Carreau 142e033
Update .github/workflows/ci.yml
Carreau 529681a
-
davidbrochart 0f8725b
-
davidbrochart 7d42069
-
davidbrochart 6d404fd
-
davidbrochart 87afdcc
-
davidbrochart b5d7542
-
davidbrochart 3a14e83
-
davidbrochart eefa576
Use zmq-anyio v0.3.0
davidbrochart b555892
Workwaround for not suspending AnyIO socket selector thread
davidbrochart c217f9d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 871da2b
Update .github/workflows/ci.yml
davidbrochart 70dd107
Update .github/workflows/ci.yml
Carreau 5f5fb47
Fix iopub_thread fixture
davidbrochart 9ab982f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 92975d9
-
davidbrochart 0919954
-
davidbrochart 8b57cd1
-
davidbrochart 1b781fb
Merge branch 'main' into zmq_anyio
davidbrochart 55e0f31
Remove timeout
davidbrochart 3c3bc57
Fix test_embed_kernel
davidbrochart 1a9b5f2
Merge branch 'main' into zmq_anyio
davidbrochart 1b1ec80
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] cefa3e9
Fix test_start_kernel
davidbrochart c3c6418
Merge branch 'main' into zmq_anyio
davidbrochart b7d7144
Merge branch 'main' into zmq_anyio
davidbrochart a6de84e
Fix test_asyncio_loop
davidbrochart e0e0bf6
Merge branch 'main' into zmq_anyio
davidbrochart df3f084
Merge branch 'main' into zmq_anyio
davidbrochart 076d3da
Run test_asyncio_loop on asyncio backend only
davidbrochart 7324c05
Fix typing
davidbrochart b9b4803
Fix pypy
davidbrochart 7f5250a
Reset CI to main
davidbrochart 1d2f6be
Add back Windows runs in CI matrix
davidbrochart fd3aa85
-
davidbrochart bf87ed8
-
davidbrochart a573494
Merge branch 'main' into zmq_anyio
davidbrochart a9e9e47
Review
davidbrochart c174f1b
Don't test autoawait on trio
davidbrochart 192d62e
Add back pytest.mark.anyio
davidbrochart f13f7d7
Merge branch 'main' into zmq_anyio
davidbrochart c9e9108
Set async event in async context
davidbrochart c458479
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e7706c3
Remove trio_runner
davidbrochart 75c3fad
Merge remote-tracking branch 'origin/zmq_anyio' into zmq_anyio
davidbrochart 255cd27
Remove trio_runner from docs
davidbrochart 4327f17
Merge branch 'main' into zmq_anyio
Carreau 4f83ff3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 15bb2fa
Merge branch 'main' into zmq_anyio
davidbrochart cf8144a
Install ipython main
davidbrochart 2bf0c6f
Invoke garbage collector, drop python 3.9 and 3.10
davidbrochart 1b1a0a1
Don't test on pypy, add more gc.collect()
davidbrochart e3ad3e1
Limit IPython HistoryManager instance number to 1
davidbrochart c4cb536
Move garbage collection to session fixture
davidbrochart 3f89427
fix leak
Carreau 6bea48d
fix 2 more leaks
Carreau 38405df
try to fix at_exit_once
Carreau 024ffb0
Move watching shell_stop event to start()
davidbrochart a7920e0
Skip test_comm on Trio
davidbrochart 0c7e88e
Skip test_eventloop on Trio
davidbrochart f21dd29
Remove ipython install from github
davidbrochart acb0fad
-
davidbrochart 2c08818
Merge branch 'main' into zmq_anyio
davidbrochart 21fd27a
-
davidbrochart 6853f39
Merge branch 'main' into zmq_anyio
davidbrochart bc75196
-
davidbrochart 1dba7da
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 73ae49d
-
davidbrochart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it may be a real dumb question, but could/should this be refactored (in another PR maybe) into a context manager:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, I was just trying to get rid of a failure in test_merge_connection_file, which creates an
IPKernelApp
, initializes its heartbeat socket and thread, and closes the ZMQ context, leaving the thread working on a closed ZMQ context 😢It was just working by chance before.