Skip to content

Commit 598c875

Browse files
committed
Add deprecated property shell_streams
1 parent d25b69c commit 598c875

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ipykernel/kernelbase.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import sys
1212
import time
1313
import uuid
14+
import warnings
1415

1516
try:
1617
# jupyter_client >= 5, use tz-aware now
@@ -58,6 +59,15 @@ def _update_eventloop(self, change):
5859
session = Instance(Session, allow_none=True)
5960
profile_dir = Instance('IPython.core.profiledir.ProfileDir', allow_none=True)
6061
shell_stream = Instance(ZMQStream, allow_none=True)
62+
63+
@property
64+
def shell_streams(self):
65+
warnings.warn(
66+
'Property shell_streams is deprecated in favor of shell_stream',
67+
DeprecationWarning
68+
)
69+
return [shell_stream]
70+
6171
control_stream = Instance(ZMQStream, allow_none=True)
6272
iopub_socket = Any()
6373
iopub_thread = Any()

0 commit comments

Comments
 (0)