Skip to content

Commit 4acde25

Browse files
committed
update
1 parent 4fa3cc2 commit 4acde25

File tree

4 files changed

+450
-108
lines changed

4 files changed

+450
-108
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ In order to run the notebooks you will also need to have `imageio` and `zarr` in
2020
### Install using pip
2121
```
2222
# other packages specifically used for this demo
23-
pip install "jupyterlab<4" imageio zarr sidecar
23+
# jupyterlab v3 because of sidecar, and pin pylingalg because of pygfx
24+
pip install "jupyterlab<4" imageio "imageio[pyav]" zarr sidecar pylinalg==0.4.0 scikit-image glfw
25+
26+
# optional, you'll need C compilers
27+
pip install simplejpeg
2428
2529
# fastplotlib with notebook dependencies
2630
pip install "fastplotlib[notebook]"

gridplot.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"outputs": [],
3535
"source": [
3636
"# GridPlot of shape 2 x 3 with all controllers synced\n",
37-
"grid_plot = fpl.GridPlot(shape=(2, 3), controllers=\"sync\")\n",
37+
"grid_plot = fpl.GridPlot(shape=(2, 3), controllers=\"sync\", size=(600, 400))\n",
3838
"\n",
3939
"# Make a random image graphic for each subplot\n",
4040
"for subplot in grid_plot:\n",
@@ -240,7 +240,7 @@
240240
"name": "python",
241241
"nbconvert_exporter": "python",
242242
"pygments_lexer": "ipython3",
243-
"version": "3.11.3"
243+
"version": "3.11.4"
244244
}
245245
},
246246
"nbformat": 4,

image.ipynb

+25-27
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
{
1414
"cell_type": "markdown",
1515
"id": "807a45e5-5473-477b-9cb3-41a03a8135c7",
16-
"metadata": {},
16+
"metadata": {
17+
"tags": []
18+
},
1719
"source": [
1820
"## `fastplotlib` API\n",
1921
"\n",
@@ -33,6 +35,22 @@
3335
" "
3436
]
3537
},
38+
{
39+
"cell_type": "markdown",
40+
"id": "03169ecd-8916-4ddd-a023-066f7be7d648",
41+
"metadata": {},
42+
"source": [
43+
"# Running demos on an ancient Quadro P500 laptop GPU\n",
44+
"\n",
45+
"## nearly 6 years old\n",
46+
"\n",
47+
"Benchmark - 1,555\n",
48+
"\n",
49+
"Nothing compared to midrange GPU, RTX 3060 Ti: 20,633\n",
50+
"\n",
51+
"https://www.videocardbenchmark.net/gpu.php?gpu=Quadro+P500&id=3911"
52+
]
53+
},
3654
{
3755
"cell_type": "markdown",
3856
"id": "b95759bc-b567-4327-b825-68fe871c3473",
@@ -108,16 +126,16 @@
108126
"outputs": [],
109127
"source": [
110128
"# create a `Plot` instance\n",
111-
"plot = fpl.Plot()\n",
129+
"plot = fpl.Plot(size=(600, 500))\n",
112130
"\n",
113131
"# get a grayscale image\n",
114132
"data = iio.imread(\"imageio:camera.png\")\n",
115133
"\n",
116134
"# plot the image data\n",
117135
"image_graphic = plot.add_image(data=data, name=\"sample-image\")\n",
118136
"\n",
119-
"# display plot in side car\n",
120-
"sc = Sidecar(title=\"sample image\")\n",
137+
"# display plot in sidecar\n",
138+
"sc = Sidecar(title=\"sample image\", layout={'width': '800px'})\n",
121139
"\n",
122140
"with sc:\n",
123141
" # show the plot\n",
@@ -282,7 +300,7 @@
282300
"outputs": [],
283301
"source": [
284302
"# create another `Plot` instance\n",
285-
"plot_v = fpl.Plot()\n",
303+
"plot_v = fpl.Plot(size=(600, 500))\n",
286304
"\n",
287305
"plot.canvas.max_buffered_frames = 1\n",
288306
"\n",
@@ -328,7 +346,7 @@
328346
},
329347
"outputs": [],
330348
"source": [
331-
"plot_sync = fpl.Plot(controller=plot_v.controller)\n",
349+
"plot_sync = fpl.Plot(controller=plot_v.controller, size=(600, 500))\n",
332350
"\n",
333351
"data = np.random.rand(512, 512)\n",
334352
"\n",
@@ -417,18 +435,6 @@
417435
"## Plot and scroll through the first dimension with a slider"
418436
]
419437
},
420-
{
421-
"cell_type": "code",
422-
"execution_count": null,
423-
"id": "98e7d66c-fc02-42dd-8931-a4f116d8ee8c",
424-
"metadata": {
425-
"tags": []
426-
},
427-
"outputs": [],
428-
"source": [
429-
"!pip install \"imageio[pyav]\""
430-
]
431-
},
432438
{
433439
"cell_type": "code",
434440
"execution_count": null,
@@ -604,14 +610,6 @@
604610
"sc.close()"
605611
]
606612
},
607-
{
608-
"cell_type": "code",
609-
"execution_count": null,
610-
"id": "03837ed8-05b1-4518-85b3-8fdf7263b52e",
611-
"metadata": {},
612-
"outputs": [],
613-
"source": []
614-
},
615613
{
616614
"cell_type": "code",
617615
"execution_count": null,
@@ -637,7 +635,7 @@
637635
"name": "python",
638636
"nbconvert_exporter": "python",
639637
"pygments_lexer": "ipython3",
640-
"version": "3.11.3"
638+
"version": "3.11.4"
641639
}
642640
},
643641
"nbformat": 4,

0 commit comments

Comments
 (0)