CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python
Single .py file for lesson and solution files
- 主要語言
- Jupyter Notebook
- 星號
- 1
- 分支
- 1
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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?
貢獻指南
研究方向
首先定位現有的 .py-to-.ipynb 轉換流程,並比較 lesson notebook 和 solution notebook 配對。確定在產生 lesson notebook 時,是否可以排除標記為 # %% [solution] 的 solution 區塊;當單一 .py 來源能讓兩個輸出保持一致時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- jupyter-notebook, python
- 領域
- build-system, tooling
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100