Skip to content

Commit

Permalink
Fix to allow grouping (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattprintz committed Jul 14, 2023
1 parent fc7804e commit 4738564
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions llmkernel/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@ async def load_dataset(self, queue, message_id, message, **kwargs):
f"""{var_name};"""
)

def _publish_execute_input(self, code, parent, execution_count):
"""Publish the code request on the iopub stream."""
# Override the default action to pass along the parent metadata so we can track the container
self.session.send(
self.iopub_socket,
"execute_input",
{"code": code, "execution_count": execution_count},
parent=parent,
ident=self._topic("execute_input"),
metadata=parent.get("metadata", None),
)

async def load_mira_model(self, queue, message_id, message, **kwargs):
content = message.get('content', {})
Expand Down

0 comments on commit 4738564

Please sign in to comment.