Skip to content

Better detection for the cloudpickle wrapper#726

Merged
ogrisel merged 3 commits intojoblib:masterfrom
ogrisel:cloudpickle-wrapper-improvements
Jul 26, 2018
Merged

Better detection for the cloudpickle wrapper#726
ogrisel merged 3 commits intojoblib:masterfrom
ogrisel:cloudpickle-wrapper-improvements

Conversation

@ogrisel
Copy link
Copy Markdown
Contributor

@ogrisel ogrisel commented Jul 25, 2018

This is a fix for #643.

@ogrisel ogrisel requested review from lesteve and tomMoral July 25, 2018 16:05
@ogrisel ogrisel force-pushed the cloudpickle-wrapper-improvements branch from 198e9af to 33ee254 Compare July 25, 2018 16:06
Copy link
Copy Markdown
Member

@GaelVaroquaux GaelVaroquaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment.

Otherwise, looks great! And this is a very welcomed improvement.


# Here, we do not need the `if __name__ == "__main__":` safeguard when
# using the default `loky` backend (even on Windows).
print(Parallel(n_jobs=2)(delayed(square)(i) for i in range(5)))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a comment explaining why the baroque choice of arguments below.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 25, 2018

Codecov Report

Merging #726 into master will decrease coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #726      +/-   ##
==========================================
- Coverage   95.23%   95.15%   -0.08%     
==========================================
  Files          42       42              
  Lines        6103     6128      +25     
==========================================
+ Hits         5812     5831      +19     
- Misses        291      297       +6
Impacted Files Coverage Δ
joblib/test/test_parallel.py 96.73% <100%> (+0.02%) ⬆️
joblib/parallel.py 98.08% <100%> (+0.11%) ⬆️
joblib/_parallel_backends.py 96% <0%> (-1.6%) ⬇️
joblib/test/test_dask.py 96.22% <0%> (-1.26%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0b5c41...388f457. Read the comment docs.

@ogrisel ogrisel merged commit 35901b8 into joblib:master Jul 26, 2018
@ogrisel ogrisel deleted the cloudpickle-wrapper-improvements branch July 26, 2018 16:41
yarikoptic added a commit to yarikoptic/joblib that referenced this pull request Aug 22, 2018
* tag '0.12.2':
  Release 0.12.2
  Pin numpy version for sklearn test (joblib#734)
  Loky 2.2.0 (joblib#733)
  [MRG] BatchedCalls backward compat (joblib#732)
  Better detection for the cloudpickle wrapper (joblib#726)
  DOC: attempt to fix the build on RTD (joblib#725)
  Include dask backend to fix nested parallelism and auto-scatter (joblib#722)
  FIX: re-establish argument_hash attribute for backward compat (joblib#716)
  Fix cachedir deprecation message (joblib#720)
yarikoptic added a commit to yarikoptic/joblib that referenced this pull request Aug 22, 2018
* releases:
  Release 0.12.2
  Pin numpy version for sklearn test (joblib#734)
  Loky 2.2.0 (joblib#733)
  [MRG] BatchedCalls backward compat (joblib#732)
  Better detection for the cloudpickle wrapper (joblib#726)
  DOC: attempt to fix the build on RTD (joblib#725)
  Include dask backend to fix nested parallelism and auto-scatter (joblib#722)
  FIX: re-establish argument_hash attribute for backward compat (joblib#716)
  Fix cachedir deprecation message (joblib#720)
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