diff --git a/project.clj b/project.clj index cbb3e80..5905b0d 100644 --- a/project.clj +++ b/project.clj @@ -20,7 +20,7 @@ :exclusions [org.clojure/tools.reader]]] :plugins [[lein-environ "1.1.0"] - [lein-jupyter "0.1.13"] + [lein-jupyter "0.1.14"] [lein-cljsbuild "1.1.7"] [lein-asset-minifier "0.2.7" :exclusions [org.clojure/clojure]]] diff --git a/resources/public/images/clojupyter-logo-alpha-1.svg b/resources/public/images/clojupyter-logo-alpha-1.svg new file mode 100644 index 0000000..5fe0761 --- /dev/null +++ b/resources/public/images/clojupyter-logo-alpha-1.svg @@ -0,0 +1,325 @@ + + + + + + image/svg+xml + + Group.svg + + + + + Group.svg + Created using Figma 0.90 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/public/notebooks/auto-complete.ipynb b/resources/public/notebooks/auto-complete.ipynb index 6400848..5a9b223 100644 --- a/resources/public/notebooks/auto-complete.ipynb +++ b/resources/public/notebooks/auto-complete.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 33, "metadata": {}, "outputs": [ { @@ -11,7 +11,7 @@ "#'user/gaussians" ] }, - "execution_count": 1, + "execution_count": 33, "metadata": {}, "output_type": "execute_result" } @@ -21,12 +21,12 @@ "(import '(java.util Random))\n", "\n", "(def random (new Random 123))\n", - "(def gaussians (clojure.core/red #(.nextGaussian random)))" + "(def gaussians (clojure.core/repeatedly #(.nextGaussian random)))" ] }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 34, "metadata": {}, "outputs": [ { @@ -35,21 +35,14 @@ "#'user/brown-movement" ] }, - "execution_count": 2, + "execution_count": 34, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "(def brown-movement (clojure.core/reductions + gaussians))" + "(def brown-movement (reductions + gaussians))" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/resources/public/notebooks/basic_text.ipynb b/resources/public/notebooks/basic_text.ipynb index ddb1617..a5c0af0 100644 --- a/resources/public/notebooks/basic_text.ipynb +++ b/resources/public/notebooks/basic_text.ipynb @@ -2,33 +2,13 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "(require '[clojupyter.misc.display :as display])" ] }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [ - { - "data": { - "text/latex": [ - "$e^{i \\pi} + 1 = 0$" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "(display/make-latex \"$e^{i \\\\pi} + 1 = 0$\")" - ] - }, { "cell_type": "code", "execution_count": 3, @@ -36,8 +16,8 @@ "outputs": [ { "data": { - "text/html": [ - "

Hello, from html

" + "text/latex": [ + "$e^{i \\pi} + 1 = 0$" ] }, "execution_count": 3, @@ -46,7 +26,7 @@ } ], "source": [ - "(display/make-html \"

Hello, from html

\")" + "(display/latex \"$e^{i \\\\pi} + 1 = 0$\")" ] }, { @@ -56,8 +36,8 @@ "outputs": [ { "data": { - "text/markdown": [ - "## Hello, from markdown" + "text/html": [ + "

Hello, from html

" ] }, "execution_count": 4, @@ -66,7 +46,47 @@ } ], "source": [ - "(display/make-markdown \"## Hello, from markdown\")" + "(display/html \"

Hello, from html

\")" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "#function[clojupyter.misc.display/html]" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "display/html" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/markdown": [ + "## Hello, from markdown" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(display/markdown \"## Hello, from markdown\")" ] }, {