File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "cells" : [
3+ {
4+ "cell_type" : " markdown" ,
5+ "metadata" : {},
6+ "source" : [
7+ " Checking Projects with testthat\n " ,
8+ " -----------------------------\n " ,
9+ " \n " ,
10+ " In this notebook, a testthat reporter sends test output to the jupyter client.\n " ,
11+ " To see this in action, paste this javascript into your console:\n " ,
12+ " \n " ,
13+ " ```\n " ,
14+ " Jupyter.notebook.kernel.comm_manager.register_target('dc_project',\n " ,
15+ " function(comm, msg) {\n " ,
16+ " // comm is the frontend comm instance\n " ,
17+ " // msg is the comm_open message, which can carry data\n " ,
18+ " \n " ,
19+ " // Register handlers for later messages:\n " ,
20+ " comm.on_msg(function(msg) { console.log('msg:', msg)} );\n " ,
21+ " comm.on_close(function(msg) { console.log('close msg:', msg)});\n " ,
22+ " //comm.send({'foo': 0});\n " ,
23+ " })\n " ,
24+ " ```"
25+ ]
26+ },
327 {
428 "cell_type" : " code" ,
529 "execution_count" : 93 ,
You can’t perform that action at this time.
0 commit comments