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 ブロックを除外できるか判断します。1つの .py ソースで両方の出力の一貫性を保てれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter-notebook, python
- 領域
- build-system, tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100