Tools for building and debugging notebooks

Đang mở
#353 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
jupyter-notebook, python

Hướng nghiên cứu

Bắt đầu với entry point great-docs build và so sánh hành vi được đề xuất với mã quartodoc/qpyd và tài liệu CLI qpynb được liên kết trong issue. Điều tra việc thực thi notebook song song và một chế độ kiểm tra/gỡ lỗi báo cáo lỗi mà không cập nhật tài liệu hoặc cache notebook. Hoàn thành có nghĩa là cả hai workflow đều được triển khai và kiểm thử.

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

Mô tả

Type: ★ Enhancement

For many big docsets, almost all the build time goes into executing the reference notebooks, e.g. user guide/tutorial pages. Quarto already provides freeze and cache options, but these are invalidated based on the notebook itself being updated, when frequently the notebooks need to be regenerated when the Python package itself changes.

In my experience, there are two important tasks that are hard to do with Quarto:

  1. Build all the notebooks in parallel rather than serially
  2. Check/debug the notebooks

Building in parallel should probably happen by default when great-docs build is run (or maybe great-docs build --parallel if that seems too risky). The second should execute each notebook, not updating the built docs or notebook cache, but summarizing any build errors.

Both are fortunately fairly straightforward. It would need more testing, but I've done a draft implementation in my quartopydoc fork -- see the code and the docs. (A lot of what I was trying to do with qpyd is what you've already built into Great Docs but about 100x better, so thank you thank you!)

If you want to include these features in Great Docs, I can work on a PR in the next month or two, depending on what would fit with your development schedule. Or if you want to borrow liberally from quartopydoc, that is of course 100% welcome too!

Ngôn ngữ chính
Python
Star
282
Fork
24
Merge trung bình
2 giờ 17 phút
Pull request đã merge (30 ngày)
281

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của posit-dev/great-docs

Tất cả issue của posit-dev/great-docs

Issue tương tự

Thêm issue về Python

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.