Skip to content

Commit

Permalink
Pb redirection snippet elastic (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpramil committed Nov 5, 2023
1 parent ea9400a commit df6a66b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions content/modern-ds/elastic_intro.qmd
Expand Up @@ -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)
Expand Down Expand Up @@ -1012,4 +1008,4 @@ On n'a pas encore un appariemment très satisfaisant, en particulier sur les boi

<div class="alert alert-success" role="alert">
A vous, de calculer le nombre de calories de notre recette de course !
</div>
</div>

0 comments on commit df6a66b

Please sign in to comment.