Merge pull request #3844 from minrk/payload

update payload source

should be simple key, not Python- (or worse, IPython-) specific long key.

I could have sworn I did this long ago, but apparently the source key was only updated in display_data, not execute_reply.
Min RK 13 years ago
commit 76b45c7bd3

@ -419,10 +419,10 @@ var IPython = (function (IPython) {
// Payloads are handled by triggering events because we don't want the Kernel
// to depend on the Notebook or Pager classes.
for (var i=0; i<l; i++) {
if (payload[i].source === 'IPython.kernel.zmq.page.page') {
if (payload[i].source === 'page') {
var data = {'text':payload[i].text}
$([IPython.events]).trigger('open_with_text.Pager', data);
} else if (payload[i].source === 'IPython.kernel.zmq.zmqshell.ZMQInteractiveShell.set_next_input') {
} else if (payload[i].source === 'set_next_input') {
if (callbacks.set_next_input !== undefined) {
callbacks.set_next_input(payload[i].text)
}

Loading…
Cancel
Save