Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions ipykernel/zmqshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
# Functions and classes
#-----------------------------------------------------------------------------

_sentinel = object()


class ZMQDisplayPublisher(DisplayPublisher):
"""A display publisher that publishes data using a ZeroMQ PUB socket."""
Expand Down Expand Up @@ -97,7 +95,6 @@ def publish(
self,
data,
metadata=None,
source=_sentinel,
transient=None,
update=False,
):
Expand All @@ -115,23 +112,7 @@ def publish(
Transient data should not be persisted to documents.
update : bool, optional, keyword-only
If True, send an update_display_data message instead of display_data.
source : unused
Value will have no effect on function behavior. Parameter is still
present for backward compatibility but will be removed in the
future.

.. deprecated:: 4.0.1

`source` has been deprecated and no-op since ipykernel 4.0.1
(2015)
"""
if source is not _sentinel:
warnings.warn(
"`source` has been deprecated since ipykernel 4.0.1 "
"and will have no effect",
DeprecationWarning,
stacklevel=2,
)
self._flush_streams()
if metadata is None:
metadata = {}
Expand Down