Tools for building and debugging notebooks

未关闭
#353 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
jupyter-notebook, python

调研方向

从 great-docs build 入口开始,并将提议的行为与 issue 中链接的 quartodoc/qpyd 代码和 qpynb CLI 文档进行比较。调查并行执行 notebook,以及一种在不更新文档或 notebook 缓存的情况下报告错误的检查/调试模式。完成的标准是两个工作流都已实现并经过测试。

由索引模型根据 Issue 内容生成。

描述

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!

主要语言
Python
星标
282
派生
24
平均合并
2 小时 37 分钟
30 天内合并 PR
272

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

posit-dev/great-docs 的其他 Issue

查看 posit-dev/great-docs 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。