Skip to content

Add support for passing the start_method to optimize #298

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

Merged
merged 4 commits into from
Aug 2, 2024

Conversation

tchaton
Copy link
Collaborator

@tchaton tchaton commented Aug 2, 2024

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

This PR resolves an issue where setting start_method=spawn doesn't work in Jupyter in the function passed to optimize lives in the cell.

Now, the user can pass their desired start_method to the optimize function but in case they doesn't, we will select 'fork' within notebooks and spawn otherwise.

Fixes #295

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@tchaton tchaton requested a review from awaelchli as a code owner August 2, 2024 07:31
@tchaton tchaton merged commit 0010fa8 into main Aug 2, 2024
26 checks passed
@tchaton tchaton deleted the fix_using_optimize_in_studios branch August 2, 2024 08:24
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.

Multiprocessing error when optimizing inside Jupyter notebook
1 participant