diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index 0bbbe371b01e359e381e43239412d77bf53fb1fb..6903aa4ce87d9d6ae160c92a3fa57f21e5ff3689 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -1,5 +1,104 @@ { - "cells": [], + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Some mathematical calculations" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "0.8" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "def f(x,y):\n", + " if y != 0:\n", + " return x/y\n", + " else:\n", + " return x/(y+1e-9)\n", + "\n", + "f(4,5)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + " $$\\int_0^\\infty e^{-x^2} dx = \\frac{\\sqrt{\\pi}}{2}$$" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Partie 1: Creation of the list" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**A bullet list**:\n", + "\n", + "- the first ellemnt\n", + " -water\n", + " -LNAPL\n", + "\n", + "- the second element\n", + " -SER\n", + " -Polymer flooding\n", + "\n", + "**A nummbered list**:\n", + "\n", + "1. the first element\n", + "2. the second element" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# A code block" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Hello, world!\n" + ] + } + ], + "source": [ + "print(\"Hello, world!\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], "metadata": { "kernelspec": { "display_name": "Python 3", @@ -16,10 +115,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.3" + "version": "3.6.4" } }, "nbformat": 4, "nbformat_minor": 2 } -