Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature: Fork kernel#1261

Open
zmbc wants to merge 1 commit intoipython:anyiofrom
zmbc:fork_kernel
Open

Feature: Fork kernel#1261
zmbc wants to merge 1 commit intoipython:anyiofrom
zmbc:fork_kernel

Conversation

Copy link

zmbc commented Aug 4, 2024 *
edited
Loading

Building on work by @maartenbreddels and @edisongustavo in #410, this is my first pass at trying to add the feature I requested in #1236.

The tests pass However, this involved a fair amount of trial and error and I still don't fully understand why it works the way it does -- see comments inline. I would really appreciate some ideas here.

Requires a corresponding change to jupyter_client: jupyter/jupyter_client#1031.

zmbc mentioned this pull request Aug 4, 2024
zmbc mentioned this pull request Aug 20, 2024
Copy link
Contributor

bluss commented Oct 15, 2024

fork() unfortunately interacts very badly with threading (OS threads). Is it possible that the user has kicked off some running threads?

See also discussion https://discuss.python.org/t/switching-default-multiprocessing-context-to-spawn-on-posix-as-well/21868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants