From fbeaa977049e6ac2723b98017ab1055c8cb603fc Mon Sep 17 00:00:00 2001 From: Eric Charles Date: Tue, 12 Apr 2022 12:09:15 +0200 Subject: [PATCH] Update further to ipykernel comm refatoring --- docs/source/comms.rst | 2 +- notebook/tests/services/serialize.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/comms.rst b/docs/source/comms.rst index 7c292d78b..c2ff11bb5 100644 --- a/docs/source/comms.rst +++ b/docs/source/comms.rst @@ -78,7 +78,7 @@ containing Javascript to connect to it. # Send data to the frontend on creation comm.send({'foo': 5}) - get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) + get_ipython().comm.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this example will be different in other kernels that support comms. Refer to the specific language kernel's diff --git a/notebook/tests/services/serialize.js b/notebook/tests/services/serialize.js index e44ea4704..cd538c54d 100644 --- a/notebook/tests/services/serialize.js +++ b/notebook/tests/services/serialize.js @@ -33,7 +33,7 @@ casper.notebook_test(function () { this.then(function () { var index = this.append_cell([ "import os", - "from IPython.kernel.comm import Comm", + "from IPython.comm.comm import Comm", "comm = Comm(target_name='echo')", "msgs = []", "def on_msg(msg):",