You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GETTING-STARTED.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This page will guide you through getting started with PyScript.
7
7
PyScript does not require any development environment other
8
8
than a web browser. We recommend using Chrome.
9
9
10
-
If you're using [VSCode](https://code.visualstudio.com/) the
10
+
If you're using [VSCode](https://code.visualstudio.com/), the
11
11
[Live Server extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)
12
12
can be used to reload the page as you edit the HTML file.
13
13
@@ -16,16 +16,16 @@ can be used to reload the page as you edit the HTML file.
16
16
There is no installation required. In this document we'll use
17
17
the PyScript assets served on https://pyscript.net.
18
18
19
-
If you want to download the source and build it yourself follow
19
+
If you want to download the source and build it yourself, follow
20
20
the instructions in the README.md file.
21
21
22
22
## Your first PyScript HTML file
23
23
24
-
Here's a "Hello, world!" example using PyScript
24
+
Here's a "Hello, world!" example using PyScript.
25
25
26
26
Using your favorite editor create a new file called `hello.html` in
27
-
the same directory as your PyScript JavaScript and CSS files with the
28
-
following content and open the file in your web browser. You can typically
27
+
the same directory as your PyScript, JavaScript, and CSS files with the
28
+
following content, and open the file in your web browser. You can typically
29
29
open an HTML by double clicking it in your file explorer.
30
30
31
31
```html
@@ -124,7 +124,7 @@ HTML head. You can also link to `.whl` files directly on disk like in our [toga
124
124
</py-env>
125
125
```
126
126
127
-
If your `.whl` is not a pure Python wheel then open a PR or issue with [pyodide](https://github.com/pyodide/pyodide) to get it added here https://github.com/pyodide/pyodide/tree/main/packages. If there's enough popular demand the pyodide team will likely work on supporting your package, regardless things will likely move faster if you make the PR and consult with the team to get unblocked.
127
+
If your `.whl` is not a pure Python wheel, then open a PR or issue with [pyodide](https://github.com/pyodide/pyodide) to get it added here https://github.com/pyodide/pyodide/tree/main/packages. If there's enough popular demand, the pyodide team will likely work on supporting your package, regardless things will likely move faster if you make the PR and consult with the team to get unblocked.
128
128
129
129
For example, NumPy and Matplotlib are available. Notice here we're using `<py-script output="plot">`
130
130
as a shortcut, which takes the expression on the last line of the script and runs `pyscript.write('plot', fig)`.
0 commit comments