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
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,13 @@ pyscript.write('pi', f'π is approximately {pi:.3f}')
116
116
In addition to the[Python Standard Library](https://docs.python.org/3/library/) and
117
117
the`pyscript` module, many 3rd-party OSS packages will work out-of-the-box with PyScript.
118
118
In order to use them you will need to delcare the dependencies using the`<py-env>` in the
119
-
HTML head.
119
+
HTML head. You can also link to`.whl` files directly on disk like in our[toga example](https://github.com/pyscript/pyscript/blob/main/pyscriptjs/examples/toga/freedom.html)
For example, NumPy and Matplotlib are available. Notice here we're using`<py-script output="plot">`
122
128
as a shortcut, which takes the expression on the last line of the script and runs`pyscript.write('plot', fig)`.
@@ -149,4 +155,6 @@ fig
149
155
</py-script>
150
156
</body>
151
157
</html>
152
-
```
158
+
```
159
+
160
+
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 herehttps://github.com/pyodide/pyodide/tree/main/packages
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@
5
5
###tl;dr
6
6
PyScript is a Pythonic alternative to Scratch, JSFiddle or other "easy to use" programming frameworks, making the web a friendly, hackable, place where anyone can author interesting and interactive applications.
7
7
8
-
To demonstrate pyscript, see[the pyscript folder](pyscriptjs/README.md).
8
+
To get started see[GETTING-STARTED][GETTING-STARTED.md]
9
+
10
+
For examples see[the pyscript folder](pyscriptjs/README.md).
9
11
10
12
###Longer Version
11
13
PyScript is a meta project that aims to combine multiple open technologies to create a framework for users to use Python (and other languages) to create sophisticated applications in the browser. It highly integrate with the way the DOM works in the browser and allows users to add logic, in Python, in a way that feel natural to web as well as Python developers.
@@ -28,9 +30,9 @@ Check out the `/examples` folder for more examples on how to use it, all you nee
28
30
29
31
To contribute:
30
32
31
-
* clone the repo
33
+
* clone the repo`git clone https://github.com/pyscript/pyscript`
32
34
* cd into the main project folder with`cd pyscriptjs`
33
-
* install the dependencies with`npm install`
35
+
* install the dependencies with`npm install` - make sure to use npm version >= 16
34
36
* run`npm run dev` to build and run the dev server. This will also watch for changes and rebuild when a file is saved