shell: ajoute np et pd

This commit is contained in:
Emmanuel Viennet 2021-12-13 19:05:51 +01:00
parent 1e7a509879
commit 66f39b8f16

View File

@ -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,
}