Skip to content

Instantly share code, notes, and snippets.

@nightscape
Created April 7, 2015 14:09
Show Gist options
  • Save nightscape/ed7dbfd62e4ffaaaa53c to your computer and use it in GitHub Desktop.
Save nightscape/ed7dbfd62e4ffaaaa53c to your computer and use it in GitHub Desktop.
{
"metadata" : {
"name" : "ClasspathTest",
"user_save_timestamp" : "1970-01-01T01:00:00.000Z",
"auto_save_timestamp" : "1970-01-01T01:00:00.000Z",
"language_info" : {
"name" : "scala",
"file_extension" : "scala",
"codemirror_mode" : "text/x-scala"
},
"trusted" : true,
"customLocalRepo" : null,
"customRepos" : null,
"customDeps" : null,
"customImports" : null,
"customSparkConf" : null
},
"cells" : [ {
"metadata" : {
"trusted" : true,
"input_collapsed" : false,
"collapsed" : false
},
"cell_type" : "code",
"source" : ":local-repo /tmp/classpath_test/repo",
"outputs" : [ {
"name" : "stdout",
"output_type" : "stream",
"text" : "res9: String = Repo changed to /tmp/classpath_test/repo!\n"
}, {
"metadata" : { },
"data" : {
"text/html" : "Repo changed to /tmp/classpath_test/repo!"
},
"output_type" : "execute_result",
"execution_count" : 4
} ]
}, {
"metadata" : {
"trusted" : true,
"input_collapsed" : false,
"collapsed" : false
},
"cell_type" : "code",
"source" : ":dp org.jsoup % jsoup % 1.8.1",
"outputs" : [ {
"name" : "stdout",
"output_type" : "stream",
"text" : "warning: there were 2 feature warning(s); re-run with -feature for details\njars: Array[String] = [Ljava.lang.String;@47c11151\nres14: List[String] = List(/tmp/classpath_test/repo/org/jsoup/jsoup/1.8.1/jsoup-1.8.1.jar, /var/folders/0l/gsd169714ld3qw4y16kqjr140000gv/T/spark-notebook/aether/03cfd8e3-6004-48c8-951a-baf18184c826/org/jsoup/jsoup/1.8.1/jsoup-1.8.1.jar)\n"
}, {
"metadata" : { },
"data" : {
"text/html" : "<div>\n <script data-this=\"{&quot;dataId&quot;:&quot;anon53b335255a01013bf3e71d1729e53505&quot;,&quot;dataInit&quot;:[{&quot;X&quot;:&quot;[C@5ca22bc9&quot;,&quot;Y&quot;:-896419010},{&quot;X&quot;:&quot;[C@5b0e2337&quot;,&quot;Y&quot;:-185110312}],&quot;genId&quot;:&quot;1207774760&quot;}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/tabs'], \n function(playground, _magictabs) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magictabs,\n \"o\": {}\n }\n \n \n \n );\n }\n );/*]]>*/</script><div>\n <ul class=\"nav nav-tabs\" id=\"ul1207774760\"><li>\n <a href=\"#tab1207774760-0\"><i class=\"fa fa-table\"/></a>\n </li><li>\n <a href=\"#tab1207774760-1\"><i class=\"fa fa-bar-chart\"/></a>\n </li><li>\n <a href=\"#tab1207774760-2\"><i class=\"fa fa-pie-chart\"/></a>\n </li></ul>\n\n <div class=\"tab-content\" id=\"tab1207774760\"><div class=\"tab-pane\" id=\"tab1207774760-0\">\n <div>\n <script data-this=\"{&quot;dataId&quot;:&quot;anon658ec6edede26c412ea1e9a6f464c56e&quot;,&quot;dataInit&quot;:[{&quot;X&quot;:&quot;[C@5ca22bc9&quot;,&quot;Y&quot;:-896419010},{&quot;X&quot;:&quot;[C@5b0e2337&quot;,&quot;Y&quot;:-185110312}],&quot;genId&quot;:&quot;1122868274&quot;}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/tableChart'], \n function(playground, _magictableChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magictableChart,\n \"o\": {\"headers\":[\"X\",\"Y\"],\"nrow\":2,\"shown\":25,\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script></div>\n </div><div class=\"tab-pane\" id=\"tab1207774760-1\">\n <div>\n <script data-this=\"{&quot;dataId&quot;:&quot;anon04a7e60c8a865dbff98fddafb7dae00a&quot;,&quot;dataInit&quot;:[{&quot;X&quot;:&quot;[C@5ca22bc9&quot;,&quot;Y&quot;:-896419010},{&quot;X&quot;:&quot;[C@5b0e2337&quot;,&quot;Y&quot;:-185110312}],&quot;genId&quot;:&quot;486279946&quot;}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/barChart'], \n function(playground, _magicbarChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicbarChart,\n \"o\": {\"x\":\"X\",\"y\":\"Y\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script></div>\n </div><div class=\"tab-pane\" id=\"tab1207774760-2\">\n <div>\n <script data-this=\"{&quot;dataId&quot;:&quot;anon6882a112413de8a5003ea64f734bbd4a&quot;,&quot;dataInit&quot;:[{&quot;X&quot;:&quot;[C@5ca22bc9&quot;,&quot;Y&quot;:-896419010},{&quot;X&quot;:&quot;[C@5b0e2337&quot;,&quot;Y&quot;:-185110312}],&quot;genId&quot;:&quot;2051487046&quot;}\" type=\"text/x-scoped-javascript\">/*<![CDATA[*/req(['../javascripts/notebook/playground','../javascripts/notebook/magic/pieChart'], \n function(playground, _magicpieChart) {\n // data ==> data-this (in observable.js's scopedEval) ==> this in JS => { dataId, dataInit, ... }\n // this ==> scope (in observable.js's scopedEval) ==> this.parentElement ==> div.container below (toHtml)\n\n playground.call(data,\n this\n ,\n {\n \"f\": _magicpieChart,\n \"o\": {\"series\":\"X\",\"p\":\"Y\",\"width\":600,\"height\":400}\n }\n \n \n \n );\n }\n );/*]]>*/</script></div>\n </div></div>\n </div></div>"
},
"output_type" : "execute_result",
"execution_count" : 5
} ]
}, {
"metadata" : {
"trusted" : true,
"input_collapsed" : false,
"collapsed" : false
},
"cell_type" : "code",
"source" : "import org.jsoup.Jsoup",
"outputs" : [ {
"name" : "stdout",
"output_type" : "stream",
"text" : "<console>:34: error: object jsoup is not a member of package org\n import org.jsoup.Jsoup\n ^\n"
} ]
}, {
"metadata" : {
"trusted" : true,
"input_collapsed" : false,
"collapsed" : false
},
"cell_type" : "code",
"source" : ":cp /tmp/classpath_test/repo/org/jsoup/jsoup/1.8.1/jsoup-1.8.1.jar",
"outputs" : [ {
"name" : "stdout",
"output_type" : "stream",
"text" : "res16: String = Classpath CHANGED!\n"
}, {
"metadata" : { },
"data" : {
"text/html" : "Classpath CHANGED!"
},
"output_type" : "execute_result",
"execution_count" : 7
} ]
}, {
"metadata" : {
"trusted" : true,
"input_collapsed" : false,
"collapsed" : false
},
"cell_type" : "code",
"source" : "import org.jsoup.Jsoup",
"outputs" : [ {
"name" : "stdout",
"output_type" : "stream",
"text" : "<console>:34: error: object jsoup is not a member of package org\n import org.jsoup.Jsoup\n ^\n"
} ]
}, {
"metadata" : {
"trusted" : true,
"input_collapsed" : false,
"collapsed" : true
},
"cell_type" : "code",
"source" : "",
"outputs" : [ ]
} ],
"nbformat" : 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment