mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
Add punctuation marks (#222)
This commit is contained in:
@@ -7,7 +7,7 @@ This page will guide you through getting started with PyScript.
|
||||
PyScript does not require any development environment other
|
||||
than a web browser. We recommend using Chrome.
|
||||
|
||||
If you're using [VSCode](https://code.visualstudio.com/) the
|
||||
If you're using [VSCode](https://code.visualstudio.com/), the
|
||||
[Live Server extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)
|
||||
can be used to reload the page as you edit the HTML file.
|
||||
|
||||
@@ -16,16 +16,16 @@ can be used to reload the page as you edit the HTML file.
|
||||
There is no installation required. In this document we'll use
|
||||
the PyScript assets served on https://pyscript.net.
|
||||
|
||||
If you want to download the source and build it yourself follow
|
||||
If you want to download the source and build it yourself, follow
|
||||
the instructions in the README.md file.
|
||||
|
||||
## Your first PyScript HTML file
|
||||
|
||||
Here's a "Hello, world!" example using PyScript
|
||||
Here's a "Hello, world!" example using PyScript.
|
||||
|
||||
Using your favorite editor create a new file called `hello.html` in
|
||||
the same directory as your PyScript JavaScript and CSS files with the
|
||||
following content and open the file in your web browser. You can typically
|
||||
the same directory as your PyScript, JavaScript, and CSS files with the
|
||||
following content, and open the file in your web browser. You can typically
|
||||
open an HTML by double clicking it in your file explorer.
|
||||
|
||||
```html
|
||||
@@ -124,7 +124,7 @@ HTML head. You can also link to `.whl` files directly on disk like in our [toga
|
||||
</py-env>
|
||||
```
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
For example, NumPy and Matplotlib are available. Notice here we're using `<py-script output="plot">`
|
||||
as a shortcut, which takes the expression on the last line of the script and runs `pyscript.write('plot', fig)`.
|
||||
|
||||
Reference in New Issue
Block a user