8000 remove fetching of pyscript.py from tutorial (#1036) · DindyalM/pyscriptErrors@4f05b5a · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f05b5a

Browse files
remove fetching of pyscript.py from tutorial (pyscript#1036)
* remove fetching of pyscript.py from tutorial * fix indentation
1 parent 9a5bf99 commit 4f05b5a

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

docs/tutorials/py-config-fetch.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ In this first step, we will create the `index.html` file and import both `pyscri
4242

4343
Now we will use the `fetch` configuration from `py-config` to fetch the `todo.py` and `utils.py` files from a remote server and store them in a local directory called `todo`. Here we will fetch files from different URLs, using a `fetch` per item.
4444

45-
Also, remember when we said that we needed three things? We actually need four things. We also need
46-
to fetch `pyscript.py` because we will use the `Element` class to interact with the DOM.
47-
48-
```{note}
49-
We are not going into in-depth as to why we need to fetch `pyscript.py` here. The short version is that PyScript isn't installed in the filesystem when we fetch the files.
50-
```
51-
52-
5345
```html
5446
<!DOCTYPE html>
5547
<html lang="en">
@@ -65,15 +57,12 @@ We are not going into in-depth as to why we need to fetch `pyscript.py` here. Th
6557

6658
<body>
6759
<py-config>
68-
[[fetch]]
69-
from = "https://raw.githubusercontent.com/pyscript/pyscript/main/pyscriptjs/src/python/"
70-
files = ["pyscript.py"]
71-
[[fetch]]
72-
from = "https://pyscript.net/examples/"
73-
files = ["utils.py"]
74-
[[fetch]]
75-
from = "https://gist.githubusercontent.com/FabioRosado/faba0b7f6ad4438b07c9ac567c73b864/raw/37603b76dc7ef7997bf36781ea0116150f727f44/"
76-
files = ["todo.py"]
60+
[[fetch]]
61+
from = "https://pyscript.net/examples/"
62+
files = ["utils.py"]
63+
[[fetch]]
64+
from = "https://gist.githubusercontent.com/FabioRosado/faba0b7f6ad4438b07c9ac567c73b864/raw/37603b76dc7ef7997bf36781ea0116150f727f44/"
65+
files = ["todo.py"]
7766
</py-config>
7867
</body>
7968
</html>
@@ -100,9 +89,6 @@ Now we will create the todo elements in the `body` of the `index.html` file.
10089

10190
<body>
10291
<py-config>
103-
[[fetch]]
104-
from = "https://raw.githubusercontent.com/pyscript/pyscript/main/pyscriptjs/src/python/"
105-
files = ["pyscript.py"]
10692
[[fetch]]
10793
from = "https://pyscript.net/examples/"
10894
files = ["utils.py"]
@@ -155,9 +141,6 @@ This is where the magic happens. We can import the `todo.py` file by adding it a
155141

156142
<body>
157143
<py-config>
158-
[[fetch]]
159-
from = "https://raw.githubusercontent.com/pyscript/pyscript/main/pyscriptjs/src/python/"
160-
files = ["pyscript.py"]
161144
[[fetch]]
162145
from = "https://pyscript.net/examples/"
163146
files = ["utils.py"]

0 commit comments

Comments
 (0)
0