{ "metadata": { "name": "", "signature": "sha256:173d81599528a2e7bd06d9a95efbe29b8f056b715a0b4f7db1915d28f58a106f" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Courte introduction \u00e0 notebook" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Les documents **ipython notebook** sont constitu\u00e9s de cellules (**cell**) contenant soit du texte, soit du code ex\u00e9cutable." ] }, { "cell_type": "code", "collapsed": false, "input": [ "print \"Hello world!\"" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Hello world!\n" ] } ], "prompt_number": 1 }, { "cell_type": "markdown", "metadata": {}, "source": [ "La sortie des cellules de code est imprim\u00e9 juste en dessous, et permet d'imprimer autant du texte que des images. (Il n'est pas important de comprendre le code pour l'instant." ] }, { "cell_type": "code", "collapsed": false, "input": [ "%pylab inline\n", "from pylab import *\n", "\n", "x = linspace(0, 5, 10)\n", "y = x ** 2\n", "\n", "figure()\n", "plot(x, y, 'r')\n", "xlabel('x')\n", "ylabel('y')\n", "title('title')\n", "show()" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Populating the interactive namespace from numpy and matplotlib\n" ] }, { "metadata": {}, "output_type": "display_data", "png": "iVBORw0KGgoAAAANSUhEUgAAAXsAAAETCAYAAADXmaY8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHLZJREFUeJzt3Xl0VPXdx/F3QBRaAgaQ2EcCWFxYQiAI2ICB0bIjCCqb\nEJBN6xER7IOtxwcIVsSKGwhFKopAVJaDiBJMQXHYJBBLLdFWBQXCZggEJAskIbnPH1fDEgITmJnf\nzNzP65w5Zxhm5n4ZPZ/zPb/7W8Isy7IQEZGQVsl0ASIi4nsKexERB1DYi4g4gMJeRMQBFPYiIg6g\nsBcRcQCFvcjPMjIyCA8P52KzkStVqsQPP/zgx6pEvENhL47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hBh19k7zy6rW\nBQvsVa2xsXbAL1kCv/616epExCCFfSjYu/fMqtawMDvg//UvrWoVkVIK+2D1y6rWBQvsY/3697cD\nX6taReQCNGYfLAoK7G49NRU+/xzWrNGqVhEBNPUyuB04AFu2nHn8+9/22a1xcfaja1etahURQGEf\nPM7u2n8J9/z8M8EeFwdt2kD16qYrFZEApLAPVJfq2uPi7MO5NfYuIh5Q2AcCde0i4mMKexPUtYuI\nnynsfU1du4gEAIW9t6lrF5EAFHBhn5KSwoQJEyguLmbYsGH86U9/OrcYk2FfXAzZ2XD06LmPw4ft\nM1b93LW73W5cLpdPvjvY6Lc4Q7/FGfotzgiovXEKCgp45JFH2LRpE5GRkcTFxdGlSxdiY2O9eyHL\nskP5/NC+1CMnB2rWtE9nOvtRpw707AnPPuvXrl3/I5+h3+IM/RZn6LeoGL+F/datW2nWrBk33HAD\nAAMGDCA5OfniYV9cbJ+iVNHgDgsrG9q/POrXtzcIO//1a6+FypX99GuIiPiX38J+//79REVFlf65\nXr16uN3usm/83e/OhPaJE2W77Vq1zjyPirpwoP/qV/76Z4mIBAW/jdm/9957bNiwgTlz5gCwePFi\n3G43r7/++plidGNTROSyBMyYfb169di3b1/pn/ft23dOpw+XLlZERC6P344satOmDV999RUHDhyg\nqKiIpUuX0r17d39dXkTE0fzW2VetWpU5c+bQtWtXSkpKSEhIoFWrVv66vIiIowXEoqpLzb93khEj\nRpCcnEzdunVJT083XY5R+/btY/DgwRw7dozCwkJGjhzJk08+abosvzt16hTx8fGcPn2avLw8evbs\nySuvvGK6LKOKi4tp3bo19erV46OPPjJdjjENGzakRo0aVK5cmSpVqrBt27by32wZdurUKathw4bW\n/v37raKiIqt169bW9u3bTZdlzIYNG6zt27db0dHRpksx7scff7TS09Mty7KsnJwc6+abb7a+/PJL\nw1WZkZ+fb1mWZRUVFVm33367tW7dOsMVmfXSSy9ZDzzwgNWrVy/TpRjVsGFD6+jRox69129j9uU5\ne/79VVddVTr/3qni4+OJiIgwXUZAiIyMJDo6GoDq1asTExPDwYMHDVdlRrVq1QAoLCykuLiYSAcf\nXLN//35Wr17NqFGjNKkDzye2GA/7C82/379/v8GKJBDt2bOHtLQ07rjjDtOlGFFSUkLLli2JjIzk\nzjvvpGnTpqZLMmb8+PFMnz6dSpWMx5dxYWFhdO7cmZiYGGbNmnXR9xr/tTS3Xi4lNzeXfv36MWPG\nDMLDw02XY0SlSpX48ssv2b9/Pxs2bLjwgkQHWLVqFXXr1iU2NlZdPZCamsr27dv59NNPmT9/Pp98\n8km57zUe9p7MvxfnKioq4r777uOBBx6gT58+pssxrmbNmvTs2ZPU1FTTpRjx+eef8+GHH3LjjTcy\naNAg1q1bx9ChQ02XZUzdunUBuO6667j//vtJS0sr973Gw17z76U8lmUxcuRImjZtyvjx402XY8zR\no0fJyckB4OTJk6xdu5bmzZsbrsqM5557jn379rF7924WL17MXXfdxcKFC02XZUR+fj75+fkA5OXl\nkZKSQrNmzcp9v/GwP3v+fYsWLbj33nsdPf9+0KBBtGvXju+++46oqCjmz59vuiRjNm/eTFJSEp99\n9hmxsbHExsaSkpJiuiy/O3jwIB06dKBly5bExsbSqVMnevbsabqsgODkYeDMzEzi4uJK/7/o2LEj\nvXv3Lvf9ATHPXkREfMt4Zy8iIr6nsBcRcQCFvYiIAyjsRUQcQGEvchFpaWm0aNGCgoIC8vLyiI6O\n5j//+Y/pskQqTLNxRC5h4sSJnDp1ipMnTxIVFeXoXVkleCnsRS6hqKiI1q1bU61aNbZs2eLoud0S\nvDSMI3IJR44cIS8vj9zcXE6ePGm6HJHLos5e5BJ69+7NAw88wA8//MChQ4d47bXXTJckUmF+O5ZQ\nJBgtXLiQa665hoEDB1JSUkK7du1wu924XC7TpYlUiDp7EREH0Ji9iIgDKOxFRBxAYS8i4gAKexER\nB1DYi4g4gMJeRMQB/h8Yun6xTUzy3gAAAABJRU5ErkJggg==\n", "text": [ "" ] } ], "prompt_number": 4 }, { "cell_type": "markdown", "metadata": {}, "source": [ "Lorsqu'une cellule de code est ex\u00e9cut\u00e9, les variables contenu dans celles-ci sont acc\u00e8ssibles dans les cellules subs\u00e9quentes" ] }, { "cell_type": "code", "collapsed": false, "input": [ "print x" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "[ 0. 0.55555556 1.11111111 1.66666667 2.22222222 2.77777778\n", " 3.33333333 3.88888889 4.44444444 5. ]\n" ] } ], "prompt_number": 5 }, { "cell_type": "markdown", "metadata": {}, "source": [ "Remarquez que la variable `x` a \u00e9t\u00e9 d\u00e9fini \u00e0 la cellule pr\u00e9d\u00e9cente **In [4]**." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Les cellules contenant du texte permettent une mise en page plus flexible que de simples commentaires en ligne. Il est donc possible de r\u00e9diger un rapport (propre) contenant le code source. Cliquez sur cette cellules pour voir comment modifier le texte.\n", "\n", "###On peut \u00e9crire des titres\n", "\n", "* des \n", "* listes \n", "\n", "\n", "1. \u00e0 points \n", "2. ou num\u00e9rot\u00e9.\n", "\n", "**\u00c9diter du texte en gras** ou *en italique*\n", "\n", "> **Citer du texte** \n", "> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum\n", "\n", "ou int\u00e9grer du code (non ex\u00e9cutable) pour le commenter\n", "\n", " def function_simple(x):\n", " return x+1\n", "\n", "Et aussi (surtout?), on peut int\u00e9grer des fonctions math\u00e9matiques suivant la m\u00eame syntaxe qu'en LaTeX\n", "\n", "\\begin{equation}f(x) = \\sum_{i=0}^{m} w_ix_i + b\\end{equation}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Libre \u00e0 vous d'exp\u00e9rimenter avec l'interface notebook et de d\u00e9couvrir ses nombreux avantages. " ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Exercices python" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Maintenant, cr\u00e9ez une nouvelle cellule pour le code et commencez votre lecture du tutoriel python! [version fran\u00e7aise](http://www.afpy.org/doc/python/2.7/tutorial/) [version anglaise](http://docs.python.org/tutorial/)\n", "\n", "Lisez et reproduisez les exemples du tutoriel des parties suivantes: 1,3,4,5,6,7,8,10; en sautant les sous-parties: 3.1.3, 4.7.6, 5.8, 8.4, 8.5, 8.6, 10.5, 10.7, 10.10, 10.11, 10.12." ] }, { "cell_type": "code", "collapsed": false, "input": [], "language": "python", "metadata": {}, "outputs": [] } ], "metadata": {} } ] }