Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jupyter/jupyter_client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.3.0
Choose a base ref
...
head repository: jupyter/jupyter_client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.3.1
Choose a head ref
  • 11 commits
  • 7 files changed
  • 6 contributors

Commits on Apr 26, 2022

  1. Added Unicode error correction using following Error Handler errors="…

    …surrogateescape"
    
    as discussed here #778
    H3xawax committed Apr 26, 2022
    Copy the full SHA
    afe5b1c View commit details
  2. Copy the full SHA
    00987a9 View commit details

Commits on May 2, 2022

  1. [pre-commit.ci] pre-commit autoupdate

    updates:
    - [github.com/asottile/reorder_python_imports: v3.0.1 → v3.1.0](asottile/reorder-python-imports@v3.0.1...v3.1.0)
    - [github.com/pre-commit/mirrors-mypy: v0.942 → v0.950](pre-commit/mirrors-mypy@v0.942...v0.950)
    pre-commit-ci[bot] authored May 2, 2022
    Copy the full SHA
    c9b0a72 View commit details

Commits on May 3, 2022

  1. Copy the full SHA
    049da56 View commit details
  2. Copy the full SHA
    6dc6315 View commit details
  3. Copy the full SHA
    63edf18 View commit details

Commits on May 8, 2022

  1. Copy the full SHA
    3784495 View commit details
  2. Merge pull request #785 from ccordoba12/fix-channels-running-error

    Check that channels exist before asking if they are alive
    davidbrochart authored May 8, 2022
    Copy the full SHA
    4df8a48 View commit details
  3. Copy the full SHA
    228422b View commit details
  4. Merge pull request #786 from jupyter/changelog-5a155b0ccf1111ecb42eef…

    …89627d1c95
    
    Automated Changelog Entry for 7.3.1 on main
    davidbrochart authored May 8, 2022
    Copy the full SHA
    90a85d4 View commit details
  5. Publish 7.3.1

    SHA256 hashes:
    
    jupyter_client-7.3.1-py3-none-any.whl: 404abe552540aff3527e66e16beb114b6b4ff58479d51a301f4eb9701e4f52ef
    
    jupyter_client-7.3.1.tar.gz: 05d4ff6a0ade25138c6bb0fbeac7ddc26b5fe835e7dd816b64b4a45b931bdc0b
    github-actions[bot] committed May 8, 2022
    Copy the full SHA
    8e7a274 View commit details
Showing with 35 additions and 17 deletions.
  1. +2 −4 .github/workflows/enforce-label.yml
  2. +2 −2 .pre-commit-config.yaml
  3. +22 −2 CHANGELOG.md
  4. +1 −1 jupyter_client/_version.py
  5. +5 −5 jupyter_client/client.py
  6. +2 −2 jupyter_client/session.py
  7. +1 −1 pyproject.toml
6 changes: 2 additions & 4 deletions .github/workflows/enforce-label.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Enforce PR label

concurrency:
group: label-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]
jobs:
enforce-label:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: enforce-triage-label
uses: jupyterlab/maintainer-tools/.github/actions/enforce-label@v1
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/reorder_python_imports
rev: v3.0.1
rev: v3.1.0
hooks:
- id: reorder-python-imports

@@ -51,7 +51,7 @@ repos:
stages: [manual]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.942
rev: v0.950
hooks:
- id: mypy
exclude: jupyter_client/tests
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,28 @@

<!-- <START NEW CHANGELOG ENTRY> -->

## 7.3.1

([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v7.3.0...4df8a48071649d3488a880e61293efd26b7aff1d))

### Bugs fixed

- Check that channels exist before asking if they are alive [#785](https://github.com/jupyter/jupyter_client/pull/785) ([@ccordoba12](https://github.com/ccordoba12))
- Unicode error correction using Error Handler [#779](https://github.com/jupyter/jupyter_client/pull/779) ([@hxawax](https://github.com/hxawax))

### Maintenance and upkeep improvements

- Allow bot PRs to be automatically labeled [#784](https://github.com/jupyter/jupyter_client/pull/784) ([@blink1073](https://github.com/blink1073))
- [pre-commit.ci] pre-commit autoupdate [#783](https://github.com/jupyter/jupyter_client/pull/783) ([@pre-commit-ci](https://github.com/pre-commit-ci))

### Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyter/jupyter_client/graphs/contributors?from=2022-04-25&to=2022-05-08&type=c))

[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Ablink1073+updated%3A2022-04-25..2022-05-08&type=Issues) | [@ccordoba12](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Accordoba12+updated%3A2022-04-25..2022-05-08&type=Issues) | [@hxawax](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Ahxawax+updated%3A2022-04-25..2022-05-08&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Apre-commit-ci+updated%3A2022-04-25..2022-05-08&type=Issues)

<!-- <END NEW CHANGELOG ENTRY> -->

## 7.3.0

([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v7.2.2...fa597d9cdcdc277abda2c3cab4aeee1593d3a9e2))
@@ -23,8 +45,6 @@

[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Ablink1073+updated%3A2022-04-07..2022-04-25&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Apre-commit-ci+updated%3A2022-04-07..2022-04-25&type=Issues)

<!-- <END NEW CHANGELOG ENTRY> -->

## 7.2.2

([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v7.2.1...01b2095d96c81c56edf8f5df44e12e476b2bcd87))
2 changes: 1 addition & 1 deletion jupyter_client/_version.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
from typing import List
from typing import Union

__version__ = "7.3.0"
__version__ = "7.3.1"

# Build up version_info tuple for backwards compatibility
pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
10 changes: 5 additions & 5 deletions jupyter_client/client.py
Original file line number Diff line number Diff line change
@@ -337,11 +337,11 @@ def stop_channels(self) -> None:
def channels_running(self) -> bool:
"""Are any of the channels created and running?"""
return (
self.shell_channel.is_alive()
or self.iopub_channel.is_alive()
or self.stdin_channel.is_alive()
or self.hb_channel.is_alive()
or self.control_channel.is_alive()
(self._shell_channel and self.shell_channel.is_alive())
or (self._iopub_channel and self.iopub_channel.is_alive())
or (self._stdin_channel and self.stdin_channel.is_alive())
or (self._hb_channel and self.hb_channel.is_alive())
or (self._control_channel and self.control_channel.is_alive())
)

ioloop = None # Overridden in subclasses that use pyzmq event loop
4 changes: 2 additions & 2 deletions jupyter_client/session.py
Original file line number Diff line number Diff line change
@@ -101,15 +101,15 @@ def json_packer(obj):
default=json_default,
ensure_ascii=False,
allow_nan=False,
).encode("utf8")
).encode("utf8", errors="surrogateescape")
except (TypeError, ValueError) as e:
# Fallback to trying to clean the json before serializing
packed = json.dumps(
json_clean(obj),
default=json_default,
ensure_ascii=False,
allow_nan=False,
).encode("utf8")
).encode("utf8", errors="surrogateescape")

warnings.warn(
f"Message serialization failed with:\n{e}\n"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ skip = ["check-links"]
ignore = [".mailmap", "*.yml", "*.yaml"]

[tool.tbump.version]
current = "7.3.0"
current = "7.3.1"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?