def tracks(coursedir): return [ Track( coursedir, name="HTML and CSS basics", sections=[ Section(name="the ecosystem", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/0*.md")), Section(name="html basics", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/1*.md")), ], description="Web frontend introduction"), Track( coursedir, name="CSS layout and intro to JS", sections=[ Section(name="advanced layout", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/2*.md")), Section(name="intro to JS", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/3*.md")), ], description="CSS layout - JS intro"), ]
def tracks(coursedir): return [ Track( coursedir, name="D1 : HTML - CSS basics", sections=[ Section(name="introduction", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/0*.md")), Section(name="HTML basics", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/1*.md")), ], description="n/a"), Track( coursedir, name="D2 : CSS layout - JS intro", sections=[ Section(name="advanced layout", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/2*.md")), Section(name="intro to JS", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/3*.md")), ], description="n/a"), Track( coursedir, name="D3 : more on JavaScript", sections=[ Section(name="JS unleashed", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/4*.md")), Section(name="very popular tools", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/5*.md")), ], description="n/a"), Track( coursedir, name="Optional content", sections=[ Section(name="optional tools", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/6*.md")), Section(name="course requirements", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "notebooks/7*.md")), ], description="n/a"), ]
def tracks(coursedir): """ coursedir is a CourseDir object that points at the root directory of the filesystem tree that holds notebooks result is a list of Track instances """ track_specs = [('C++ avancé', 'C++ avancé', 'cplusplus', [ ('1/9: intro', 'notebooks/1-*.md'), ('2/9: ???', 'notebooks/2-*.md'), ('3/9: ???', 'notebooks/3-*.md'), ('4/9: ???', 'notebooks/4-*.md'), ('5/9: ???', 'notebooks/5-*.md'), ('6/9: ???', 'notebooks/6-*.md'), ('7/9: ???', 'notebooks/7-*.md'), ('8/9: ???', 'notebooks/8-*.md'), ('9/9: ???', 'notebooks/9-*.md'), ])] return [ Track(coursedir, [ Section(coursedir=coursedir, name=section_name, notebooks=notebooks_by_patterns(coursedir, patterns)) for section_name, *patterns in section_specs ], name=track_name, description=track_description, id=track_id) for (track_name, track_description, track_id, section_specs) in track_specs ]
def tracks(coursedir): """ coursedir is a CourseDir object that points at the root directory of the filesystem tree that holds notebooks result is a list of Track instances """ # 1 single track track_specs = [ ('primer', 'Python primer', [ ('primer', '[0-9]*.ipynb'), ]), ] return [ Track(coursedir, [ Section(coursedir=coursedir, name=section_name, notebooks=notebooks_by_pattern(coursedir, f"notebooks/{pattern}")) for section_name, pattern in section_specs ], name=track_name, description=track_description) for track_name, track_description, section_specs in track_specs ]
def tracks(coursedir): """ coursedir is a CourseDir object that points at the root directory of the filesystem tree that holds notebooks result is a list of Track instances """ track_specs = [ ('calcul parallèle', 'introduction au calcul parallèle', 'parallel', [ ('intro', 'notebooks/0[01]*.md'), ('mémoire distribuée', 'notebooks/02*.md'), ('mémoire partagée', 'notebooks/03*.md'), ]), ] return [ Track(coursedir, [ Section(coursedir=coursedir, name=section_name, notebooks=notebooks_by_pattern(coursedir, pattern)) for section_name, pattern in section_specs ], name=track_name, description=track_description, id=track_id) for (track_name, track_description, track_id, section_specs) in track_specs ]
def tracks(coursedir): """ coursedir is a CourseDir object that points at the root directory of the filesystem tree that holds notebooks result is a list of Track instances """ # define a single track that has sections based on the first 2 digits in the filename # that is to say 7 sections 00 .. 06 section_names = [ "preface", "IPython", "numpy", "pandas", "matplotlib", "machine learning", "appendix", ] default_track = Track( coursedir, [Section(coursedir=coursedir, name=section_name, notebooks=notebooks_by_pattern( coursedir, f"notebooks/{number:02}*.ipynb")) for number, section_name in enumerate(section_names)], name="book", description="complete book contents") return [default_track]
def tracks(coursedir): """ coursedir is a CourseDir object that points at the root directory of the filesystem tree that holds notebooks result is a list of Track instances """ track_specs = [ ('python', 'survol langage', [ ('intro', 'notebooks/0-[0-9]*.ipynb'), ('python', 'notebooks/1-[0-9]*.ipynb'), ]), ( 'numpy', 'numpy', # dropping 2-10 on structured arrays # [ ('numpy', 'notebooks/2-[0-9]*.ipynb'), [ ('numpy', 'notebooks/2-0*.ipynb'), ]), ('dataviz & pandas', 'dataviz & pandas', [ ('dataviz & pandas', 'notebooks/3-[0-9]*.ipynb'), ]), ('évaluation', 'évaluation', [ ('évaluation', 'notebooks/4-[0-9]*.ipynb'), ]) ] return [ Track(coursedir, [ Section(coursedir=coursedir, name=section_name, notebooks=notebooks_by_pattern(coursedir, pattern)) for section_name, pattern in section_specs ], name=track_name, description=track_description) for track_name, track_description, section_specs in track_specs ]
def tracks(coursedir): """ coursedir is a CourseDir object that points at the root directory of the filesystem tree that holds notebooks result is a list of Track instances """ track_specs = [ ("course #1: HTML", "basic contents with HTML and some CSS", 'html', [ ("introduction", "notebooks/0*.md"), ("HTML basics", "notebooks/1*.md"), ]), ("course #2: CSS layout", "advanced layout with CSS", 'css', [ ("quiz", "quiz/1-html.md"), ("layout with CSS", "notebooks/2*.md"), ]), ( "course #3: JS basics", "programming with JS", "js", [ # ("old intro to JS", "notebooks/3*.md"), ("intro to JS", "notebooks/new*.md"), ("optional content", "notebooks/5*.md"), ]), ] return [ Track(coursedir, [ Section(coursedir=coursedir, name=section_name, notebooks=notebooks_by_patterns(coursedir, patterns)) for section_name, *patterns in section_specs ], name=track_name, description=track_description, id=track_id) for (track_name, track_description, track_id, section_specs) in track_specs ]
def tracks(coursedir): """ coursedir is a CourseDir object that points at the root directory of the filesystem tree that holds notebooks result is a list of Track instances """ # 2 tracks # 'intro' : 2 sections 1* et 2* # 'approfondissement' : 3* track_specs = [ ('Session 1', 'utilisation en local', [ ('intro', '1-*.ipynb'), ('git en local', '2-*.ipynb'), ]), ('Session 2', 'synchros et fonctions avancées', [ ('git distribué', '3-*.ipynb'), ('avancé', '4-*.ipynb'), ]), ] return [ Track(coursedir, [ Section(coursedir=coursedir, name=section_name, notebooks=notebooks_by_pattern(coursedir, f"notebooks/{pattern}")) for section_name, pattern in section_specs ], name=track_name, description=track_description) for track_name, track_description, section_specs in track_specs ]
def tracks(coursedir): return [ Track( coursedir, name="S1", sections=[ Section(name="cours 1/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours1.ipynb")), Section(name="cours 2/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours2.ipynb")), Section(name="cours 3/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours3.ipynb")), Section(name="cours 4/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours4.ipynb")), Section(name="cours 5/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours5.ipynb")), Section(name="cours 6/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours6.ipynb")), Section(name="cours 7/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours7.ipynb")), Section( name="cours 8/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours8.py") + notebooks_by_pattern(coursedir, "sujet-evaluation.md")), Section( name="cours 9/9", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "cours9.py") + notebooks_by_pattern(coursedir, "sujet-evaluation.md")), ], description="le cours de Python avancé"), Track( coursedir, name="S2", sections=[ Section(name="extra 1/2", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "extra1.py")), Section(name="extra 2/2", coursedir=coursedir, notebooks=notebooks_by_pattern(coursedir, "extra2.py")), ], description="quelques extras pendant le S2"), ]
def tracks(coursedir): """ coursedir is a CourseDir object that points at the root directory of the filesystem tree that holds notebooks result is a list of Track instances """ track_specs = [( 'Python avancé', 'Python avancé', 'python', [ ('1/9: jeux', 'notebooks/1-*.md', 'tps/games/README.md'), ( '2/9: types de base', 'quiz/2*.md', 'notebooks/2-0[0-4]*.md', 'notebooks/2-09*.md', ), ( '3/9: hash tables', # les quiz (le quiz sur le snake était en panne) 'quiz/2*.md', 'quiz/3*.md', # intro 'notebooks/3-00*.md', # rappel exos semaine passée 'notebooks/2-09*.md', # containers 2/2 'notebooks/2-05*.md', 'notebooks/3-1*.md', 'tps/dijkstra/README.md', 'notebooks/3-9*.md', ), ( '4/9: itérations', 'quiz/4*.md', 'notebooks/4-00*.md', 'tps/dijkstra/README.md', 'notebooks/4-11*.md', # exos 'notebooks/4-90*.md', ), ( '5/9: itérations et classes', 'quiz/5*.md', 'notebooks/5-00*.md', 'notebooks/4-90*.md', 'notebooks/4-12*.md', 'notebooks/4-91*.md', 'notebooks/5-1*.md', 'tps/students/README.md', 'notebooks/5-9*.md', ), ('6/9: fonctions', 'quiz/6*.md', 'notebooks/6-*.md'), ( '7/9: approfondissements', 'quiz/7*.md', 'notebooks/7-00*.md', 'notebooks/6-90*md', 'notebooks/7-[12]*.md', 'tps/queens/README.md', 'notebooks/7-3*.md', 'tps/expressions-lang/README.md', ), ('8/9: ???', 'quiz/8*.md', 'notebooks/8-*.md'), ('9/9: ???', 'quiz/9*.md', 'notebooks/9-*.md'), ])] return [ Track(coursedir, [ Section(coursedir=coursedir, name=section_name, notebooks=notebooks_by_patterns(coursedir, patterns)) for section_name, *patterns in section_specs ], name=track_name, description=track_description, id=track_id) for (track_name, track_description, track_id, section_specs) in track_specs ]