From 4521f481a785388b365fd2db79070676175464bd Mon Sep 17 00:00:00 2001 From: 0a35d458c4dfeaae90cc26c29bebf511 <0a35d458c4dfeaae90cc26c29bebf511@app-learninglab.inria.fr> Date: Thu, 9 Apr 2020 12:35:04 +0000 Subject: [PATCH] Essais --- module2/exo1/toy_notebook_fr.ipynb | 81 ++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/module2/exo1/toy_notebook_fr.ipynb b/module2/exo1/toy_notebook_fr.ipynb index 82ae57e..4c84f9b 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": { -- 2.18.1