8000 fixed some minor things related to examples while testing · YComputer/pyscript@4e66764 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e66764

Browse files
committed
fixed some minor things related to examples while testing
1 parent 788af88 commit 4e66764

File tree

8 files changed

+13
-6
lines changed

8 files changed

+13
-6
lines changed

pyscriptjs/examples/bokeh.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html><head>
22
<title>Bokeh Example</title>
33
<meta charset="iso-8859-1">
4+
<link rel="icon" type="image/x-icon" href="./favicon.png">
45
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.4.2.min.js"></script>
56
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.4.2.min.js"></script>
67
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.4.2.min.js"></script>
@@ -40,11 +41,7 @@ <h1>Bokeh Example</h1>
4041
p.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], size=15, line_color="navy", fill_color="orange", fill_alpha=0.5)
4142
p_json = json.dumps(json_item(p, "myplot"))
4243

43-
print("about to embed")
44-
4544
Bokeh.embed.embed_item(JSON.parse(p_json))
46-
47-
print ("Done embedding...")
4845
</py-script>
4946

5047
</body>

pyscriptjs/examples/bokeh_interactive.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html><head>
22
<title>Bokeh Example</title>
33
<meta charset="iso-8859-1">
4+
<link rel="icon" type="image/x-icon" href="./favicon.png">
45
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.4.2.js"></script>
56
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-gl-2.4.2.min.js"></script>
67
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.4.2.min.js"></script>

pyscriptjs/examples/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ <h2 class="text-2xl font-bold text-blue-600"><a href="./panel.html" target=”_b
9090
WARNING: This examples takes a little longer to load. So be patient :)
9191
</p>
9292

93+
<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
95+
96+
WARNING: This examples takes a little longer to load. So be patient :)
97+
</p>
98+
9399
<h2 class="text-2xl font-bold text-blue-600"><a href="./toga/freedom.html" target=”_blank”>Freedom Units!</a></h2>
94100
<p>A Toga application (a Fahrenheit to Celsius converter), rendered as a Single Page App</p>
95101

pyscriptjs/examples/panel.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<head>
33
<title>Panel Example</title>
44
<meta charset="iso-8859-1">
5+
<link rel="icon" type="image/x-icon" href="./favicon.png">
56
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.4.2.js"></script>
67
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.4.2.min.js"></script>
78
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.4.2.min.js"></script>

pyscriptjs/examples/panel_deckgl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5+
<link rel="icon" type="image/x-icon" href="./favicon.png">
56
<meta name="apple-mobile-web-app-capable" content="yes">
67
<meta name="apple-mobile-web-app-status-bar-style" content="default">
78
<meta name="theme-color" content="#0072b5">

pyscriptjs/examples/panel_kmeans.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5+
<link rel="icon" type="image/x-icon" href="./favicon.png">
56
<meta name="apple-mobile-web-app-capable" content="yes">
67
<meta name="apple-mobile-web-app-status-bar-style" content="default">
78
<meta name="theme-color" content="#000000">

pyscriptjs/examples/panel_stream.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<meta charset="utf-8">
5+
<link rel="icon" type="image/x-icon" href="./favicon.png">
66
<meta name="apple-mobile-web-app-capable" content="yes">
77
<meta name="apple-mobile-web-app-status-bar-style" content="default">
88
<meta name="theme-color" content="#000000">

pyscriptjs/src/components/pybox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class PyBox extends HTMLElement {
5454

5555
this.widths.forEach((width, index)=>{
5656
const node: ChildNode = mainDiv.childNodes[index];
57-
addClasses(node, [width, 'mx-4'])
57+
addClasses(node, [width, 'mx-1'])
5858

5959
})
6060

0 commit comments

Comments
 (0)
0