kynan/nbstripout

Prevent committing notebooks with errors in cell outputs

オープン

#180 opened on 2022/12/24

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)Python (102 件のフォーク)batch import
help wantedtype:enhancement

Repository metrics

Stars
 (1,476 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Is it possible to detect whether a cell output is an error + stack trace and let users specify one of 3 options ignore, strip or error? The first would be current behavior of doing nothing, second would remove the cell output and third would exit nbstripout non-zero so that using it as a pre-commit hook aborts commits.

My goal is to prevent accidentally releasing notebooks like this:

Screenshot 2022-12-24 at 13 08 29

コントリビューターガイド