Jupyter Notebook 5.2.2 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance // data in the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send data comm.send({'foo': 7}) // Register a handler0 码力 | 129 页 | 1.73 MB | 1 年前3Jupyter Notebook 5.1.0 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance // data in the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send data comm.send({'foo': 7}) // Register a handler0 码力 | 128 页 | 1.72 MB | 1 年前3Jupyter Notebook 5.0.0 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance // data in the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send data comm.send({'foo': 7}) // Register a handler0 码力 | 129 页 | 1.76 MB | 1 年前3Jupyter Notebook 5.0.0 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send0 码力 | 184 页 | 4.40 MB | 1 年前3Jupyter Notebook 5.1.0 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send0 码力 | 184 页 | 4.36 MB | 1 年前3Jupyter Notebook 5.5.0 Documentation
example that makes the r key available for running a cell: In [ ]: %%javascript Jupyter.keyboard_manager.command_shortcuts.add_shortcut('r', { help : 'run cell', help_index : 'zz', handler : function (event) pass a function as the second argument to add_shortcut. In [ ]: %%javascript Jupyter.keyboard_manager.command_shortcuts.add_shortcut('r', function (event) { IPython.notebook.execute_cell(); return false; 0 Likewise, to remove a shortcut, use remove_shortcut: In [ ]: %%javascript Jupyter.keyboard_manager.command_shortcuts.remove_shortcut('r'); If you want your keyboard shortcuts to be active for all0 码力 | 143 页 | 1.81 MB | 1 年前3Jupyter Notebook 5.2.2 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send0 码力 | 183 页 | 4.36 MB | 1 年前3Jupyter Notebook 5.4.1 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance // data in the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send data comm.send({'foo': 7}) // Register a handler0 码力 | 134 页 | 1.77 MB | 1 年前3Jupyter Notebook 5.4.0 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance // data in the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send data comm.send({'foo': 7}) // Register a handler0 码力 | 134 页 | 1.77 MB | 1 年前3Jupyter Notebook 5.3.1 Documentation
This example shows a frontend comm target registered in a registry: Jupyter.notebook.kernel.comm_manager.register_target('my_comm_target', function(comm, msg) { // comm is the frontend comm instance // data in the message # Send data to the frontend comm.send({'foo': 5}) get_ipython().kernel.comm_manager.register_target('my_comm_target', target_func) This example uses the IPython kernel again; this for comms support. And then open the comm from the frontend: comm = Jupyter.notebook.kernel.comm_manager.new_comm('my_comm_target', {'foo': 6}) // Send data comm.send({'foo': 7}) // Register a handler0 码力 | 133 页 | 1.77 MB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7