diff --git a/GETTING-STARTED.md b/GETTING-STARTED.md index 43a1d2c4..c48b1b81 100644 --- a/GETTING-STARTED.md +++ b/GETTING-STARTED.md @@ -13,22 +13,15 @@ can be used to reload the page as you edit the HTML file. ## Installation -First, go to https://pyscript.net and download the PyScript assets. -Unzip the archive to a directory where you wish to write PyScript-enabled -HTML files. You should then have four files in your directory. +There is no installation required. In this document we'll use +the PyScript assets served on https://pyscript.net. -``` -├── ./ -│ ├── pyscript.css -│ ├── pyscript.js -│ └── pyscript.js.map -│ ├── pyscript.min.js -``` +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 using the assets you -downloaded from https://pyscript.net. +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 @@ -38,8 +31,8 @@ open an HTML by double clicking it in your file explorer. ```html - - + + print('Hello, World!') @@ -58,8 +51,8 @@ example we can compute π. ```html - - + + @@ -90,8 +83,8 @@ the `` tag write to. ```html - - + + @@ -130,8 +123,8 @@ as a shortcut, which takes the expression on the last line of the script and run ```html - - + + - numpy - matplotlib @@ -178,8 +171,8 @@ In the HTML tag `` paths to local modules are provided in the ```html - - + + - numpy - matplotlib