{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "(require '[clojupyter.misc.display :as display])" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/latex": [ "$e^{i \\pi} + 1 = 0$" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(display/latex \"$e^{i \\\\pi} + 1 = 0$\")" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "

Hello, from html

" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(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\")" ] } ], "metadata": { "kernelspec": { "display_name": "Lein-Clojure", "language": "clojure", "name": "lein-clojure" }, "language_info": { "file_extension": ".clj", "mimetype": "text/x-clojure", "name": "clojure", "version": "1.9.0" } }, "nbformat": 4, "nbformat_minor": 2 }