Skip to content

Commit 9249ae2

Browse files
committed
Add buffers argument to CommManager.new_comm
1 parent 05c1f6f commit 9249ae2

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

notebook/static/services/kernels/comm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ define([
3030
kernel.register_iopub_handler(msg_type, $.proxy(this[msg_type], this));
3131
}
3232
};
33-
34-
CommManager.prototype.new_comm = function (target_name, data, callbacks, metadata, comm_id) {
33+
34+
CommManager.prototype.new_comm = function (target_name, data, callbacks, metadata, comm_id, buffers) {
3535
/**
3636
* Create a new Comm, register it, and open its Kernel-side counterpart
3737
* Mimics the auto-registration in `Comm.__init__` in the Jupyter Comm.
@@ -40,7 +40,7 @@ define([
4040
*/
4141
var comm = new Comm(target_name, comm_id);
4242
this.register_comm(comm);
43-
comm.open(data, callbacks, metadata);
43+
comm.open(data, callbacks, metadata, buffers);
4444
return comm;
4545
};
4646

0 commit comments

Comments
 (0)