1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541
|
(changelog)=
# Changelog
Changes in IPython Parallel
## 8.8
### 8.8.0 - 2024-04-02
([full changelog](https://github.com/ipython/ipyparallel/compare/8.7.0...8.8.0))
8.8 is a small release.
New:
- `BroadcastView.map` is defined for API compatibility, but is not particularly efficient or recommended.
Fixed:
- `AsyncResult.join` is fixed.
Improved:
- Performance optimization disabling timestamp parsing in `jupyter_client` is not applied until ipyparallel classes are instantiated,
rather than at import time.
## 8.7
### 8.7.0 - 2024-03-04
([full changelog](https://github.com/ipython/ipyparallel/compare/8.6.1...8.7.0))
8.7 is a small release, with a few improvements and updates, mostly related to compatibility with different versions of JupyterLab, Notebook, and Jupyter Server.
Highlights:
- JupyterLab 4 compatibility for the lab extension
- Improved logging and deprecation messages for different versions of Jupyter Server and Notebook
#### New features added
- Update labextension to jupyterlab 4 [#833](https://github.com/ipython/ipyparallel/pull/833) ([@minrk](https://github.com/minrk))
- add `ControllerLauncher.connection_info_timeout` config [#872](https://github.com/ipython/ipyparallel/pull/872) ([@minrk](https://github.com/minrk))
#### Enhancements made
- log launcher output at warning-level in case of nonzero exit code [#866](https://github.com/ipython/ipyparallel/pull/866) ([@minrk](https://github.com/minrk))
- improve deprecation messaging around `ipcluster nbextension` [#835](https://github.com/ipython/ipyparallel/pull/835) ([@minrk](https://github.com/minrk))
#### Bugs fixed
- Use pre-3.10 serialization code on PyPy3.10 [#846](https://github.com/ipython/ipyparallel/pull/846) ([@mgorny](https://github.com/mgorny), [@minrk](https://github.com/minrk))
- fallback import when using notebook and jupyter_server is unavailable [#808](https://github.com/ipython/ipyparallel/pull/808) ([@minrk](https://github.com/minrk))
- don't propagate logs in IPython [#797](https://github.com/ipython/ipyparallel/pull/797) ([@minrk](https://github.com/minrk))
#### Contributors to this release
The following people contributed discussions, new ideas, code and documentation contributions, and review.
See [our definition of contributors](https://github-activity.readthedocs.io/en/latest/#how-does-this-tool-define-contributions-in-the-reports).
([GitHub contributors page for this release](https://github.com/ipython/ipyparallel/graphs/contributors?from=2023-04-14&to=2024-03-04&type=c))
@ellert ([activity](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Aellert+updated%3A2023-04-14..2024-03-04&type=Issues)) | @hroncok ([activity](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Ahroncok+updated%3A2023-04-14..2024-03-04&type=Issues)) | @mgorny ([activity](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Amgorny+updated%3A2023-04-14..2024-03-04&type=Issues)) | @minrk ([activity](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Aminrk+updated%3A2023-04-14..2024-03-04&type=Issues)) | @ottointhesky ([activity](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Aottointhesky+updated%3A2023-04-14..2024-03-04&type=Issues)) | @tornaria ([activity](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Atornaria+updated%3A2023-04-14..2024-03-04&type=Issues)) | @WernerFS ([activity](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3AWernerFS+updated%3A2023-04-14..2024-03-04&type=Issues))
## 8.6
### 8.6.1
([full changelog](https://github.com/ipython/ipyparallel/compare/8.6.0...8.6.1))
### Bugs fixed
- avoid errors when engine id cannot be identified [#793](https://github.com/ipython/ipyparallel/pull/793) ([@minrk](https://github.com/minrk))
- Disable variable expansion in %px [#792](https://github.com/ipython/ipyparallel/pull/792) ([@minrk](https://github.com/minrk))
- fix wait_interactive(return_when=FIRST_EXCEPTION) when there are no errors [#790](https://github.com/ipython/ipyparallel/pull/790) ([@minrk](https://github.com/minrk))
### 8.6.0
A tiny release fixing issues seen building notebooks with jupyter-book.
([full changelog](https://github.com/ipython/ipyparallel/compare/8.5.1...8.6.0))
- Fix KeyError on parent_header when streaming output with %%px
- Allow disabling streaming/progress defaults with IPP_NONINTERACTIVE=1 environment variable (e.g. when building notebooks in documentation)
## 8.5
### 8.5.1
A tiny bugfix release
([full changelog](https://github.com/ipython/ipyparallel/compare/8.5.0...8.5.1))
- Fix error preventing creation of new profiles via the lab extension
### 8.5.0
A small bugfix and compatibility release.
([full changelog](https://github.com/ipython/ipyparallel/compare/8.4.1...8.5.0))
- Updates dependencies in jupyterlab extension to jupyterlab 3.6
- fix ResourceWarnings about closed clusters
- Avoid some deprecated APIs in jupyter-client and pyzmq
## 8.4
### 8.4.1
([full changelog](https://github.com/ipython/ipyparallel/compare/8.4.0...8.4.1))
8.4.1 is a tiny release, adding support for Python 3.11
### 8.4.0
([full changelog](https://github.com/ipython/ipyparallel/compare/8.3.0...8.4.0))
8.4.0 is a small release, with some bugfixes and improvements to the release process.
Bugfixes:
- (`%px`) only skip redisplay of streamed errors if outputs are complete
Compatibility improvements:
- Avoid use of recently deprecated asyncio/tornado APIs
around 'current' event loops that are not running.
Build improvements:
- Switch to hatch backend for packaging
## 8.3
### 8.3.0
([full changelog](https://github.com/ipython/ipyparallel/compare/8.2.1...8.3.0))
8.3.0 is a small release, with some bugfixes and improvements to the release process.
Build fixes:
- Workaround SSL issues with recent builds of nodejs + webpack
- Build with flit, removing setup.py
Fixes:
- Remove remaining references to deprecated `distutils` package (has surprising impact on process memory)
- Improve logging when engine registration times out
Maintenance changes that shouldn't affect users:
- Releases are now built with pip instead of `setup.py`
- Updates to autoformatting configuration
#### Contributors to this release
([GitHub contributors page for this release](https://github.com/ipython/ipyparallel/graphs/contributors?from=2022-04-01&to=2022-05-09&type=c))
[@blink1073](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Ablink1073+updated%3A2022-04-01..2022-05-09&type=Issues) | [@dependabot](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Adependabot+updated%3A2022-04-01..2022-05-09&type=Issues) | [@jburroni](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Ajburroni+updated%3A2022-04-01..2022-05-09&type=Issues) | [@kloczek](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Akloczek+updated%3A2022-04-01..2022-05-09&type=Issues) | [@minrk](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Aminrk+updated%3A2022-04-01..2022-05-09&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Aipython%2Fipyparallel+involves%3Apre-commit-ci+updated%3A2022-04-01..2022-05-09&type=Issues)
## 8.2
### 8.2.1
8.2.1 Fixes some compatibility issues with latest dask, ipykernel, and setuptools,
as well as some typos and improved documentation.
### 8.2.0
8.2.0 is a small release, mostly of small bugfixes and improvements.
Changes:
`len(AsyncMapResult)` and progress ports now use the number of items in the map,
not the number of messages.
Enhancements:
- Show output prior to errors in `%%px`
Bugs fixed:
- Fix cases where engine id could be `-1` in tracebacks
- Add missing `pbs` to engine launcher entrypoints
[All changes on GitHub](https://github.com/ipython/ipyparallel/compare/8.1.0...8.2.0)
## 8.1
8.1.0 is a small release, adding a few new features and bugfixes.
New features:
- relay KeyboardInterrupt to engines in blocking `%px` magics
- add `Cluster.start_and_connect(activate=True)` to include activation of `%px` magics in one-liner startup.
- initial support for Clusters tab in RetroLab
Fixes:
- ensure profile config is always loaded for `Cluster(profile="xyz")`
- build lab extension in production mode, apply trove classifiers
- pass through keyword arguments to constructor in `Client.broadcast_view`
## 8.0
This is marked as a major revision because of the change to pass connection information via environment variables.
BatchSystem launchers with a custom template will need to make sure to set flags that inherit environment variables,
such as `#PBS -V` or `#SBATCH --export=ALL`.
New:
- More convenient `Cluster(engines="mpi")` signature for setting the engine (or controller) launcher class.
- The first (and usually only) engine set can be accessed as {attr}`.Cluster.engine_set`,
rather than digging through the {attr}`Cluster.engines` dict.
- Add `environment` configuration to all Launchers.
- Support more configuration via environment variables,
including passing connection info to engines via `$IPP_CONNECTION_INFO`,
which is used by default, avoiding the need to send connection files to engines in
cases of non-shared filesystems.
- Launchers send connection info to engines via `$IPP_CONNECTION_INFO` by default.
This is governed by `Cluster.send_engines_connection_env`, which is True by default.
- Support {meth}`EngineLauncher.get_output` via output files in batch system launchers
- Capture output in Batch launchers by setting output file options in the default templates.
- {meth}`LoadBalancedView.imap` returns a `LazyMapIterator` which has a `.cancel()` method,
for stopping consumption of the map input.
- Support for `return_when` argument in {meth}`.AsyncResult.wait` and {meth}`~.AsyncResult.wait_interactive`,
to allow returning on the first error, first completed, or (default) all completed.
Improved:
- {meth}`LoadBalancedView.imap(max_outstanding=n)` limits the number of tasks submitted to the cluster,
instead of limiting the number not-yet-consumed.
Prior to this, the cluster could be idle if several results were waiting to be consumed.
- output streamed by `%%px` includes errors and results, for immediate feedback when only one engine fails.
Fixed:
- Various bugs preventing use of non-default Controller launchers
- Fixed crash in jupyterlab extension when IPython directory does not exist
- `ViewExecutor.shutdown()` waits for `imap` results, like Executors in the standard library
- Removed spurious jupyterlab plugin options that had no effect.
- `%autopx` streams output just like `%%px`
Maintenance:
- Add BroadcastView benchmark code
- Tag releases with tbump
## 7.1
New:
- New {meth}`.Client.start_and_connect` method
for starting a cluster and returning a connected client in one call.
- Support [CurveZMQ][] for transport-level encryption and authentication.
See [security docs][] for more info.
- Define `_max_workers` attribute on {attr}`view.executor` for better consistency
with standard library Executors.
[security docs]: secure-network
[curvezmq]: https://rfc.zeromq.org/spec/26/
Improvements:
- {meth}`.Client.wait_for_engines` will raise an informative error
if the parent Cluster object notices that its engines have halted while waiting,
or any engine unregisters,
rather than continuing to wait for engines that will never come
- Show progress if `%px` is taking significant time
- Improved support for streaming output, e.g. with `%px`,
including support for updating output in-place
with standard terminal carriage-return progress bars.
Fixes:
- Fix dropped IOPub messages when using large numbers of engines,
causing {meth}`.AsyncResult.wait_for_output` to hang.
- Use absolute paths for {attr}`.Cluster.profile_dir`,
fixing issues with {meth}`.Cluster.from_file` when run against a profile created with a relative location,
e.g. `Cluster(profile_dir="./profile")`
- Fix error waiting for connection files when controller is started over ssh.
## 7.0
### 7.0.1
- Fix missing setupbase.py in tarball
### 7.0.0
Compatibility changes:
- **Require Python 3.6**
- Fix compatibility issues with ipykernel 6 and jupyter-client 7
- Remove dependency on deprecated ipython-genutils
- New dependencies on psutil, entrypoints, tqdm
New features:
- New {class}`.Cluster` API for managing clusters from Python,
including support for signaling and restarting engines.
See [docs](./examples/Cluster%20API.ipynb) for more.
- New `ipcluster list` and `ipcluster clean` commands derived from the Cluster API.
- New {meth}`.Client.send_signal` for sending signals to single engines.
- New KernelNanny process for signaling and monitoring engines
for improved responsiveness of handing engine crashes.
- New prototype {class}`.BroadcastScheduler` with vastly improved scaling in 'do-on-all' operations
on large numbers of engines,
c/o Tom-Olav Bøyum's [Master's thesis][] at University of Oslo.
[Broadcast view documentation][].
- New {meth}`.Client.wait_for_engines` method to wait for engines to be available.
- Nicer progress bars for interactive waits, such as {meth}`.AsyncResult.wait_interactive`.
- Add {meth}`.AsyncResult.stream_output` context manager for streaming output.
Stream output by default in parallel magics.
- Launchers registered via entrypoints for better support of third-party Launchers.
- New JupyterLab extension (enabled by default) based on dask-labextension
for managing clusters.
- {meth}`.LoadBalancedView.imap` consumes inputs as-needed,
producing a generator of results instead of an AsyncMapResult,
allowing for consumption of very large or infinite mapping inputs.
[broadcast view documentation]: ./examples/broadcast/Broadcast%20view.ipynb
[master's thesis]: https://urn.nb.no/URN:NBN:no-84589
Improvements and other fixes:
- Greatly improved performance of heartbeat and registration with large numbers of engines,
tested with 5000 engines and default configuration.
- Single `IPController.ports` configuration to specify the pool of ports for the controller to use,
e.g. `ipcontroller --ports 10101-10120`.
- Allow `f` as keyword-argument to `apply`, e.g. `view.apply(myfunc, f=5)`.
- joblib backend will start and stop a cluster by default if the default cluster is not running.
The repo has been updated to use pre-commit, black, myst, and friends and GitHub Actions for CI, but this should not affect users, only making it a bit nicer for contributors.
## 6.3.0
- **Require Python 3.5**
- Fix compatibility with joblib 0.14
- Fix crash recovery test for Python 3.8
- Fix repeated name when cluster-id is set
- Fix CSS for notebook extension
- Fix KeyError handling heartbeat failures
## 6.2.5
- Fix compatibility with Python 3.8
- Fix compatibility with recent dask
## 6.2.4
- Improve compatibility with ipykernel 5
- Fix `%autopx` with IPython 7
- Fix non-local ip warning when using current hostname
## 6.2.3
- Fix compatibility for execute requests with ipykernel 5 (now require ipykernel >= 4.4)
## 6.2.2
- Fix compatibility with tornado 4, broken in 6.2.0
- Fix encoding of engine and controller logs in `ipcluster --debug` on Python 3
- Fix compatiblity with joblib 0.12
- Include LICENSE file in wheels
## 6.2.1
- Workaround a setuptools issue preventing installation from sdist on Windows
## 6.2.0
- Drop support for Python 3.3. IPython parallel now requires Python 2.7 or >= 3.4.
- Further fixes for compatibility with tornado 5 when run with asyncio (Python 3)
- Fix for enabling clusters tab via nbextension
- Multiple fixes for handling when engines stop unexpectedly
- Installing IPython Parallel enables the Clusters tab extension by default,
without any additional commands.
## 6.1.1
- Fix regression in 6.1.0 preventing BatchSpawners (PBS, etc.) from launching with ipcluster.
## 6.1.0
Compatibility fixes with related packages:
- Fix compatibility with pyzmq 17 and tornado 5.
- Fix compatibility with IPython ≥ 6.
- Improve compatibility with dask.distributed ≥ 1.18.
New features:
- Add {attr}`namespace` to BatchSpawners for easier extensibility.
- Support serializing partial functions.
- Support hostnames for machine location, not just ip addresses.
- Add `--location` argument to ipcluster for setting the controller location.
It can be a hostname or ip.
- Engine rank matches MPI rank if engines are started with `--mpi`.
- Avoid duplicate pickling of the same object in maps, etc.
Documentation has been improved significantly.
## 6.0.2
Upload fixed sdist for 6.0.1.
## 6.0.1
Small encoding fix for Python 2.
## 6.0
Due to a compatibility change and semver, this is a major release. However, it is not a big release.
The main compatibility change is that all timestamps are now timezone-aware UTC timestamps.
This means you may see comparison errors if you have code that uses datetime objects without timezone info (so-called naïve datetime objects).
Other fixes:
- Rename {meth}`Client.become_distributed` to {meth}`Client.become_dask`.
{meth}`become_distributed` remains as an alias.
- import joblib from a public API instead of a private one
when using IPython Parallel as a joblib backend.
- Compatibility fix in extensions for security changes in notebook 4.3
## 5.2
- Fix compatibility with changes in ipykernel 4.3, 4.4
- Improve inspection of `@remote` decorated functions
- {meth}`Client.wait` accepts any Future.
- Add `--user` flag to {command}`ipcluster nbextension`
- Default to one core per worker in {meth}`Client.become_distributed`.
Override by specifying `ncores` keyword-argument.
- Subprocess logs are no longer sent to files by default in {command}`ipcluster`.
## 5.1
### dask, joblib
IPython Parallel 5.1 adds integration with other parallel computing tools,
such as [dask.distributed](https://distributed.readthedocs.io) and [joblib](https://joblib.readthedocs.io).
To turn an IPython cluster into a dask.distributed cluster,
call {meth}`~.Client.become_distributed`:
```
executor = client.become_distributed(ncores=1)
```
which returns a distributed {class}`Executor` instance.
To register IPython Parallel as the backend for joblib:
```
import ipyparallel as ipp
ipp.register_joblib_backend()
```
### nbextensions
IPython parallel now supports the notebook-4.2 API for enabling server extensions,
to provide the IPython clusters tab:
```
jupyter serverextension enable --py ipyparallel
jupyter nbextension install --py ipyparallel
jupyter nbextension enable --py ipyparallel
```
though you can still use the more convenient single-call:
```
ipcluster nbextension enable
```
which does all three steps above.
### Slurm support
[Slurm](https://hpc.llnl.gov/documentation/tutorials/livermore-computing-linux-commodity-clusters-overview-part-two) support is added to ipcluster.
### 5.1.0
[5.1.0 on GitHub](https://github.com/ipython/ipyparallel/milestones/5.1)
## 5.0
### 5.0.1
[5.0.1 on GitHub](https://github.com/ipython/ipyparallel/milestones/5.0.1)
- Fix imports in {meth}`use_cloudpickle`, {meth}`use_dill`.
- Various typos and documentation updates to catch up with 5.0.
### 5.0.0
[5.0 on GitHub](https://github.com/ipython/ipyparallel/milestones/5.0)
The highlight of ipyparallel 5.0 is that the Client has been reorganized a bit to use Futures.
AsyncResults are now a Future subclass, so they can be `yield` ed in coroutines, etc.
Views have also received an Executor interface.
This rewrite better connects results to their handles,
so the Client.results cache should no longer grow unbounded.
```{seealso}
- The Executor API {class}`ipyparallel.ViewExecutor`
- Creating an Executor from a Client: {meth}`ipyparallel.Client.executor`
- Each View has an {attr}`executor` attribute
```
Part of the Future refactor is that Client IO is now handled in a background thread,
which means that {meth}`Client.spin_thread` is obsolete and deprecated.
Other changes:
- Add {command}`ipcluster nbextension enable|disable` to toggle the clusters tab in Jupyter notebook
Less interesting development changes for users:
Some IPython-parallel extensions to the IPython kernel have been moved to the ipyparallel package:
- {mod}`ipykernel.datapub` is now {mod}`ipyparallel.datapub`
- ipykernel Python serialization is now in {mod}`ipyparallel.serialize`
- apply_request message handling is implememented in a Kernel subclass,
rather than the base ipykernel Kernel.
## 4.1
[4.1 on GitHub](https://github.com/ipython/ipyparallel/milestones/4.1)
- Add {meth}`.Client.wait_interactive`
- Improvements for specifying engines with SSH launcher.
## 4.0
[4.0 on GitHub](https://github.com/ipython/ipyparallel/milestones/4.0)
First release of `ipyparallel` as a standalone package.
|