From 66f39b8f16574c007d678ed241a3831768dff577 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 13 Dec 2021 19:05:51 +0100 Subject: [PATCH] shell: ajoute np et pd --- scodoc.py | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/scodoc.py b/scodoc.py index 3204c7668..c93e9f2f5 100755 --- a/scodoc.py +++ b/scodoc.py @@ -45,35 +45,39 @@ def make_shell_context(): from app.scodoc import sco_utils as scu from flask_login import login_user, logout_user, current_user import app as mapp # le package app + import numpy as np + import pandas as pd return { - "db": db, - "User": User, - "Role": Role, - "UserRole": UserRole, - "Permission": Permission, - "notes": notes, - "scolar": scolar, - "ndb": ndb, - "scu": scu, - "pp": pp, - "flask": flask, + "ctx": app.test_request_context(), "current_app": flask.current_app, "current_user": current_user, - "login_user": login_user, - "logout_user": logout_user, - "ctx": app.test_request_context(), - "mapp": mapp, - "models": models, + "db": db, "Evaluation": Evaluation, + "flask": flask, "Formation": Formation, "FormSemestre": FormSemestre, "FormsemestreInscription": FormsemestreInscription, "Identite": Identite, + "login_user": login_user, + "logout_user": logout_user, + "mapp": mapp, + "models": models, "Module": Module, "ModuleImpl": ModuleImpl, "ModuleImplInscription": ModuleImplInscription, + "ndb": ndb, + "notes": notes, + "np": np, + "pd": pd, + "Permission": Permission, + "pp": pp, + "Role": Role, + "scolar": scolar, + "scu": scu, "UniteEns": UniteEns, + "User": User, + "UserRole": UserRole, }