github ipython/ipykernel v7.1.0

one day ago

7.1.0

IPykernel 7.1.0 fixes an issue where display outputs such as Matplotlib plots were not included when using %notebook magic to save sessions as .ipynb files (#1435). This is enabled using the traitlet ZMQDisplayPublisher.store_display_history which defaults to the previous behaviour of False. This is a minor release rather than a patch release due to the addition of the new traitlet.

Output from threads is restored to the pre-6.29 behavior by default (route to latest cell, unless get_ipython().set_parent() is called explicitly from the thread. If it is called, output from that thread will continue to be routed to the same cell). This behavior is now opt-in, instead of unconditional (#1451).

This release also fixes bugs that were introduced into the 7.x branch relating to Matplotlib plots in separate windows not being displayed correctly (#1458), kernels launched in new threads failing asserts (#1455), and ContextVars persisting between cells (#1462). There is also a fix for keyboard interrupts on Windows (#1434).

(Full Changelog)

Enhancements made

Bugs fixed

  • fix ContextVar persistence across cells #1462 (@minrk)
  • Fix matplotlib eventloops #1458 (@ianthomas23)
  • Refer to kernel launching thread instead of assuming the main thread #1455 (@dfalbel)
  • Fix routing of background thread output when no parent is set explicitly #1451 (@minrk)
  • Fix KeyboardInterrupt on Windows by manually resetting interrupt event #1434 (@ptosco)

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@Carreau | @Darshan808 | @dfalbel | @ianthomas23 | @krassowski | @lumberbot-app | @minrk | @ptosco

Don't miss a new ipykernel release

NewReleases is sending notifications on new releases.