diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index 82ae57e125192797c16acbd5ac95f0e4c17274c0..4c84f9b6bd15e63104440aaf1ed702d37e0bcc60 100644 --- a/module2/exo1/toy_notebook_fr.ipynb +++ b/module2/exo1/toy_notebook_fr.ipynb @@ -179,6 +179,87 @@ "%%R\n", "plot(cars)" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Persistance des variables ?" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[1] 1.5\n" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%%R\n", + "1.5 -> test\n", + "print(test)" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[1] 1.5\n" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%%R\n", + "print(test)" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "Error in plot(xy) : object 'xy' not found\n" + ] + } + ], + "source": [ + "%%R\n", + "plot(xy)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Oui de R à R pas depuis python." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": {