{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "25b1d95f",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:48.967822Z",
"iopub.status.busy": "2023-03-28T08:45:48.967308Z",
"iopub.status.idle": "2023-03-28T08:45:50.089738Z",
"shell.execute_reply": "2023-03-28T08:45:50.090120Z"
},
"extensions": {
"jupyter_dashboards": {
"version": 1,
"views": {
"grid_default": {},
"report_default": {
"hidden": true
}
}
}
},
"papermill": {
"duration": 1.172629,
"end_time": "2023-03-28T08:45:50.090262",
"exception": false,
"start_time": "2023-03-28T08:45:48.917633",
"status": "completed"
},
"slideshow": {
"slide_type": "skip"
},
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
" \n",
" "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from IPython.display import Markdown as md\n",
"from IPython.display import display, HTML\n",
"import pandas as pd\n",
"import numpy as np\n",
"import ipywidgets as widgets\n",
"from pathlib import Path\n",
"from datetime import datetime\n",
"from recopytex import flat_df_students, pp_q_scores\n",
"from datetime import datetime\n",
"\n",
"\n",
"import chart_studio.plotly as py\n",
"import plotly.graph_objects as go\n",
"import plotly.figure_factory as ff\n",
"\n",
"from plotly.offline import iplot, init_notebook_mode\n",
"init_notebook_mode()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "3a865047",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:50.301876Z",
"iopub.status.busy": "2023-03-28T08:45:50.300587Z",
"iopub.status.idle": "2023-03-28T08:45:50.303792Z",
"shell.execute_reply": "2023-03-28T08:45:50.303242Z"
},
"extensions": {
"jupyter_dashboards": {
"version": 1,
"views": {
"grid_default": {},
"report_default": {
"hidden": true
}
}
}
},
"papermill": {
"duration": 0.119278,
"end_time": "2023-03-28T08:45:50.303910",
"exception": false,
"start_time": "2023-03-28T08:45:50.184632",
"status": "completed"
},
"slideshow": {
"slide_type": "skip"
},
"tags": [
"parameters"
]
},
"outputs": [],
"source": [
"tribe = \"ES\"\n",
"assessment = \"ds2\"\n",
"date = \"14/10/19\"\n",
"csv_file = Path(f\"../{tribe}/191014_{assessment}.csv\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "77ffd15f",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:50.483585Z",
"iopub.status.busy": "2023-03-28T08:45:50.483172Z",
"iopub.status.idle": "2023-03-28T08:45:50.485037Z",
"shell.execute_reply": "2023-03-28T08:45:50.484649Z"
},
"papermill": {
"duration": 0.091772,
"end_time": "2023-03-28T08:45:50.485115",
"exception": false,
"start_time": "2023-03-28T08:45:50.393343",
"status": "completed"
},
"tags": [
"injected-parameters"
]
},
"outputs": [],
"source": [
"# Parameters\n",
"tribe = \"2gt1\"\n",
"assessment = \"Dm2\"\n",
"date = \"27/03/23\"\n",
"csv_file = \"/home/lafrite/Cours/2022-2023/Notes/2gt1/230327_DM2.csv\"\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "63832c37",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:50.668808Z",
"iopub.status.busy": "2023-03-28T08:45:50.668381Z",
"iopub.status.idle": "2023-03-28T08:45:50.670125Z",
"shell.execute_reply": "2023-03-28T08:45:50.670479Z"
},
"papermill": {
"duration": 0.095997,
"end_time": "2023-03-28T08:45:50.670584",
"exception": false,
"start_time": "2023-03-28T08:45:50.574587",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/lafrite/Cours/2022-2023/Notes/2gt1/230327_DM2\n"
]
}
],
"source": [
"date = datetime.strptime(date, \"%d/%m/%y\")\n",
"output_path = Path(csv_file[:-4])\n",
"print(output_path)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "2a41f502",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:50.857651Z",
"iopub.status.busy": "2023-03-28T08:45:50.857133Z",
"iopub.status.idle": "2023-03-28T08:45:50.859535Z",
"shell.execute_reply": "2023-03-28T08:45:50.859145Z"
},
"extensions": {
"jupyter_dashboards": {
"version": 1,
"views": {
"grid_default": {},
"report_default": {
"hidden": false
}
}
}
},
"papermill": {
"duration": 0.099408,
"end_time": "2023-03-28T08:45:50.859612",
"exception": false,
"start_time": "2023-03-28T08:45:50.760204",
"status": "completed"
},
"slideshow": {
"slide_type": "slide"
},
"tags": []
},
"outputs": [
{
"data": {
"text/markdown": [
"# Dm2 (23/03/27) pour 2gt1"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"if date is None:\n",
" display(md(f\"# {assessment} pour {tribe}\"))\n",
"else:\n",
" display(md(f\"# {assessment} ({date:%y/%m/%d}) pour {tribe}\"))"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "3149dc30",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:51.041006Z",
"iopub.status.busy": "2023-03-28T08:45:51.040449Z",
"iopub.status.idle": "2023-03-28T08:45:51.242789Z",
"shell.execute_reply": "2023-03-28T08:45:51.242388Z"
},
"extensions": {
"jupyter_dashboards": {
"version": 1,
"views": {
"grid_default": {},
"report_default": {
"hidden": true
}
}
}
},
"papermill": {
"duration": 0.294325,
"end_time": "2023-03-28T08:45:51.242869",
"exception": false,
"start_time": "2023-03-28T08:45:50.948544",
"status": "completed"
},
"slideshow": {
"slide_type": "skip"
},
"tags": []
},
"outputs": [],
"source": [
"stack_scores = pd.read_csv(csv_file, encoding=\"UTF8\")\n",
"#comments = stack_scores.iloc[0]\n",
"#stack_scores.drop([0], inplace=True)\n",
"scores = flat_df_students(stack_scores).dropna(subset=[\"Score\"])\n",
"scores = pp_q_scores(scores)\n",
"#scores.head()\n",
"#comments.drop()"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "48cb4a36",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:51.428847Z",
"iopub.status.busy": "2023-03-28T08:45:51.428454Z",
"iopub.status.idle": "2023-03-28T08:45:51.429768Z",
"shell.execute_reply": "2023-03-28T08:45:51.430177Z"
},
"extensions": {
"jupyter_dashboards": {
"version": 1,
"views": {
"grid_default": {},
"report_default": {
"hidden": true
}
}
}
},
"papermill": {
"duration": 0.098461,
"end_time": "2023-03-28T08:45:51.430315",
"exception": false,
"start_time": "2023-03-28T08:45:51.331854",
"status": "completed"
},
"slideshow": {
"slide_type": "skip"
},
"tags": []
},
"outputs": [],
"source": [
"exercises_scores = scores.groupby([\"Exercice\", \"Eleve\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "15025186",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:51.615938Z",
"iopub.status.busy": "2023-03-28T08:45:51.615465Z",
"iopub.status.idle": "2023-03-28T08:45:51.621440Z",
"shell.execute_reply": "2023-03-28T08:45:51.621789Z"
},
"papermill": {
"duration": 0.098771,
"end_time": "2023-03-28T08:45:51.621891",
"exception": false,
"start_time": "2023-03-28T08:45:51.523120",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" | \n",
" Note | \n",
" Bareme | \n",
"
\n",
" \n",
" Exercice | \n",
" Eleve | \n",
" | \n",
" | \n",
"
\n",
" \n",
" \n",
" \n",
" Exercice 1 | \n",
" ACHOUR Ilyes | \n",
" 1.0 | \n",
" 3.0 | \n",
"
\n",
" \n",
" BELARBI Islem | \n",
" 3.0 | \n",
" 3.0 | \n",
"
\n",
" \n",
" BEN ELALLID Hajar | \n",
" 3.0 | \n",
" 3.0 | \n",
"
\n",
" \n",
" BISWAS Lina | \n",
" 2.0 | \n",
" 3.0 | \n",
"
\n",
" \n",
" BOULAABA Rayan | \n",
" 2.0 | \n",
" 3.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Note Bareme\n",
"Exercice Eleve \n",
"Exercice 1 ACHOUR Ilyes 1.0 3.0\n",
" BELARBI Islem 3.0 3.0\n",
" BEN ELALLID Hajar 3.0 3.0\n",
" BISWAS Lina 2.0 3.0\n",
" BOULAABA Rayan 2.0 3.0"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"exercises_scores.head()"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "71c672c0",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:51.805622Z",
"iopub.status.busy": "2023-03-28T08:45:51.805061Z",
"iopub.status.idle": "2023-03-28T08:45:51.806511Z",
"shell.execute_reply": "2023-03-28T08:45:51.806843Z"
},
"papermill": {
"duration": 0.095181,
"end_time": "2023-03-28T08:45:51.806935",
"exception": false,
"start_time": "2023-03-28T08:45:51.711754",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"assessment_scores = scores.groupby([\"Eleve\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})"
]
},
{
"cell_type": "code",
"execution_count": 29,
"id": "d8a02878",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:51.988341Z",
"iopub.status.busy": "2023-03-28T08:45:51.987926Z",
"iopub.status.idle": "2023-03-28T08:45:51.989914Z",
"shell.execute_reply": "2023-03-28T08:45:51.989527Z"
},
"papermill": {
"duration": 0.094654,
"end_time": "2023-03-28T08:45:51.989991",
"exception": false,
"start_time": "2023-03-28T08:45:51.895337",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" Note | \n",
" Bareme | \n",
"
\n",
" \n",
" Eleve | \n",
" | \n",
" | \n",
"
\n",
" \n",
" \n",
" \n",
" ACHOUR Ilyes | \n",
" 6.50 | \n",
" 15.0 | \n",
"
\n",
" \n",
" BELARBI Islem | \n",
" 12.67 | \n",
" 15.0 | \n",
"
\n",
" \n",
" BEN ELALLID Hajar | \n",
" 9.16 | \n",
" 15.0 | \n",
"
\n",
" \n",
" BISWAS Lina | \n",
" 10.00 | \n",
" 15.0 | \n",
"
\n",
" \n",
" BOULAABA Rayan | \n",
" 10.33 | \n",
" 15.0 | \n",
"
\n",
" \n",
" BREZUN Ines | \n",
" 10.83 | \n",
" 15.0 | \n",
"
\n",
" \n",
" BUGNON Enzo | \n",
" 10.50 | \n",
" 15.0 | \n",
"
\n",
" \n",
" CALLEWAERT Idaline | \n",
" 10.67 | \n",
" 15.0 | \n",
"
\n",
" \n",
" CATTIN Clément | \n",
" 12.00 | \n",
" 15.0 | \n",
"
\n",
" \n",
" DECOSTER Clément | \n",
" 13.50 | \n",
" 15.0 | \n",
"
\n",
" \n",
" DEHIMAT Launy | \n",
" 11.00 | \n",
" 15.0 | \n",
"
\n",
" \n",
" DUPONT Jessica | \n",
" 12.67 | \n",
" 15.0 | \n",
"
\n",
" \n",
" GASAN Jéssica | \n",
" 12.50 | \n",
" 15.0 | \n",
"
\n",
" \n",
" GEORGET Raphaël | \n",
" 9.84 | \n",
" 15.0 | \n",
"
\n",
" \n",
" HABBAZ Hajar | \n",
" 11.34 | \n",
" 15.0 | \n",
"
\n",
" \n",
" JACQUEMIER Samuel | \n",
" 12.50 | \n",
" 15.0 | \n",
"
\n",
" \n",
" JACQUIER Juliette | \n",
" 9.83 | \n",
" 15.0 | \n",
"
\n",
" \n",
" JOVIC Atanase | \n",
" 7.17 | \n",
" 15.0 | \n",
"
\n",
" \n",
" KASSI Cheïma | \n",
" 10.17 | \n",
" 15.0 | \n",
"
\n",
" \n",
" KICHENASSAMY Sanjay | \n",
" 8.83 | \n",
" 15.0 | \n",
"
\n",
" \n",
" LE VEUZIT Adrien | \n",
" 11.84 | \n",
" 15.0 | \n",
"
\n",
" \n",
" MANJALI Hiba | \n",
" 13.67 | \n",
" 15.0 | \n",
"
\n",
" \n",
" NEIVA Hugo | \n",
" 11.17 | \n",
" 15.0 | \n",
"
\n",
" \n",
" OLLIET Gioia | \n",
" 4.33 | \n",
" 15.0 | \n",
"
\n",
" \n",
" PERNOT Gabin | \n",
" 13.84 | \n",
" 15.0 | \n",
"
\n",
" \n",
" RIZZI Elisa | \n",
" 13.67 | \n",
" 15.0 | \n",
"
\n",
" \n",
" SIBABA Moaad | \n",
" 9.67 | \n",
" 15.0 | \n",
"
\n",
" \n",
" SOUJOL Damien | \n",
" 11.34 | \n",
" 15.0 | \n",
"
\n",
" \n",
" THORAL Fanny | \n",
" 8.67 | \n",
" 15.0 | \n",
"
\n",
" \n",
" TOURRETTE Elise | \n",
" 11.33 | \n",
" 15.0 | \n",
"
\n",
" \n",
" TROPHARDY Eline | \n",
" 12.34 | \n",
" 15.0 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Note Bareme\n",
"Eleve \n",
"ACHOUR Ilyes 6.50 15.0\n",
"BELARBI Islem 12.67 15.0\n",
"BEN ELALLID Hajar 9.16 15.0\n",
"BISWAS Lina 10.00 15.0\n",
"BOULAABA Rayan 10.33 15.0\n",
"BREZUN Ines 10.83 15.0\n",
"BUGNON Enzo 10.50 15.0\n",
"CALLEWAERT Idaline 10.67 15.0\n",
"CATTIN Clément 12.00 15.0\n",
"DECOSTER Clément 13.50 15.0\n",
"DEHIMAT Launy 11.00 15.0\n",
"DUPONT Jessica 12.67 15.0\n",
"GASAN Jéssica 12.50 15.0\n",
"GEORGET Raphaël 9.84 15.0\n",
"HABBAZ Hajar 11.34 15.0\n",
"JACQUEMIER Samuel 12.50 15.0\n",
"JACQUIER Juliette 9.83 15.0\n",
"JOVIC Atanase 7.17 15.0\n",
"KASSI Cheïma 10.17 15.0\n",
"KICHENASSAMY Sanjay 8.83 15.0\n",
"LE VEUZIT Adrien 11.84 15.0\n",
"MANJALI Hiba 13.67 15.0\n",
"NEIVA Hugo 11.17 15.0\n",
"OLLIET Gioia 4.33 15.0\n",
"PERNOT Gabin 13.84 15.0\n",
"RIZZI Elisa 13.67 15.0\n",
"SIBABA Moaad 9.67 15.0\n",
"SOUJOL Damien 11.34 15.0\n",
"THORAL Fanny 8.67 15.0\n",
"TOURRETTE Elise 11.33 15.0\n",
"TROPHARDY Eline 12.34 15.0"
]
},
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"assessment_scores"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "b6717594",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:52.172953Z",
"iopub.status.busy": "2023-03-28T08:45:52.172310Z",
"iopub.status.idle": "2023-03-28T08:45:52.176593Z",
"shell.execute_reply": "2023-03-28T08:45:52.176220Z"
},
"papermill": {
"duration": 0.099297,
"end_time": "2023-03-28T08:45:52.176675",
"exception": false,
"start_time": "2023-03-28T08:45:52.077378",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"domain_scores = scores.groupby([\"Eleve\", \"Domaine\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})\n",
"domain_scores[\"Normalized\"] = domain_scores[\"Note\"] / domain_scores[\"Bareme\"]"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "d87553e1",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:52.358809Z",
"iopub.status.busy": "2023-03-28T08:45:52.358317Z",
"iopub.status.idle": "2023-03-28T08:45:52.360017Z",
"shell.execute_reply": "2023-03-28T08:45:52.359627Z"
},
"papermill": {
"duration": 0.093298,
"end_time": "2023-03-28T08:45:52.360096",
"exception": false,
"start_time": "2023-03-28T08:45:52.266798",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"#domain_scores"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "61a49219",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:52.543843Z",
"iopub.status.busy": "2023-03-28T08:45:52.541270Z",
"iopub.status.idle": "2023-03-28T08:45:52.546640Z",
"shell.execute_reply": "2023-03-28T08:45:52.547033Z"
},
"papermill": {
"duration": 0.098711,
"end_time": "2023-03-28T08:45:52.547178",
"exception": false,
"start_time": "2023-03-28T08:45:52.448467",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"competence_scores = scores.groupby([\"Eleve\", \"Competence\"]).agg({\"Note\": \"sum\", \"Bareme\": \"sum\"})\n",
"competence_scores[\"Normalized\"] = competence_scores[\"Note\"] / competence_scores[\"Bareme\"]"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "7c8ad2c9",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:52.730956Z",
"iopub.status.busy": "2023-03-28T08:45:52.730450Z",
"iopub.status.idle": "2023-03-28T08:45:52.732573Z",
"shell.execute_reply": "2023-03-28T08:45:52.732903Z"
},
"papermill": {
"duration": 0.097023,
"end_time": "2023-03-28T08:45:52.732998",
"exception": false,
"start_time": "2023-03-28T08:45:52.635975",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"
\n",
" \n",
" \n",
" | \n",
" | \n",
" Note | \n",
" Bareme | \n",
" Normalized | \n",
"
\n",
" \n",
" Eleve | \n",
" Competence | \n",
" | \n",
" | \n",
" | \n",
"
\n",
" \n",
" \n",
" \n",
" TOURRETTE Elise | \n",
" Communiquer | \n",
" 0.33 | \n",
" 1.0 | \n",
" 0.33 | \n",
"
\n",
" \n",
" Représenter | \n",
" 3.00 | \n",
" 4.5 | \n",
" 0.67 | \n",
"
\n",
" \n",
" TROPHARDY Eline | \n",
" Calculer | \n",
" 7.17 | \n",
" 9.5 | \n",
" 0.75 | \n",
"
\n",
" \n",
" Communiquer | \n",
" 0.67 | \n",
" 1.0 | \n",
" 0.67 | \n",
"
\n",
" \n",
" Représenter | \n",
" 4.50 | \n",
" 4.5 | \n",
" 1.00 | \n",
"
\n",
" \n",
"
\n",
"
"
],
"text/plain": [
" Note Bareme Normalized\n",
"Eleve Competence \n",
"TOURRETTE Elise Communiquer 0.33 1.0 0.33\n",
" Représenter 3.00 4.5 0.67\n",
"TROPHARDY Eline Calculer 7.17 9.5 0.75\n",
" Communiquer 0.67 1.0 0.67\n",
" Représenter 4.50 4.5 1.00"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"competence_scores.tail()"
]
},
{
"cell_type": "markdown",
"id": "3437315d",
"metadata": {
"papermill": {
"duration": 0.089034,
"end_time": "2023-03-28T08:45:52.909790",
"exception": false,
"start_time": "2023-03-28T08:45:52.820756",
"status": "completed"
},
"tags": []
},
"source": [
"### Bilans personnalisés"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "dd4fa512",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:53.098878Z",
"iopub.status.busy": "2023-03-28T08:45:53.098309Z",
"iopub.status.idle": "2023-03-28T08:45:53.130055Z",
"shell.execute_reply": "2023-03-28T08:45:53.129562Z"
},
"papermill": {
"duration": 0.124254,
"end_time": "2023-03-28T08:45:53.130165",
"exception": false,
"start_time": "2023-03-28T08:45:53.005911",
"status": "completed"
},
"scrolled": true,
"tags": []
},
"outputs": [],
"source": [
"import pytex\n",
"#scores.head()"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "6a667215",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:53.403995Z",
"iopub.status.busy": "2023-03-28T08:45:53.403533Z",
"iopub.status.idle": "2023-03-28T08:45:53.405135Z",
"shell.execute_reply": "2023-03-28T08:45:53.404814Z"
},
"papermill": {
"duration": 0.182371,
"end_time": "2023-03-28T08:45:53.405211",
"exception": false,
"start_time": "2023-03-28T08:45:53.222840",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"datas = {\n",
" \"assessment\": {\n",
" \"name\": assessment,\n",
" \"date\": date\n",
" },\n",
" #\"exercises\": scores[\"Exercice\"].unique(),\n",
" #\"questions\": scores[[\"Exercice\", 'Question', 'Competence', 'Domaine', 'Commentaire', 'Bareme', 'Est_nivele']],\n",
" \"eleves\": {}\n",
"}\n",
"for e in scores[\"Eleve\"].unique():\n",
" edatas = {\n",
" \"e\": e,\n",
" \"assessment\": assessment_scores.loc[e],\n",
" \"exercices\": exercises_scores.xs(e, level=\"Eleve\"), \"exercices\": exercises_scores.xs(e, level=\"Eleve\"),\n",
" \"domains\": domain_scores.xs(e, level=\"Eleve\"),\n",
" \"competences\": competence_scores.xs(e, level=\"Eleve\"),\n",
" \"exscores\": {}\n",
" }\n",
" for i, ex in edatas[\"exercices\"].iterrows():\n",
" edatas[\"exscores\"][i] = scores.loc[(scores.Exercice==i) & (scores.Eleve==e)]\n",
" datas[\"eleves\"][e] = edatas"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "16b39fd6",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:53.587713Z",
"iopub.status.busy": "2023-03-28T08:45:53.587280Z",
"iopub.status.idle": "2023-03-28T08:45:53.588722Z",
"shell.execute_reply": "2023-03-28T08:45:53.589031Z"
},
"papermill": {
"duration": 0.095919,
"end_time": "2023-03-28T08:45:53.589126",
"exception": false,
"start_time": "2023-03-28T08:45:53.493207",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"score_template = r\"\"\"\n",
"\\documentclass[a5paper,10pt]{article}\n",
"\\usepackage{fullpage}\n",
"\\usepackage{booktabs}\n",
"\\usepackage{longtable}\n",
"\\usepackage{tikz}\n",
"\\usepackage{multicol}\n",
"\n",
"\\usepackage{geometry}\n",
"\\geometry{left=10mm,right=10mm, top=10mm}\n",
"\n",
"\\renewcommand{\\arraystretch}{1}\n",
"\\setlength{\\columnseprule}{0pt}\n",
"\n",
"\\pagestyle{empty}\n",
"\n",
"\n",
"\\begin{document}\n",
"\n",
"\n",
" \\section*{\\Var{assessment.name} \\hfill \\Var{e} \\hfill \\Var{sc.assessment.Note}/\\Var{sc.assessment.Bareme}}\n",
" %- for i,ex in sc.exercices.iterrows() \n",
" \\subsection*{\\Var{i}: \\hfill \\Var{ex.Note} / \\Var{ex.Bareme}}\n",
" \\begin{center}\n",
" \\Var{sc.exscores[i].to_latex(index=False, columns=[\"Question\", \"Domaine\", \"Commentaire\", \"Note\", \"Bareme\"])}\n",
" \\end{center}\n",
" %- endfor\n",
" \n",
" \\subsection*{Compétences}\n",
" \\begin{multicols}{2}\n",
" %- for i,dom in sc.competences.iterrows()\n",
" \\noindent\n",
" \\Var{i} \\hfill\n",
" \\begin{tikzpicture}[scale=0.7]\n",
" \\draw [](0,0) rectangle (3, 1);\n",
" \\draw [fill=black!20] (0, 0) rectangle (\\Var{dom.Normalized*3}, 1);\n",
" \\end{tikzpicture}\n",
" \\hfill\n",
" %\\Var{dom.Normalized}\n",
" \n",
" %- endfor\n",
" \\end{multicols}\n",
"\n",
"\\end{document}\n",
"\"\"\""
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "e7d7716e",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:53.776471Z",
"iopub.status.busy": "2023-03-28T08:45:53.776060Z",
"iopub.status.idle": "2023-03-28T08:45:59.159833Z",
"shell.execute_reply": "2023-03-28T08:45:59.158550Z"
},
"papermill": {
"duration": 5.480242,
"end_time": "2023-03-28T08:45:59.159916",
"exception": false,
"start_time": "2023-03-28T08:45:53.679674",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_ACHOUR Ilyes.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_BELARBI Islem.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_BEN ELALLID Hajar.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_BISWAS Lina.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_BOULAABA Rayan.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_BREZUN Ines.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_BUGNON Enzo.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_CALLEWAERT Idaline.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_CATTIN Clément.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_DECOSTER Clément.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_DEHIMAT Launy.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_DUPONT Jessica.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_GASAN Jéssica.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_GEORGET Raphaël.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_HABBAZ Hajar.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_JACQUEMIER Samuel.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_JACQUIER Juliette.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_JOVIC Atanase.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_KASSI Cheïma.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_KICHENASSAMY Sanjay.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_LE VEUZIT Adrien.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_MANJALI Hiba.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_NEIVA Hugo.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_OLLIET Gioia.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_PERNOT Gabin.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_RIZZI Elisa.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_SIBABA Moaad.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_SOUJOL Damien.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_THORAL Fanny.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_TOURRETTE Elise.tex\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n",
"/home/lafrite/.venv/enseignements/lib/python3.10/site-packages/jinja2/runtime.py:298: FutureWarning:\n",
"\n",
"In future versions `DataFrame.to_latex` is expected to utilise the base implementation of `Styler.to_latex` for formatting and rendering. The arguments signature may therefore change. It is recommended instead to use `DataFrame.style.to_latex` which also contains additional functionality.\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote 230327_Dm2_TROPHARDY Eline.tex\n"
]
}
],
"source": [
"tpl = pytex.texenv.from_string(score_template)\n",
"\n",
"for e,sc in datas['eleves'].items():\n",
" reportfilename = f\"{date:%y%m%d}_{assessment}_{e}.tex\"\n",
" with open(output_path / reportfilename, \"w\") as f:\n",
" f.write(tpl.render(sc=sc, e=e,**datas))\n",
" print(f\"Wrote {reportfilename}\")\n",
" pytex.pdflatex(reportfilename)"
]
},
{
"cell_type": "markdown",
"id": "dfaf5d3d",
"metadata": {
"papermill": {
"duration": 0.167429,
"end_time": "2023-03-28T08:45:59.493841",
"exception": false,
"start_time": "2023-03-28T08:45:59.326412",
"status": "completed"
},
"tags": []
},
"source": [
"## Envoie des bilans par mail"
]
},
{
"cell_type": "code",
"execution_count": 22,
"id": "76384db8",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:45:59.832394Z",
"iopub.status.busy": "2023-03-28T08:45:59.831991Z",
"iopub.status.idle": "2023-03-28T08:45:59.833973Z",
"shell.execute_reply": "2023-03-28T08:45:59.833607Z"
},
"papermill": {
"duration": 0.17148,
"end_time": "2023-03-28T08:45:59.834045",
"exception": false,
"start_time": "2023-03-28T08:45:59.662565",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Bian du devoir Dm2\n",
"Bonsoir,\n",
"En pièce jointe, vous trouverez un document détaillant la note du devoir. \n",
"\n",
"Votre note est indiquée sur 15 dans la pièce jointe mais elle sera sur 14 sur Pronote par rapport à la dernière question sur l'écart type.\n",
"\n",
"\n",
"B.Bertrand\n",
"\n"
]
}
],
"source": [
"mailfrom = \"benjamin.bertrand@ac-lyon.fr\"\n",
"subject = f\"Bian du devoir {assessment}\"\n",
"message = \"\"\"Bonsoir,\n",
"En pièce jointe, vous trouverez un document détaillant la note du devoir. \n",
"\n",
"Votre note est indiquée sur 15 dans la pièce jointe mais elle sera sur 14 sur Pronote par rapport à la dernière question sur l'écart type.\n",
"\n",
"\n",
"B.Bertrand\n",
"\"\"\"\n",
"print(subject)\n",
"print(message)"
]
},
{
"cell_type": "code",
"execution_count": 23,
"id": "71eb9a2b",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:46:00.175811Z",
"iopub.status.busy": "2023-03-28T08:46:00.175403Z",
"iopub.status.idle": "2023-03-28T08:46:00.178465Z",
"shell.execute_reply": "2023-03-28T08:46:00.178767Z"
},
"papermill": {
"duration": 0.17481,
"end_time": "2023-03-28T08:46:00.178855",
"exception": false,
"start_time": "2023-03-28T08:46:00.004045",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"import smtplib\n",
"import os\n",
"import sys\n",
"from email.message import EmailMessage\n",
"import mimetypes\n",
"import time\n",
"import random"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "f2834e6b",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:46:00.523847Z",
"iopub.status.busy": "2023-03-28T08:46:00.523100Z",
"iopub.status.idle": "2023-03-28T08:46:00.525176Z",
"shell.execute_reply": "2023-03-28T08:46:00.524571Z"
},
"papermill": {
"duration": 0.173507,
"end_time": "2023-03-28T08:46:00.525291",
"exception": false,
"start_time": "2023-03-28T08:46:00.351784",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"def build_msg(subj, to_addr, from_addr, body, att):\n",
" msg = EmailMessage()\n",
" msg[\"Subject\"] = subj\n",
" msg[\"To\"] = to_addr\n",
" #msg[\"To\"] = \"lafrite26@gmail.com\"\n",
" msg[\"From\"] = from_addr\n",
" msg.set_content(body)\n",
"\n",
" if att != []:\n",
" ctype, encoding = mimetypes.guess_type(att)\n",
" if ctype is None or encoding is not None:\n",
" ctype = 'application/octet-stream'\n",
" maintype, subtype = ctype.split('/', 1)\n",
" with open(att, \"rb\") as f:\n",
" msg.add_attachment(f.read(),\n",
" maintype=maintype,\n",
" subtype=subtype,\n",
" filename=att.name)\n",
" return msg\n"
]
},
{
"cell_type": "code",
"execution_count": 25,
"id": "30311066",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:46:00.865283Z",
"iopub.status.busy": "2023-03-28T08:46:00.864715Z",
"iopub.status.idle": "2023-03-28T08:46:00.866535Z",
"shell.execute_reply": "2023-03-28T08:46:00.866154Z"
},
"papermill": {
"duration": 0.171878,
"end_time": "2023-03-28T08:46:00.866611",
"exception": false,
"start_time": "2023-03-28T08:46:00.694733",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"send = 1\n",
"fake = 0"
]
},
{
"cell_type": "code",
"execution_count": 26,
"id": "d31598c3",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:46:01.215935Z",
"iopub.status.busy": "2023-03-28T08:46:01.215541Z",
"iopub.status.idle": "2023-03-28T08:46:01.216799Z",
"shell.execute_reply": "2023-03-28T08:46:01.217082Z"
},
"papermill": {
"duration": 0.179372,
"end_time": "2023-03-28T08:46:01.217172",
"exception": false,
"start_time": "2023-03-28T08:46:01.037800",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"if send:\n",
" if fake:\n",
" server = smtplib.SMTP(\"localhost\", 8025)\n",
" server.ehlo()\n",
" else:\n",
" server = smtplib.SMTP(\"smtps.ac-lyon.fr\", 587)\n",
" server.ehlo()\n",
" server.starttls()\n",
" server.ehlo()\n",
" server.login(\"bbertrand\", os.popen(\"pass Prof/Lyon/bbertrand\").read()[:-1]) "
]
},
{
"cell_type": "code",
"execution_count": 27,
"id": "ca5690d7",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:46:01.572966Z",
"iopub.status.busy": "2023-03-28T08:46:01.572574Z",
"iopub.status.idle": "2023-03-28T08:46:01.581196Z",
"shell.execute_reply": "2023-03-28T08:46:01.580749Z"
},
"papermill": {
"duration": 0.188186,
"end_time": "2023-03-28T08:46:01.581289",
"exception": false,
"start_time": "2023-03-28T08:46:01.393103",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": [
"try:\n",
" eleves_data = pd.read_csv(f\"../../{tribe}.csv\")\n",
"except FileNotFoundError:\n",
" try:\n",
" eleves_data = pd.read_csv(f\"../{tribe}.csv\")\n",
" except FileNotFoundError:\n",
" eleves_data = pd.read_csv(f\"{tribe}.csv\")\n",
"eleves_data.fillna(\"\", inplace=True)\n",
"#eleves_data"
]
},
{
"cell_type": "code",
"execution_count": 28,
"id": "b676f878",
"metadata": {
"execution": {
"iopub.execute_input": "2023-03-28T08:46:01.926005Z",
"iopub.status.busy": "2023-03-28T08:46:01.923232Z",
"iopub.status.idle": "2023-03-28T08:46:01.932738Z",
"shell.execute_reply": "2023-03-28T08:46:01.933072Z"
},
"papermill": {
"duration": 0.181443,
"end_time": "2023-03-28T08:46:01.933174",
"exception": false,
"start_time": "2023-03-28T08:46:01.751731",
"status": "completed"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tBilan envoyé à ACHOUR Ilyes\n",
"\tBilan envoyé à BELARBI Islem\n",
"\tBilan envoyé à BEN ELALLID Hajar\n",
"\tBilan envoyé à BISWAS Lina\n",
"\tBilan envoyé à BOULAABA Rayan\n",
"\tBilan envoyé à BREZUN Ines\n",
"\tBilan envoyé à BUGNON Enzo\n",
"\tBilan envoyé à CALLEWAERT Idaline\n",
"\tBilan envoyé à CATTIN Clément\n",
"Pas de rapport pour CHRISTMANN Nathan\n",
"\tBilan envoyé à DECOSTER Clément\n",
"\tBilan envoyé à DEHIMAT Launy\n",
"\tBilan envoyé à DUPONT Jessica\n",
"\tBilan envoyé à GASAN Jéssica\n",
"\tBilan envoyé à GEORGET Raphaël\n",
"\tBilan envoyé à HABBAZ Hajar\n",
"\tBilan envoyé à JACQUEMIER Samuel\n",
"\tBilan envoyé à JACQUIER Juliette\n",
"\tBilan envoyé à JOVIC Atanase\n",
"\tBilan envoyé à KASSI Cheïma\n",
"\tBilan envoyé à KICHENASSAMY Sanjay\n",
"\tBilan envoyé à LE VEUZIT Adrien\n",
"Pas de rapport pour LETIF Ilef\n",
"\tBilan envoyé à MANJALI Hiba\n",
"Pas de rapport pour MUTTONI Lou\n",
"\tBilan envoyé à NEIVA Hugo\n",
"\tBilan envoyé à OLLIET Gioia\n",
"\tBilan envoyé à PERNOT Gabin\n",
"\tBilan envoyé à RIZZI Elisa\n",
"Pas de rapport pour ROSTANT Emma\n",
"\tBilan envoyé à SIBABA Moaad\n",
"\tBilan envoyé à SOUJOL Damien\n",
"\tBilan envoyé à THORAL Fanny\n",
"\tBilan envoyé à TOURRETTE Elise\n",
"\tBilan envoyé à TROPHARDY Eline\n"
]
}
],
"source": [
"for e in eleves_data.iterrows():\n",
" reportfilename = Path(f\"{date:%y%m%d}_{assessment}_{e[1]['Nom']}.pdf\")\n",
" try:\n",
" assert reportfilename.exists()\n",
" except:\n",
" print(f\"Pas de rapport pour {e[1]['Nom']}\")\n",
" else:\n",
" if e[1][\"mail\"] != \"\":\n",
" if send:\n",
" msg = build_msg(subject, e[1][\"mail\"], mailfrom, message, reportfilename)\n",
" server.send_message(msg)\n",
" print(f\"\\tBilan envoyé à {e[1]['Nom']}\")\n",
" else:\n",
" print(f\"Pas de mail pour {e[1]['Nom']}\")\n",
" "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "78e914c1",
"metadata": {
"papermill": {
"duration": 0.172912,
"end_time": "2023-03-28T08:46:02.276991",
"exception": false,
"start_time": "2023-03-28T08:46:02.104079",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "24ff9733",
"metadata": {
"papermill": {
"duration": 0.170245,
"end_time": "2023-03-28T08:46:02.615327",
"exception": false,
"start_time": "2023-03-28T08:46:02.445082",
"status": "completed"
},
"tags": []
},
"outputs": [],
"source": []
}
],
"metadata": {
"celltoolbar": "Diaporama",
"extensions": {
"jupyter_dashboards": {
"activeView": "grid_default",
"version": 1,
"views": {
"grid_default": {
"cellMargin": 10,
"defaultCellHeight": 20,
"maxColumns": 12,
"name": "grid",
"type": "grid"
},
"report_default": {
"name": "report",
"type": "report"
}
}
}
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.10"
},
"papermill": {
"duration": 15.871637,
"end_time": "2023-03-28T08:46:03.196936",
"environment_variables": {},
"exception": null,
"input_path": "templates/tpl_evaluation.ipynb",
"output_path": "2gt1/230327_DM2/Dm2.ipynb",
"parameters": {
"assessment": "Dm2",
"csv_file": "/home/lafrite/Cours/2022-2023/Notes/2gt1/230327_DM2.csv",
"date": "27/03/23",
"tribe": "2gt1"
},
"start_time": "2023-03-28T08:45:47.325299",
"version": "1.2.1"
}
},
"nbformat": 4,
"nbformat_minor": 5
}