Skip to content

Remove deprecated shell_streams and _parent_header shims#1504

Open
erikgaas wants to merge 3 commits intoipython:mainfrom
erikgaas:remove-shell-streams
Open

Remove deprecated shell_streams and _parent_header shims#1504
erikgaas wants to merge 3 commits intoipython:mainfrom
erikgaas:remove-shell-streams

Conversation

@erikgaas
Copy link

@erikgaas erikgaas commented Mar 6, 2026

Summary

Remove two deprecated compatibility shims from ipykernel 6.0 (2021):

  • shell_streams (plural) — deprecated in favor of shell_stream (singular)
  • _parent_header property — deprecated in favor of get_parent()

Both have been emitting DeprecationWarning for 5 years.

Changes

  • Remove shell_streams trait, _shell_streams_default, and _shell_streams_changed from kernelbase.py
  • Remove _parent_header deprecated property from kernelbase.py
  • Remove test_deprecated_features test that covered both

No behavioral change — shell_stream and get_parent() remain the supported APIs.

erikgaas and others added 3 commits March 6, 2026 10:01
shell_streams (plural) was deprecated in ipykernel 6.0 (2021) in favor of
shell_stream (singular). Remove the trait, default handler, observer, and
associated test.
@erikgaas erikgaas changed the title Remove deprecated shell_streams shim Remove deprecated shell_streams and _parent_header shims Mar 6, 2026
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.

1 participant