{ "cells": [ { "cell_type": "markdown", "id": "95b4836d", "metadata": {}, "source": [ "# PyGfx points and lines example\n", "\n", "**Note that this example depends on pygfx (`pip install -U pygfx`).**\n", "\n", "An example demonstrating points and lines, in two separate canvases." ] }, { "cell_type": "code", "execution_count": 1, "id": "8e9b85e0", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import pygfx as gfx\n", "from wgpu.gui.jupyter import WgpuCanvas" ] }, { "cell_type": "code", "execution_count": 2, "id": "b912bb67", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "d7fda6852cbf4567b25caa722554a3d8", "version_major": 2, "version_minor": 0 }, "text/plain": [ "RFBOutputContext()" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stderr", "output_type": "stream", "text": [ "Forcing backend: Vulkan (4)\n" ] }, { "data": { "text/html": [ "