From dee3c80422725084f2cea09b998b0f7aaad33a60 Mon Sep 17 00:00:00 2001 From: Karduin <34542832+Karduin@users.noreply.github.com> Date: Tue, 6 Nov 2018 21:26:17 +0100 Subject: [PATCH] right align columns in tables change |:-------| to |------:| except w8-s8-av which is center --- w1/w1-s4-c2-interpreteur-et-notebooks.ipynb | 4 ++-- w1/w1-s4-c3-fibonacci-prompt.ipynb | 20 ++++++++-------- w1/w1-s5-c2-mots-cles.ipynb | 4 ++-- w1/w1-s6-c1-calculette.ipynb | 6 ++--- w3/w3-s1-c1-fichiers.ipynb | 4 ++-- w3/w3-s4-c2-cles-immuables.ipynb | 6 ++--- w4/w4-s2-c4-conditions-2.ipynb | 26 ++++++++++----------- w4/w4-s3-x2-taxes.ipynb | 12 +++++----- w7/w7-s03-c1-shape.ipynb | 4 ++-- w8/w8-s5-av.ipynb | 16 ++++++------- w8/w8-s8-av.ipynb | 6 ++--- 11 files changed, 54 insertions(+), 54 deletions(-) diff --git a/w1/w1-s4-c2-interpreteur-et-notebooks.ipynb b/w1/w1-s4-c2-interpreteur-et-notebooks.ipynb index 3326f3ab..ef1aeb5d 100644 --- a/w1/w1-s4-c2-interpreteur-et-notebooks.ipynb +++ b/w1/w1-s4-c2-interpreteur-et-notebooks.ipynb @@ -30,7 +30,7 @@ "metadata": {}, "source": [ "| Quoi | Avec quel outil |\n", - "|:----------------|:-----------------------------|\n", + "|----------------:|-----------------------------:|\n", "| fichier complet | `python3 .py` |\n", "| ligne à ligne | `python3` en mode interactif |\n", "|   | ou sous `ipython3` |\n", @@ -346,7 +346,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.0" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", diff --git a/w1/w1-s4-c3-fibonacci-prompt.ipynb b/w1/w1-s4-c3-fibonacci-prompt.ipynb index 2cf89d13..2c4fd827 100644 --- a/w1/w1-s4-c3-fibonacci-prompt.ipynb +++ b/w1/w1-s4-c3-fibonacci-prompt.ipynb @@ -51,15 +51,15 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "| n | fibonacci(n) |\n", - "|---|--------------|\n", - "| 0 | 1 |\n", - "| 1 | 1 |\n", - "| 2 | 2 |\n", - "| 3 | 3 |\n", - "| 4 | 5 |\n", - "| 5 | 8 |\n", - "| 6 | 13 |" + "| n | fibonacci(n) |\n", + "|---:|--------------:|\n", + "| 0 | 1 |\n", + "| 1 | 1 |\n", + "| 2 | 2 |\n", + "| 3 | 3 |\n", + "| 4 | 5 |\n", + "| 5 | 8 |\n", + "| 6 | 13 |" ] }, { @@ -184,7 +184,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.0" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", diff --git a/w1/w1-s5-c2-mots-cles.ipynb b/w1/w1-s5-c2-mots-cles.ipynb index c5c8c312..22c5afe9 100644 --- a/w1/w1-s5-c2-mots-cles.ipynb +++ b/w1/w1-s5-c2-mots-cles.ipynb @@ -91,7 +91,7 @@ "source": [ "\n", "|   |   |   |   |   |\n", - "|:----------|:---------|:--------|:-------------|:-------|\n", + "|----------:|---------:|--------:|-------------:|-------:|\n", "| **False** | await | else | import | pass |\n", "| **None** | break | except | in | raise |\n", "| **True** | class | finally | is | return |\n", @@ -152,7 +152,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.0" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", diff --git a/w1/w1-s6-c1-calculette.ipynb b/w1/w1-s6-c1-calculette.ipynb index b09d890d..ef6362d7 100644 --- a/w1/w1-s6-c1-calculette.ipynb +++ b/w1/w1-s6-c1-calculette.ipynb @@ -91,7 +91,7 @@ "Rappelez-vous des opérateurs suivants qui sont très pratiques :\n", "\n", "| code | opération |\n", - "|:-----|:----------|\n", + "|-----:|----------:|\n", "| `//` | quotient |\n", "| `%` | modulo |\n", "| `**` | puissance |" @@ -459,7 +459,7 @@ "De manière plus générale, pour convertir un objet en un entier, un flottant, ou une chaîne de caractères, on peut simplement appeler une fonction *built-in* qui porte le même nom que le type cible :\n", "\n", "| Type | Fonction |\n", - "|:---------|:----------|\n", + "|---------:|----------:|\n", "| Entier | `int` |\n", "| Flottant | `float` |\n", "| Complexe | `complex` |\n", @@ -650,7 +650,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.4" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", diff --git a/w3/w3-s1-c1-fichiers.ipynb b/w3/w3-s1-c1-fichiers.ipynb index 00ed3eb5..23bab3ee 100644 --- a/w3/w3-s1-c1-fichiers.ipynb +++ b/w3/w3-s1-c1-fichiers.ipynb @@ -302,7 +302,7 @@ "On voit donc que chaque bloc contient bien quatre caractères en comptant les sauts de ligne :\n", "\n", "| bloc # | contenu |\n", - "|:-------|:-------------------------------------------|\n", + "|-------:|-------------------------------------------:|\n", "| 0 | un `0`, un *newline*, un `1`, un *newline* |\n", "| 1 | un `1`, deux `0`, un *newline* |" ] @@ -477,7 +477,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.0" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", diff --git a/w3/w3-s4-c2-cles-immuables.ipynb b/w3/w3-s4-c2-cles-immuables.ipynb index 4c914488..40f7df8f 100644 --- a/w3/w3-s4-c2-cles-immuables.ipynb +++ b/w3/w3-s4-c2-cles-immuables.ipynb @@ -81,7 +81,7 @@ "Nous avons depuis le début du cours longuement insisté sur le caractère mutable ou immuable des différents types prédéfinis de Python. Vous devez donc à présent avoir au moins en partie ce tableau en tête :\n", "\n", "| Type | Mutable ? |\n", - "|:----------------|:----------|\n", + "|----------------:|----------:|\n", "| `int`, `float` | immuable |\n", "|`complex`,`bool` | immuable |\n", "|`str` | immuable |\n", @@ -239,7 +239,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.4" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", @@ -258,4 +258,4 @@ }, "nbformat": 4, "nbformat_minor": 1 -} \ No newline at end of file +} diff --git a/w4/w4-s2-c4-conditions-2.ipynb b/w4/w4-s2-c4-conditions-2.ipynb index 11b0d596..f0c09488 100644 --- a/w4/w4-s2-c4-conditions-2.ipynb +++ b/w4/w4-s2-c4-conditions-2.ipynb @@ -55,12 +55,12 @@ "source": [ "Ainsi parmi les notions que nous avons vues jusqu'ici, nous pouvons citer dans un ordre arbitraire :\n", "\n", - "| Instructions |   | Expressions|\n", - "|--------------|-|------------|\n", - "| affectation |   | appel de fonction | \n", - "| `import` |   |opérateurs `is`, `in`, `==`, ... |\n", - "| instruction `if` |   |expression conditionnelle|\n", - "| instruction `for` |  | compréhension(s) |" + "| Instructions |   | Expressions |\n", + "|------------------:|-------:|--------------------------------:|\n", + "| affectation |   | appel de fonction | \n", + "| `import` |   |opérateurs `is`, `in`, `==`, ... |\n", + "| instruction `if` |   |expression conditionnelle |\n", + "| instruction `for` |   | compréhension(s) |" ] }, { @@ -266,12 +266,12 @@ "source": [ "Nous avons déjà eu l'occasion de rencontrer la plupart des opérateurs de comparaison du langage, dont voici à nouveau les principaux :\n", "\n", - "| Famille |   |Exemples |\n", - "|---------|-|---------|\n", - "| Égalité |   |`==`, `!=`, `is`, `is not` |\n", - "| Appartenance |   | `in` |\n", - "| Comparaison |   | `<=`, `<`, `>`, `>=` |\n", - "| Logiques |   | `and`, `or`, `not` |" + "| Famille |   |Exemples |\n", + "|-------------:|-------:|--------------------------:|\n", + "| Égalité |   |`==`, `!=`, `is`, `is not` |\n", + "| Appartenance |   | `in` |\n", + "| Comparaison |   | `<=`, `<`, `>`, `>=` |\n", + "| Logiques |   | `and`, `or`, `not` |" ] }, { @@ -546,7 +546,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.0" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", diff --git a/w4/w4-s3-x2-taxes.ipynb b/w4/w4-s3-x2-taxes.ipynb index 3f075f3f..24262c42 100644 --- a/w4/w4-s3-x2-taxes.ipynb +++ b/w4/w4-s3-x2-taxes.ipynb @@ -52,12 +52,12 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "| Tranche | Revenu imposable | Taux |\n", - "|---------|------------------|------|\n", - "| Non imposable | jusque £11.500 | 0% |\n", - "| Taux de base | £11.501 à £45.000 | 20% |\n", - "| Taux élevé | £45.001 à £150.000 | 40% |\n", - "| Taux supplémentaire | au delà de £150.000\t| 45% |" + "| Tranche | Revenu imposable | Taux |\n", + "|--------------------:|--------------------:|------:|\n", + "| Non imposable | jusque £11.500 | 0% |\n", + "| Taux de base | £11.501 à £45.000 | 20% |\n", + "| Taux élevé | £45.001 à £150.000 | 40% |\n", + "| Taux supplémentaire | au delà de £150.000\t| 45% |" ] }, { diff --git a/w7/w7-s03-c1-shape.ipynb b/w7/w7-s03-c1-shape.ipynb index ebf38137..4c14e3ff 100644 --- a/w7/w7-s03-c1-shape.ipynb +++ b/w7/w7-s03-c1-shape.ipynb @@ -465,7 +465,7 @@ "metadata": {}, "source": [ "| *attribut* | *signification* | *exemple* |\n", - "|:-----------|:------------------------------|:-------------|\n", + "|-----------:|------------------------------:|-------------:|\n", "| `shape` | tuple des dimensions | `(3, 5, 7)` |\n", "| `ndim` | nombre dimensions | `3` |\n", "| `size` | nombre d'éléments | `3 * 5 * 7` |\n", @@ -533,7 +533,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.0" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", diff --git a/w8/w8-s5-av.ipynb b/w8/w8-s5-av.ipynb index c38bf7f4..d9272314 100644 --- a/w8/w8-s5-av.ipynb +++ b/w8/w8-s5-av.ipynb @@ -44,12 +44,12 @@ } }, "source": [ - "| instruction | classe d'objets | protocole | exemple | \n", - "|-------------|------------------|-----------|---------|\n", - "| `for` | itérables | `__iter__` | liste, ensemble |\n", - "| `with` | context managers | `__enter__` & `__exit__` | fichier |\n", - "| `dict[x]` | hashables | `__hash__` | *builtins* immuables |\n", - "| `await` | awaitables | `__await__` | objet coroutine |" + "| instruction | classe d'objets | protocole | exemple | \n", + "|------------:|------------------:|------------------------:|---------------------:|\n", + "| `for` | itérables | `__iter__` | liste, ensemble |\n", + "| `with` | context managers |`__enter__` & `__exit__` | fichier |\n", + "| `dict[x]` | hashables | `__hash__` | *builtins* immuables |\n", + "| `await` | awaitables | `__await__` | objet coroutine |" ] }, { @@ -662,7 +662,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.2" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", @@ -682,4 +682,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} \ No newline at end of file +} diff --git a/w8/w8-s8-av.ipynb b/w8/w8-s8-av.ipynb index 6f333422..44de99ca 100644 --- a/w8/w8-s8-av.ipynb +++ b/w8/w8-s8-av.ipynb @@ -282,7 +282,7 @@ "### Séquencement des jobs\n", "\n", "| | j0 (1) | j1(2) | j2(3) | j3(1) | j4(2) | j5(3) | j6(1) | j7(2) |\n", - "|-----|--------|-------|-------|-------|-------|-------|-------|-------|\n", + "|:---:|:------:|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|\n", "| 0-1 | `*` | `*` | `*` | `*` | | | | |\n", "| 1-2 | | `*` | `*` | | `*` | `*` | | |\n", "| 2-3 | | | `*` | | `*` | `*` | `*` | |\n", @@ -375,7 +375,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.2" + "version": "3.6.3" }, "livereveal": { "auto_select": "code", @@ -395,4 +395,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} \ No newline at end of file +}