{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# 3D Visualization and Maps\n", "\n", "Ipyvolume and pythreejs demos are below. These require separately installing these widgets.\n", "[Ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet) will be forthcoming, see [#6903](https://github.com/twosigma/beakerx/issues/6903). We hope these APIs will be included upstream in the original widget repositories.\n", "\n", "## ipyvolume\n", "\n", "There is an alpha Groovy API for [ipyvolume](https://github.com/maartenbreddels/ipyvolume). For this to work, the widget JS needs to be installed:\n", "```\n", "conda install -c conda-forge ipyvolume\n", "```" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%classpath add mvn com.github.twosigma ipyvolume master-SNAPSHOT" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "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