From d1e0e20a5be458c7c59d28adc8816699996c73e5 Mon Sep 17 00:00:00 2001 From: Sebastien Gilles <sebastien.gilles@inria.fr> Date: Mon, 11 Feb 2019 16:33:37 +0100 Subject: [PATCH] Remove a superfluous line in some TP notebooks. --- 2-ObjectProgramming/1b-TP.ipynb | 2 +- 3-Operators/1b-TP.ipynb | 4 +--- 4-Templates/1b-TP.ipynb | 4 +--- TP/HowTo.ipynb | 16 +++++++++++++--- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/2-ObjectProgramming/1b-TP.ipynb b/2-ObjectProgramming/1b-TP.ipynb index 24eaf44..61f968b 100644 --- a/2-ObjectProgramming/1b-TP.ipynb +++ b/2-ObjectProgramming/1b-TP.ipynb @@ -25,7 +25,7 @@ "\n", "[This notebook](/notebooks/TP/HowTo.ipynb) explains very briefly your options to run the TP.\n", "\n", - "We will start from the solution to exercice 10 of the procedural programming TP. (we let aside pointer functions and writing into an output file done in exercices 11 and 12). `initial_file.cpp` in the TP directory is a copy to the solution of this exercice (symbolic link wouldn't have worked with Docker).\n", + "`initial_file.cpp` is the solution to the exercice 10 (we drop the writing into an external file and the function pointers).\n", "\n", "\n", "### EXERCICE 13: introduce `PowerOfTwoApprox` structure\n", diff --git a/3-Operators/1b-TP.ipynb b/3-Operators/1b-TP.ipynb index 95c598d..6853ad7 100644 --- a/3-Operators/1b-TP.ipynb +++ b/3-Operators/1b-TP.ipynb @@ -23,9 +23,7 @@ "source": [ "### Introduction\n", "\n", - "[This notebook](/notebooks/TP/HowTo.ipynb) explains very briefly your options to run the TP.\n", - "\n", - "We will start from the solution to exercice 30 of the procedural object TP. `initial_file.cpp` in the TP directory is a copy to the solution of this exercice (symbolic link wouldn't have worked with Docker)." + "[This notebook](/notebooks/TP/HowTo.ipynb) explains very briefly your options to run the TP." ] }, { diff --git a/4-Templates/1b-TP.ipynb b/4-Templates/1b-TP.ipynb index 3ec7e8e..1962324 100644 --- a/4-Templates/1b-TP.ipynb +++ b/4-Templates/1b-TP.ipynb @@ -23,9 +23,7 @@ "source": [ "### Introduction\n", "\n", - "[This notebook](/notebooks/TP/HowTo.ipynb) explains very briefly your options to run the TP.\n", - "\n", - "We will start from the solution to exercice 36 of the procedural object TP. `initial_file.cpp` in the TP directory is a copy to the solution of this exercice (symbolic link wouldn't have worked with Docker)." + "[This notebook](/notebooks/TP/HowTo.ipynb) explains very briefly your options to run the TP.\n" ] }, { diff --git a/TP/HowTo.ipynb b/TP/HowTo.ipynb index 9825c82..3fd3cc8 100644 --- a/TP/HowTo.ipynb +++ b/TP/HowTo.ipynb @@ -7,11 +7,21 @@ "# [Getting started in C++](/) - [How to do the TP](/notebooks/TP/HowTo.ipynb)" ] }, + { + "cell_type": "markdown", + "metadata": { + "toc": true + }, + "source": [ + "<h1>Table of contents<span class=\"tocSkip\"></span></h1>\n", + "<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#How-to-do-the-exercices?\" data-toc-modified-id=\"How-to-do-the-exercices?-1\">How to do the exercices?</a></span><ul class=\"toc-item\"><li><span><a href=\"#Don't-do-the-TP-in-Jupyter-notebook!\" data-toc-modified-id=\"Don't-do-the-TP-in-Jupyter-notebook!-1.1\">Don't do the TP in Jupyter notebook!</a></span></li><li><span><a href=\"#Online-compilers\" data-toc-modified-id=\"Online-compilers-1.2\">Online compilers</a></span></li><li><span><a href=\"#On-your-local-machine\" data-toc-modified-id=\"On-your-local-machine-1.3\">On your local machine</a></span><ul class=\"toc-item\"><li><span><a href=\"#How-to-compile-and-run-the-program?\" data-toc-modified-id=\"How-to-compile-and-run-the-program?-1.3.1\">How to compile and run the program?</a></span></li><li><span><a href=\"#For-each-exercice\" data-toc-modified-id=\"For-each-exercice-1.3.2\">For each exercice</a></span></li></ul></li><li><span><a href=\"#With-Docker\" data-toc-modified-id=\"With-Docker-1.4\">With Docker</a></span></li></ul></li></ul></div>" + ] + }, { "cell_type": "markdown", "metadata": {}, "source": [ - "## Introduction\n", + "## How to do the exercices?\n", "\n", "TPs are interspeded throughout the lecture, and are really recommended as it is a way to check you truly assimilated what was explained in the notebooks (in programming rather often things seem easy... until you try to do them by yourself!)\n", "\n", @@ -27,7 +37,7 @@ "\n", "[Coliru](https://coliru.stacked-crooked.com/) or [Wandbox](https://wandbox.org/) provides online compilers in which you may paste code, compile it and then run it.\n", "\n", - "They are clearly the easiest way to go that we recommend heavily! (except for the [TP related to file structure](/notebooks/6-InRealEnvironment/2-b-TP.ipynb) for which we will need to work locally). \n", + "They are clearly the easiest way to go (except for the [TP related to file structure](/notebooks/6-InRealEnvironment/2-b-TP.ipynb) for which we will need to work locally). \n", "\n", "### On your local machine\n", "\n", @@ -138,7 +148,7 @@ "skip_h1_title": true, "title_cell": "Table of contents", "title_sidebar": "Table of contents", - "toc_cell": false, + "toc_cell": true, "toc_position": {}, "toc_section_display": true, "toc_window_display": true -- GitLab