module __init__
¶
Short summary¶
module code_beatrix
Module code_beatrix.
Functions¶
function |
truncated documentation |
---|---|
if this function is added to the module, the help automation and unit tests call it first before anything goes on … |
|
Checks the library is working. It raises an exception. |
|
to allow the call |
Documentation¶
Module code_beatrix.
Pourquoi Python?
Python est un langage de programmation très répandu aujourd’hui qui fut choisi à l”ENSAE en 2005 pour remplacer le C++. Dès la première année, il est apparu que ce nouveau langage permettait aux étudiants de mettre leurs idées plus rapidement en forme. Les opinions ont commencé alors un peu à changer à propos de la programmation. Il est très rare maintenant qu’un étudiant quitte une grande école d’ingénieurs sans programmer. Il a été choisi pour trois raisons. La première est sa syntaxe car il oblige les dévelopeurs à aligner leurs instructions ce qui rend les programmes plus lisibles. La seconde parce que sa grammaire est une des plus courte (voir aussi The Python Language Reference). Enfin, beaucoup de librairies existantes mais codées en C++ étaient déjà disponibles à l’époque. 10 ans plus tard, le langage est quasi incontournable dès qu’on touche au traitement de données.
- code_beatrix._setup_hook(add_print=False, unit_test=False)¶
if this function is added to the module, the help automation and unit tests call it first before anything goes on as an initialization step. It should be run in a separate process.
- Paramètres:
add_print – print Success: _setup_hook
unit_test – used only for unit testing purpose
- code_beatrix.check(log=False, kind=None, fLOG=None)¶
Checks the library is working. It raises an exception.
- Paramètres:
log – if True, display information, otherwise
kind – None or
'scratch'
or'video'
fLOG – logging function
- Renvoie:
0 or exception
- code_beatrix.load_ipython_extension(ip)¶
to allow the call
%load_ext code_beatrix
- Paramètres:
ip – from
get_ipython()