Show More
@@ -40,10 +40,10 var IPython = (function (IPython) { | |||||
40 | } |
|
40 | } | |
41 | }; |
|
41 | }; | |
42 |
|
42 | |||
43 |
CommManager.prototype.new_comm = function (target_name, data, callbacks, metadata |
|
43 | CommManager.prototype.new_comm = function (target_name, data, callbacks, metadata) { | |
44 | // Create a new Comm, register it, and open its Kernel-side counterpart |
|
44 | // Create a new Comm, register it, and open its Kernel-side counterpart | |
45 | // Mimics the auto-registration in `Comm.__init__` in the IPython Comm |
|
45 | // Mimics the auto-registration in `Comm.__init__` in the IPython Comm | |
46 |
var comm = new Comm(target_name |
|
46 | var comm = new Comm(target_name); | |
47 | this.register_comm(comm); |
|
47 | this.register_comm(comm); | |
48 | comm.open(data, callbacks, metadata); |
|
48 | comm.open(data, callbacks, metadata); | |
49 | return comm; |
|
49 | return comm; |
General Comments 0
You need to be logged in to leave comments.
Login now