From 4f05b5afc65f413d3c0deda1b8d1e6aa8b7062f9 Mon Sep 17 00:00:00 2001 From: Madhur Tandon <20173739+madhur-tandon@users.noreply.github.com> Date: Sat, 10 Dec 2022 01:04:04 +0530 Subject: [PATCH] remove fetching of pyscript.py from tutorial (#1036) * remove fetching of pyscript.py from tutorial * fix indentation --- docs/tutorials/py-config-fetch.md | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/docs/tutorials/py-config-fetch.md b/docs/tutorials/py-config-fetch.md index 8c5fa8c2..3831d8fa 100644 --- a/docs/tutorials/py-config-fetch.md +++ b/docs/tutorials/py-config-fetch.md @@ -42,14 +42,6 @@ In this first step, we will create the `index.html` file and import both `pyscri 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. -Also, remember when we said that we needed three things? We actually need four things. We also need -to fetch `pyscript.py` because we will use the `Element` class to interact with the DOM. - -```{note} -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. -``` - - ```html @@ -65,15 +57,12 @@ We are not going into in-depth as to why we need to fetch `pyscript.py` here. Th - [[fetch]] - from = "https://raw.githubusercontent.com/pyscript/pyscript/main/pyscriptjs/src/python/" - files = ["pyscript.py"] - [[fetch]] - from = "https://pyscript.net/examples/" - files = ["utils.py"] - [[fetch]] - from = "https://gist.githubusercontent.com/FabioRosado/faba0b7f6ad4438b07c9ac567c73b864/raw/37603b76dc7ef7997bf36781ea0116150f727f44/" - files = ["todo.py"] + [[fetch]] + from = "https://pyscript.net/examples/" + files = ["utils.py"] + [[fetch]] + from = "https://gist.githubusercontent.com/FabioRosado/faba0b7f6ad4438b07c9ac567c73b864/raw/37603b76dc7ef7997bf36781ea0116150f727f44/" + files = ["todo.py"] @@ -100,9 +89,6 @@ Now we will create the todo elements in the `body` of the `index.html` file. - [[fetch]] - from = "https://raw.githubusercontent.com/pyscript/pyscript/main/pyscriptjs/src/python/" - files = ["pyscript.py"] [[fetch]] from = "https://pyscript.net/examples/" files = ["utils.py"] @@ -155,9 +141,6 @@ This is where the magic happens. We can import the `todo.py` file by adding it a - [[fetch]] - from = "https://raw.githubusercontent.com/pyscript/pyscript/main/pyscriptjs/src/python/" - files = ["pyscript.py"] [[fetch]] from = "https://pyscript.net/examples/" files = ["utils.py"]