conkernelclient 0.0.13__tar.gz → 0.0.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conkernelclient
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: Concurrent-safe Jupyter KernelClient
5
5
  Author-email: Jeremy Howard <github@jhoward.fastmail.fm>
6
6
  License: Apache-2.0
@@ -1,3 +1,3 @@
1
- __version__ = "0.0.13"
1
+ __version__ = "0.0.14"
2
2
  from .core import *
3
3
  from .ops import *
@@ -123,11 +123,12 @@ def shell_request(
123
123
  self:ConKernelClient, msg_type, timeout=default_timeout, reply=True, buffers=None,
124
124
  msg_id=None, # Override the auto-generated message id
125
125
  subshell_id=None, # Route via this subshell (header field)
126
+ metadata=None, # Message metadata (e.g. ipywidgets control-comm version check)
126
127
  **content
127
128
  ):
128
129
  "Send an arbitrary shell request, routed through the reply reader like `execute`. Returns a coroutine for the reply, or just the msg_id when `reply=False` (for fire-and-forget types like `comm_open` that never get replies)"
129
130
  if not self._check_alive(): return asyncio.sleep(0) if reply else None
130
- msg = self.session.msg(msg_type, content)
131
+ msg = self.session.msg(msg_type, content, metadata=metadata)
131
132
  if msg_id is not None: msg['header']['msg_id'] = msg_id
132
133
  if subshell_id is not None: msg['header']['subshell_id'] = subshell_id
133
134
  mid = msg['header']['msg_id']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: conkernelclient
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: Concurrent-safe Jupyter KernelClient
5
5
  Author-email: Jeremy Howard <github@jhoward.fastmail.fm>
6
6
  License: Apache-2.0