CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python

Single .py file for lesson and solution files

Abierto
#23 0 comentarios 1 reacción 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Jupyter Notebook
Estrellas
1
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Currently, when I adapt anything in a lesson or solution, I need to change the corresponding lesson/solution as well. This is easy to forget, leads to incongruences and is generally not very dry, especially since the only difference between these files should be the solutions to the answers.

I wonder if there is a way to generate both the lesson notebook and solution notebook from the same `.py` file.

@JeltevanBoheemen: since you are the Keeper of Knowledge when it comes to this `.py -> .ipynb` conversion, is it possible to mark solution blocks with `# %% [solution]` and exclude them in the generation of the lesson notebooks?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.