File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1
1
# pyscript-local-runtime
2
+
3
+ This downloads PyScript and all runtime dependencies locally.
4
+
5
+ Download Runtime...
6
+ ``` shell
7
+ cd runtime
8
+ source setup.sh
9
+ ```
10
+
11
+ Combined with a ` <py-config> ` as follows:
12
+ ``` html
13
+ <py-config >
14
+ [[runtimes]]
15
+ src = "runtime/pyodide.js"
16
+ name = "pyodide-0.21.3"
17
+ lang = "python"
18
+ </py-config >
19
+ ```
20
+
21
+ And PyScript loaded locally like so:
22
+ ``` html
23
+ <link rel =" stylesheet" href =" runtime/pyscript.css" />
24
+ <script defer src =" runtime/pyscript.js" ></script >
25
+ ```
26
+
27
+ Everything you need is now local. Perfect for Extensions, Offline, Environments where the Internet is not available.
28
+
29
+ Credits to https://github.com/PFython/ChromeAWSOM for the question.
30
+
31
+ Regards,
32
+
33
+ Ted :)
You can’t perform that action at this time.
0 commit comments