Skip to content
Closed
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
10 changes: 10 additions & 0 deletions ipykernel/zmqshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,16 @@ def set_next_input(self, text, replace=False):
)
self.payload_manager.write_payload(payload)

def run_next_input(self, text, replace=False):
"""Send the specified text to the frontend to be presented
and run at the next input cell."""
payload = dict(
source='run_next_input',
text=text,
replace=replace,
)
self.payload_manager.write_payload(payload)

def set_parent(self, parent):
"""Set the parent header for associating output with its triggering input"""
self.parent_header = parent
Expand Down