TU-Wien-dataLAB / Grader-Service

Grader Service offers lecturers and students a well integrated teaching environment for data science, machine learning and programming classes.
https://grader-service.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
27 stars 3 forks source link

Update default file pattern for grader-convert #202

Closed meffmadd closed 6 months ago

meffmadd commented 7 months ago

Is your feature request related to a problem? Please describe. Right now we only convert notebooks in the current directory by using *.ipynb as the glob pattern.

Describe the solution you'd like The default pattern should be changed to **/*.ipynb so that notebooks in subdirectories are also converted. This is also necessary for grader-labextension if it does explicitly overwrite the default.

joseftaha commented 7 months ago

Idea: glob.glob returns the list of notebooks to convert based on the given pattern. This function accepts a booelan flag "recursive" which when set to true, let the pattern ** match any files and zero or more directories and sub-directories. Setting the default pattern to **/*.ipynb and including a recursive=True should convert all notebooks in current dir and subdirs.