File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
content/course/manipulation/01_numpy Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ la [cheatsheet numpy](https://www.datacamp.com/community/blog/python-numpy-cheat
45
45
sur une fonction.
46
46
47
47
Dans ce chapitre, on ne dérogera pas à la convention qui s'est imposée
48
- d'importer ` numpy ` de la
48
+ d'importer ` numpy ` sous le nom ` np ` . Cela se fait de la
49
49
manière suivante:
50
50
51
51
``` {python import np}
Original file line number Diff line number Diff line change 3
3
SECTION=$1
4
4
CHAPTER=$2
5
5
6
+ # FILE="notebooks/course/manipulation/01_numpy.ipynb"
7
+
6
8
WORK_DIR=" /home/onyxia/work"
7
9
CLONE_DIR=" ${WORK_DIR} /repo-git"
8
10
COURSE_DIR=" ${CLONE_DIR} /notebooks/course"
Original file line number Diff line number Diff line change @@ -55,10 +55,13 @@ def reminder_badges(
55
55
nbviewer_link = f'<a href="{ nbviewer_link } " target="_blank" rel="noopener">' \
56
56
'<img src="https://img.shields.io/badge/Visualize-nbviewer-blue?logo=Jupyter" alt="nbviewer"></a>'
57
57
58
- onyxia_link_launcher = "https://datalab.sspcloud.fr/launcher/ide/jupyter" \
58
+ section_latest = section .rsplit ("/" , maxsplit = 1 )[- 1 ]
59
+ chapter_no_extension = re .sub (".ipynb" ,"" , chapter )
60
+
61
+ onyxia_link_launcher = "https://datalab.sspcloud.fr/launcher/ide/jupyter-python" \
59
62
"?autoLaunch=true&onyxia.friendlyName=%C2%ABpython-datascience%C2%BB" \
60
63
"&init.personalInit=%C2%ABhttps%3A%2F%2Fraw.githubusercontent.com%2Flinogaliana%2Fpython-datascientist%2Fmaster%2Fsspcloud%2Finit-jupyter.sh%C2%BB" \
61
- f"&init.personalInitArgs=%C2%AB{ section } / { chapter } %C2%BB&security.allowlist.enabled=false"
64
+ f"&init.personalInitArgs=%C2%AB{ section_latest } %20 { chapter_no_extension } %C2%BB&security.allowlist.enabled=false"
62
65
63
66
if type == "md" :
64
67
onyxia_link = "[![Onyxia]" \
You can’t perform that action at this time.
0 commit comments