8000 pyscript.net · Srivari07/pyscript@09631bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 09631bb

Browse files
committed
pyscript.net
1 parent 2426533 commit 09631bb

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

GETTING-STARTED.md

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,15 @@ can be used to reload the page as you edit the HTML file.
1313

1414
## Installation
1515

16-
First, go to https://pyscript.net and download the PyScript assets.
17-
Unzip the archive to a directory where you wish to write PyScript-enabled
18-
HTML files. You should then have four files in your directory.
16+
There is no installation required. In this document we'll use
17+
the PyScript assets served on https://pyscript.net.
1918

20-
```
21-
├── ./
22-
│ ├── pyscript.css
23-
│ ├── pyscript.js
24-
│ └── pyscript.js.map
25-
│ ├── pyscript.min.js
26-
```
19+
If you want to download the source and build it yourself follow
20+
the instructions in the README.md file.
2721

2822
## Your first PyScript HTML file
2923

30-
Here's a "Hello, world!" example using PyScript using the assets you
31-
downloaded from https://pyscript.net.
24+
Here's a "Hello, world!" example using PyScript
3225

3326
Using your favorite editor create a new file called `hello.html` in
3427
the same directory as your PyScript JavaScript and CSS files with the
@@ -38,8 +31,8 @@ open an HTML by double clicking it in your file explorer.
3831
```html
3932
<html>
4033
<head>
41-
<link rel="stylesheet" href="pyscript.css" />
42-
<script defer src="pyscript.min.js"></script>
34+
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
35+
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
4336
</head>
4437
<body> <py-script> print('Hello, World!') </py-script> </body>
4538
</html>
@@ -58,8 +51,8 @@ example we can compute π.
5851
```html
5952
<html>
6053
<head>
61-
<link rel="stylesheet" href="pyscript.css" />
62-
<script defer src="pyscript.min.js"></script>
54+
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
55+
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
6356
</head>
6457
<body>
6558
<py-script>
@@ -90,8 +83,8 @@ the `<py-script>` tag write to.
9083
```html
9184
<html>
9285
<head>
93-
<link rel="stylesheet" href="pyscript.css" />
94-
<script defer src="pyscript.min.js"></script>
86+
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
87+
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
9588
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
9689
</head>
9790

@@ -130,8 +123,8 @@ as a shortcut, which takes the expression on the last line of the script and run
130123
```html
131124
<html>
132125
<head>
133-
<link rel="stylesheet" href="pyscript.css" />
134-
<script defer src="pyscript.min.js"></script>
126+
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
127+
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
135128
<py-env>
136129
- numpy
137130
- matplotlib
@@ -178,8 +171,8 @@ In the HTML tag `<py-env>` paths to local modules are provided in the
178171
```html
179172
<html>
180173
<head>
181-
<link rel="stylesheet" href="pyscript.css" />
182-
<script defer src="pyscript.min.js"></script>
174+
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
175+
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
183176
<py-env>
184177
- numpy
185178
- matplotlib

0 commit comments

Comments
 (0)
0