Skip to content

Commit 05c1f6f

Browse files
committed
Add buffers argument to comm open/close
1 parent da2d54f commit 05c1f6f

File tree

1 file changed

+5
-5
lines changed
  • notebook/static/services/kernels

1 file changed

+5
-5
lines changed

notebook/static/services/kernels/comm.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ define([
147147
};
148148

149149
// methods for sending messages
150-
Comm.prototype.open = function (data, callbacks, metadata) {
150+
Comm.prototype.open = function (data, callbacks, metadata, buffers) {
151151
var content = {
152152
comm_id : this.comm_id,
153153
target_name : this.target_name,
154154
data : data || {},
155155
};
156-
return this.kernel.send_shell_message("comm_open", content, callbacks, metadata);
156+
return this.kernel.send_shell_message("comm_open", content, callbacks, metadata, buffers);
157157
};
158158

159159
Comm.prototype.send = function (data, callbacks, metadata, buffers) {
@@ -163,13 +163,13 @@ define([
163163
};
164164
return this.kernel.send_shell_message("comm_msg", content, callbacks, metadata, buffers);
165165
};
166-
167-
Comm.prototype.close = function (data, callbacks, metadata) {
166+
167+
Comm.prototype.close = function (data, callbacks, metadata, buffers) {
168168
var content = {
169169
comm_id : this.comm_id,
170170
data : data || {},
171171
};
172-
return this.kernel.send_shell_message("comm_close", content, callbacks, metadata);
172+
return this.kernel.send_shell_message("comm_close", content, callbacks, metadata, buffers);
173173
};
174174

175175
// methods for registering callbacks for incoming messages

0 commit comments

Comments
 (0)