@@ -5,18 +5,76 @@ PyScript can be found [on PyScript.com](https://pyscript.com/@examples).
5
5
6
6
The examples are (links take you to the code):
7
7
8
+ ### Simple:
9
+
8
10
* [ Hello world] ( https://pyscript.com/@examples/hello-world/latest )
9
- * [ A simple clock] ( https://pyscript.com/@examples/simple-clock/latest )
10
- * [ Simple slider panel] ( https://pyscript.com/@examples/simple-panel/latest )
11
- * [ Streaming data panel] ( https://pyscript.com/@examples/streaming-in-panel/latest )
11
+ * uses included datetime module. No additional packages.
12
12
* [ WebGL Icosahedron] ( https://pyscript.com/@examples/webgl-icosahedron/latest )
13
- * [ KMeans in a panel] ( https://pyscript.com/@examples/kmeans-in-panel/latest )
14
- * [ New York Taxi panel (WebGL)] ( https://pyscript.com/@examples/nyc-taxi-panel-deckgl/latest )
13
+ * uses [ three.js] ( https://threejs.org/ ) imported as a module in toml)
15
14
* [ Pandas dataframe fun] ( https://pyscript.com/@examples/pandas/latest )
15
+ * uses [ pandas] ( https://pandas.pydata.org/ ) from pypi
16
+ * pyodide
16
17
* [ Matplotlib example] ( https://pyscript.com/@examples/matplotlib/latest )
18
+ * uses [ matplotlib] ( https://matplotlib.org/ )
19
+ * pyodide
20
+ * [ Todo] ( https://pyscript.com/@examples/todo-app/latest )
21
+ * uses pyweb. No additional packages.
22
+ * pyodide
23
+ * [ Tic Tac Toe] ( https://pyscript.com/@examples/tic-tac-toe/latest )
24
+ * uses pyweb. No additional packages.
25
+ * pyodide
26
+ * [ Pyscript Jokes] ( https://pyscript.com/@examples/pyscript-jokes/latest )
27
+ * uses pyweb and [ pyjokes] ( https://pyjok.es/ )
28
+ * pyodide
29
+ * [ D3 visualization] ( https://pyscript.com/@examples/d3-visualization/latest )
30
+ * uses [ d3] ( https://d3js.org/ )
31
+ * mixes javascript code with python code. imports d3 from javascript.
32
+ * pyodide
33
+ * [ Import antigravity] ( https://pyscript.com/@examples/antigravity/latest )
34
+ * uses svg simply
35
+ * pyodide
36
+ * [ API proxy tutorial] ( https://pyscript.com/@examples/api-proxy-tutorial/latest )
37
+ * uses fetch
38
+ * pyodide
39
+ * [ API proxy and secrets tutorial] ( https://pyscript.com/@examples/api-proxy-and-secrets-tutorial/latest )
40
+ * uses fetch
41
+ * pyodide
42
+
43
+ ### More complex:
44
+
17
45
* [ Numpy fractals] ( https://pyscript.com/@examples/fractals-with-numpy-and-canvas/latest )
46
+ * uses [ numpy] ( https://numpy.org/ ) , [ sympy] ( https://www.sympy.org/en/index.html ) from pypi
47
+ * pyodide
48
+ * [ Simple slider panel] ( https://pyscript.com/@examples/simple-panel/latest )
49
+ * uses [ Panel] ( https://panel.holoviz.org/ ) and [ Bokeh] ( https://bokeh.org/ ) from pypi and loads in index.html
50
+ * pyodide
51
+ * [ Streaming data panel] ( https://pyscript.com/@examples/streaming-in-panel/latest )
52
+ * uses [ Panel] ( https://panel.holoviz.org/ ) , [ Bokeh] ( https://bokeh.org/ ) [ numpy] ( https://numpy.org/ ) , [ pandas] ( https://pandas.pydata.org/ ) from pypi
53
+ * loads bokeh, panel, tabulator in index.html
54
+ * pyodide
55
+ * [ KMeans in a panel] ( https://pyscript.com/@examples/kmeans-in-panel/latest )
56
+ * uses [ Bokeh] ( https://bokeh.org/ ) , [ altair] ( https://altair-viz.github.io/ ) , [ numpy] ( https://numpy.org/ ) , [ pandas] ( https://pandas.pydata.org/ ) , [ scikit-learn] ( https://scikit-learn.org/stable/ ) , [ Panel] ( https://panel.holoviz.org/ ) from pypi
57
+ * loads panel, bootstrap, vega, tabulator, bokeh in index.html
58
+ * pyodide
59
+ * [ New York Taxi panel (WebGL)] ( https://pyscript.com/@examples/nyc-taxi-panel-deckgl/latest )
60
+ * uses a mixture of pypi and direct load packages in index.html
61
+ * [ Bokeh] ( https://bokeh.org/ ) , [ numpy] ( https://numpy.org/ ) , [ pandas] ( https://pandas.pydata.org/ ) , [ Panel] ( https://panel.holoviz.org/ ) , [ deck-gl] ( https://deck.gl/ )
62
+ * deckGL, bokeh are loaded directly in index.html
63
+ * pyodide
18
64
* [ Folium geographical data] ( https://pyscript.com/@examples/folium/latest )
65
+ * uses [ folium] ( https://python-visualization.github.io/folium/latest/ ) , [ pandas] ( https://pandas.pydata.org/ ) from pypi
66
+ * pyodide
19
67
* [ Bokeh data plotting] ( https://pyscript.com/@examples/bokeh/latest )
20
- * [ Import antigravity] ( https://pyscript.com/@examples/antigravity/latest )
68
+ * uses [ pandas] ( https://pandas.pydata.org/ ) , [ Bokeh] ( https://bokeh.org/ ) , [ xyzservices] ( https://github.com/geopandas/xyzservices ) from pypi
69
+ * pyodide
21
70
* [ Altair data plotting] ( https://pyscript.com/@examples/altair/latest )
71
+ * uses [ altair] ( https://altair-viz.github.io/ ) , [ pandas] ( https://pandas.pydata.org/ ) , [ vega_datasets] ( https://github.com/altair-viz/vega_datasets ) from pypi
72
+ * pyodide
73
+ * [ Panel and hyplot] ( https://pyscript.com/@examples/panel-and-hvplot/latest )
74
+ * uses [ Bokeh] ( https://bokeh.org/ ) , [ Panel] ( https://panel.holoviz.org/ ) , [ markdown-it-py] ( https://github.com/executablebooks/markdown-it-py ) , [ numpy] ( https://numpy.org/ ) , [ pandas] ( https://pandas.pydata.org/ ) , [ hvplot] ( https://hvplot.holoviz.org/ ) , [ pyodide-http] ( https://pyodide.org/en/stable/usage/api/python-api/http.html ) a fetch library.
75
+ * bokeh and panel are loaded in the index.html
76
+ * pyodide
22
77
78
+ Notes:
79
+ - No micropython examples - all are pyodide
80
+ - No worker examples
0 commit comments