CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python

Single .py file for lesson and solution files

Đang mở
#23 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Jupyter Notebook
Star
1
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xác định quy trình chuyển đổi .py-to-.ipynb hiện có và so sánh các cặp lesson notebook và solution notebook. Xác định xem có thể loại trừ các khối solution được đánh dấu bằng # %% [solution] khi tạo lesson notebook hay không; hoàn thành khi một nguồn .py duy nhất giữ cho cả hai đầu ra nhất quán.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
jupyter-notebook, python
Lĩnh vực
build-system, tooling
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.