diff --git a/doc/groovy/3D.ipynb b/doc/groovy/3D.ipynb new file mode 100644 index 0000000000..d10e68c295 --- /dev/null +++ b/doc/groovy/3D.ipynb @@ -0,0 +1,96 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 3D Visualization and Maps\n", + "\n", + "There are Groovy APIs for [ipyvolume](https://github.com/maartenbreddels/ipyvolume),\n", + "[pythreejs](https://github.com/jupyter-widgets/pythreejs), and [ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet)." + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "", + "version_major": 2, + "version_minor": 0 + }, + "method": "display_data" + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "3b12ce46-89c9-4b76-97da-16f8f0998d02", + "version_major": 2, + "version_minor": 0 + }, + "method": "display_data" + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%classpath config resolver jitpack.io https://jitpack.io\n", + "%classpath add mvn com.github.twosigma:ipyvolume:lmitusinski~beakerx-widget-SNAPSHOT\n", + "import ipyvolume.PyLab;\n", + "\n", + "int size = 32;\n", + "int radius = 12;\n", + "float[][][] data = new float[size][size][size];\n", + "for (int x = 0; x