From df6a66b6e1a65d8d292ef3884fe36b08fa1b5a61 Mon Sep 17 00:00:00 2001 From: Julien PRAMIL <100139338+jpramil@users.noreply.github.com> Date: Sun, 5 Nov 2023 10:56:31 +0100 Subject: [PATCH] Pb redirection snippet elastic (#445) --- content/modern-ds/elastic_intro.qmd | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/content/modern-ds/elastic_intro.qmd b/content/modern-ds/elastic_intro.qmd index 06750668d..4a85b783f 100644 --- a/content/modern-ds/elastic_intro.qmd +++ b/content/modern-ds/elastic_intro.qmd @@ -106,11 +106,7 @@ version sur le dépôt `Github` du cours ```{python} #| eval: false import requests -baseurl = "https://raw.githubusercontent.com/linogaliana/python-datascientist" -branch = "master" -path = "content/modern-ds/elastic_intro/functions.py" - -url = f"{baseurl}/{branch}/{path}" +url = "https://github.com/linogaliana/python-datascientist/raw/master/content/modern-ds/functions.py" r = requests.get(url, allow_redirects=True) open('functions.py', 'wb').write(r.content) @@ -1012,4 +1008,4 @@ On n'a pas encore un appariemment très satisfaisant, en particulier sur les boi \ No newline at end of file +