{ "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.auto import WgpuCanvas" ] }, { "cell_type": "code", "execution_count": 2, "id": "b912bb67", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "f40ea8c7b01d45a59fa1804f893aac21", "version_major": 2, "version_minor": 0 }, "text/plain": [ "RFBOutputContext()" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "