Deuxième version.

parent 13bd61dd
...@@ -11,12 +11,15 @@ ...@@ -11,12 +11,15 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Completion sur noms de variables" "## Premier groupe d'essais effectués\n",
"- Completion sur noms de variables\n",
"- Non persistance des variables et de leur état\n",
"- Colorisation du code"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": 1,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -26,7 +29,7 @@ ...@@ -26,7 +29,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": 2,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -35,7 +38,7 @@ ...@@ -35,7 +38,7 @@
"25" "25"
] ]
}, },
"execution_count": 5, "execution_count": 2,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -44,35 +47,79 @@ ...@@ -44,35 +47,79 @@
"Totoche" "Totoche"
] ]
}, },
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"35"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# En python\n",
"Totoche += 5\n",
"Totoche"
]
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"En Python, ça fonctionne." "En Python, les trois points fonctionnent."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Tentative d'exécution de code R"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": null,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [],
"source": [
"# En R\n",
"%load_ext rpy2.ipython\n",
"%%R\n",
"plot(cars)"
]
},
{ {
"name": "stdout", "cell_type": "markdown",
"output_type": "stream", "metadata": {},
"text": [ "source": [
"The rpy2.ipython extension is already loaded. To reload it, use:\n", "Problème pour exécuter du code R.\n",
" %reload_ext rpy2.ipython\n" "Tentative de résolution en exécutant la partie Python avec le kernel Python et la partie R avec le kernel R."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Exécution de code R pour vérifier la possibilité de générer des graphiques, comme sur la vidéo"
] ]
}, },
{ {
"ename": "NameError", "cell_type": "code",
"evalue": "name 'plot' is not defined", "execution_count": 5,
"output_type": "error", "metadata": {},
"traceback": [ "outputs": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", {
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", "name": "stderr",
"\u001b[0;32m<ipython-input-3-cc96db778659>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_line_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'load_ext'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'rpy2.ipython'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;31m#%%R\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0mplot\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcars\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "output_type": "stream",
"\u001b[0;31mNameError\u001b[0m: name 'plot' is not defined" "text": [
"UsageError: Line magic function `%%R` not found.\n"
] ]
} }
], ],
...@@ -86,10 +133,7 @@ ...@@ -86,10 +133,7 @@
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": []
"Problème pour exécuter du code R.\n",
"Tentative de résolution en exécutant la partie Python avec le kernel Python et la partie R avec le kernel R."
]
} }
], ],
"metadata": { "metadata": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment