Created
April 3, 2016 16:07
-
-
Save queirozfcom/b4664e0b5fe30fa3bec6304f0c36393c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"\u001b[36mfoo\u001b[0m: \u001b[32mString\u001b[0m = \u001b[32m\"bar\"\u001b[0m" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"val foo = \"bar\"" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 12, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
":: problems summary ::\n", | |
":::: WARNINGS\n", | |
"\tUnable to reparse com.github.alexarchambault.jupyter#jupyter-scala-api_2.11.6;0.2.0-SNAPSHOT from sonatype-snapshots, using Thu Dec 24 12:50:58 BRST 2015\n", | |
"\n", | |
"\tSorting results from com.github.alexarchambault.jupyter#jupyter-scala-api_2.11.6;0.2.0-SNAPSHOT, using Thu Dec 24 12:50:58 BRST 2015 and Thu Dec 24 12:50:58 BRST 2015\n", | |
"\n", | |
"\tSorting results from com.github.alexarchambault.jupyter#jupyter-scala-api_2.11.6;0.2.0-SNAPSHOT, using Thu Dec 24 00:24:54 BRST 2015 and Thu Dec 24 00:24:54 BRST 2015\n", | |
"\n", | |
"\tChoosing sonatype-snapshots for com.github.alexarchambault.jupyter#jupyter-scala-api_2.11.6;0.2.0-SNAPSHOT\n", | |
"\n", | |
"\tUnable to reparse com.github.alexarchambault#ammonite-api_2.11.6;0.3.1-SNAPSHOT from sonatype-snapshots, using Wed Oct 21 07:43:36 BRST 2015\n", | |
"\n", | |
"\tChoosing sonatype-snapshots for com.github.alexarchambault#ammonite-api_2.11.6;0.3.1-SNAPSHOT\n", | |
"\n", | |
"\tUnable to reparse com.github.alexarchambault.jupyter#jupyter-api_2.11;0.2.0-SNAPSHOT from sonatype-snapshots, using Wed Oct 21 13:03:52 BRST 2015\n", | |
"\n", | |
"\tChoosing sonatype-snapshots for com.github.alexarchambault.jupyter#jupyter-api_2.11;0.2.0-SNAPSHOT\n", | |
"\n" | |
] | |
}, | |
{ | |
"data": { | |
"text/plain": [] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"load.ivy(\"org.json4s\" % \"json4s-jackson_2.11\" % \"3.3.0\")" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 18, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"\u001b[32mimport \u001b[36morg.json4s._\u001b[0m\n", | |
"\u001b[32mimport \u001b[36morg.json4s.jackson.JsonMethods._\u001b[0m\n", | |
"\u001b[36mjson\u001b[0m: \u001b[32mString\u001b[0m = \u001b[32m\"\"\"\n", | |
"{ \"foo\":\"bar\"}\n", | |
"\"\"\"\u001b[0m\n", | |
"\u001b[36mres8_3\u001b[0m: \u001b[32mJValue\u001b[0m = JObject(List((foo,JString(bar))))" | |
] | |
}, | |
"metadata": {}, | |
"output_type": "display_data" | |
} | |
], | |
"source": [ | |
"// in spite of the warning messages, json4s is here, look:\n", | |
"import org.json4s._\n", | |
"import org.json4s.jackson.JsonMethods._\n", | |
"\n", | |
"val json = \"\"\"{ \"foo\":\"bar\"}\"\"\"\n", | |
"parse(json)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Scala 2.11", | |
"language": "scala211", | |
"name": "scala211" | |
}, | |
"language_info": { | |
"codemirror_mode": "text/x-scala", | |
"file_extension": ".scala", | |
"mimetype": "text/x-scala", | |
"name": "scala211", | |
"pygments_lexer": "scala", | |
"version": "2.11.6" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment