Skip to content

Commit 624cbf9

Browse files
committed
Merge branch 'main' into fpliger/154_move_py_code_out
2 parents a7432ba + 88a0dd3 commit 624cbf9

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ repos:
99
hooks:
1010
- id: isort
1111
name: isort (python)
12+
args: [--profile, black]

pyscriptjs/examples/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,66 +41,66 @@ <h2 class="text-3xl font-bold">MIME Rendering</h2>
4141
<hr/>
4242

4343
<h2 class="text-2xl font-bold text-blue-600"><a href="./matplotlib.html" target=”_blank”>Matplotlib</a></h2>
44-
<p>Demonstrates rendering matplotlib figure as output of the py-script tag</p>
44+
<p>Demonstrates rendering <a href="https://matplotlib.org/" class="text-blue-600" target=”_blank”>Matplotlib</a> figure as output of the py-script tag</p>
4545

4646
<h2 class="text-2xl font-bold text-blue-600"><a href="./altair.html" target=”_blank”>Altair</a></h2>
47-
<p>Demonstrates rendering altair plot as output of the py-script tag</p>
47+
<p>Demonstrates rendering <a href="https://altair-viz.github.io/" class="text-blue-600" target=”_blank”>Altair</a> plot as output of the py-script tag</p>
4848

4949
<h2 class="text-2xl font-bold text-blue-600"><a href="./folium.html" target=”_blank”>Folium</a></h2>
50-
<p>Demonstrates rendering Folium map as output of the py-script tag</p>
50+
<p>Demonstrates rendering <a href="https://python-visualization.github.io/folium/" class="text-blue-600" target=”_blank”>Folium</a> map as output of the py-script tag</p>
5151

5252
<br>
5353
<h2 class="text-3xl font-bold">JS Interaction</h2>
5454
<hr/>
5555

5656
<h2 class="text-2xl font-bold text-blue-600"><a href="./d3.html" target=”_blank”>Simple d3 visualization</a></h2>
57-
<p>Minimal d3 demo demonstrating how to create a visualization</p>
57+
<p>Minimal <a href="https://d3js.org/" class="text-blue-600" target=”_blank”>D3</a> demo demonstrating how to create a visualization</p>
5858

5959
<h2 class="text-2xl font-bold text-blue-600"><a href="./webgl/raycaster/index.html" target=”_blank”>Webgl Icosahedron Example</a></h2>
60-
<p>Demo showing how a Simple Webgl scene would work in PyScript</code> tag</p>
60+
<p>Demo showing how a Simple <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API" class="text-blue-600" target=”_blank”>WebGL</a> scene would work in PyScript</code> tag</p>
6161

6262

6363
<br>
6464
<h2 class="text-3xl font-bold">Visualizations & Dashboards</h2>
6565
<hr/>
6666
<h2 class="text-2xl font-bold text-blue-600"><a href="./bokeh.html" target=”_blank”>Simple Static Bokeh Plot</a></h2>
67-
<p>Minimal Bokeh demo demonstrating how to create a simple bokeh plot from code</p>
67+
<p>Minimal Bokeh demo demonstrating how to create a simple <a href="https://bokeh.org/" class="text-blue-600" target=”_blank”>Bokeh</a> plot from code</p>
6868

6969
<h2 class="text-2xl font-bold text-blue-600"><a href="./bokeh_interactive.html" target=”_blank”>Bokeh Interactive</a></h2>
70-
<p>Interactive demo using a Bokeh slider widget to dynamically change a value in the page
70+
<p>Interactive demo using a <a href="https://bokeh.org/" class="text-blue-600" target=”_blank”>Bokeh</a> slider widget to dynamically change a value in the page
7171

7272
WARNING: This examples takes a little longer to load. So be patient :)
7373
</p>
7474

7575
<h2 class="text-2xl font-bold text-blue-600"><a href="./panel_kmeans.html" target=”_blank”>KMeans Demo in Panel</a></h2>
76-
<p>Interactive KMeans Chart using Panel
76+
<p>Interactive KMeans Chart using <a href="https://panel.holoviz.org/" class="text-blue-600" target=”_blank”>Panel</a>
7777

7878
WARNING: This examples takes a little longer to load. So be patient :)
7979
</p>
8080

8181
<h2 class="text-2xl font-bold text-blue-600"><a href="./panel_stream.html" target=”_blank”>Streaming Demo in Panel</a></h2>
82-
<p>Interactive Streaming Table and Bokeh plot using Panel
82+
<p>Interactive Streaming Table and Bokeh plot using <a href="https://panel.holoviz.org/" class="text-blue-600" target=”_blank”>Panel</a>
8383

8484
WARNING: This examples takes a little longer to load. So be patient :)
8585
</p>
8686

8787
<h2 class="text-2xl font-bold text-blue-600"><a href="./panel.html" target=”_blank”>Simple Panel Demo</a></h2>
88-
<p>Simple demo showing Panel widgets interacting with parts of the page
88+
<p>Simple demo showing <a href="https://panel.holoviz.org/" class="text-blue-600" target=”_blank”>Panel</a> widgets interacting with parts of the page
8989

9090
WARNING: This examples takes a little longer to load. So be patient :)
9191
</p>
9292

9393
<h2 class="text-2xl font-bold text-blue-600"><a href="./panel_deckgl.html" target=”_blank”>NYC Taxi Data Panel DeckGL Demo</a></h2>
94-
<p>Interactive application exploring the NYC Taxi dataset using Panel and DeckGL
94+
<p>Interactive application exploring the NYC Taxi dataset using <a href="https://panel.holoviz.org/" class="text-blue-600" target=”_blank”>Panel</a> and <a href="https://deck.gl/" class="text-blue-600" target=”_blank”>DeckGL</a>
9595

9696
WARNING: This examples takes a little longer to load. So be patient :)
9797
</p>
9898

9999
<h2 class="text-2xl font-bold text-blue-600"><a href="./toga/freedom.html" target=”_blank”>Freedom Units!</a></h2>
100-
<p>A Toga application (a Fahrenheit to Celsius converter), rendered as a Single Page App</p>
100+
<p>A <a href="https://beeware.org/project/projects/libraries/toga/" class="text-blue-600" target=”_blank”>Toga</a> application (a Fahrenheit to Celsius converter), rendered as a Single Page App</p>
101101

102102
<h2 class="text-2xl font-bold text-blue-600"><a href="./numpy_canvas_fractals.html" target=”_blank”>Fractals with NumPy and canvas</a></h2>
103-
<p>Visualization of Mandelbrot and Julia sets with NumPy and HTML5 canvas</p>
103+
<p>Visualization of Mandelbrot and Julia sets with <a href="https://numpy.org/" class="text-blue-600" target=”_blank”>Numpy</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API" class="text-blue-600" target=”_blank”>HTML5 canvas</a></p>
104104

105105
</body>
106106
</html>

pyscriptjs/examples/micrograd_ai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import matplotlib.pyplot as plt
77
import numpy as np
8+
89
# cell
910
from micrograd.engine import Value
1011
from micrograd.nn import MLP, Layer, Neuron

pyscriptjs/src/interpreter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const loadInterpreter = async function (): Promise<any> {
1010
pyodide = await loadPyodide({
1111
stdout: console.log,
1212
stderr: console.log,
13+
fullStdLib: false
1314
});
1415

1516
// now that we loaded, add additional convenience functions

0 commit comments

Comments
 (0)