{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "line 1\n" ] }, { "data": { "text/plain": [ "first input" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "println(\"line 1\"); \"first input\"" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "eee24e4d-0571-4d70-98cf-3302414b7868", "version_major": 2, "version_minor": 0 }, "method": "display_data" }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "Added jars: [scalacheck_2.11-1.13.5.jar, scala-library-2.11.8.jar, test-interface-1.0.jar]\n" ] } ], "source": [ "%classpath add mvn org.scalacheck scalacheck_2.11 1.13.5" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "line 3\n" ] }, { "data": { "text/plain": [ "third input" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "println(\"line 3\"); \"third input\"" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "line 4\n" ] }, { "data": { "text/plain": [ "fourth input" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "println(\"line 4\"); \"fourth input\"" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "4fa4a587-ff9f-433d-968d-a55277e51f21", "version_major": 2, "version_minor": 0 }, "method": "display_data" }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%classpath add mvn org.scalacheck scalacheck_2.11 1.13.5" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "line 3\n" ] }, { "data": { "text/plain": [ "third input" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "println(\"line 3\"); \"third input\"" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Scala", "language": "scala", "name": "scala" }, "language_info": { "codemirror_mode": "text/x-scala", "file_extension": ".scala", "mimetype": "", "name": "Scala", "nbconverter_exporter": "", "version": "2.11.11" } }, "nbformat": 4, "nbformat_minor": 2 }