我知道您可以使用jupyter nbconvert --clear-output --inplace <file>(按此处)清除 jupyter 笔记本的输出。我想知道是否有一种简单的方法来检查预提交挂钩中的输出是否已被清除。这样,如果预提交没有失败,我可以使预提交失败,并强制用户重试。谢谢!
我正在构建一个 GitHub Pages 站点,并尝试按照此处所述为我的 Mac 安装 Ruby 。当我运行时ruby-install ruby ,我得到以下信息:
linking shared-object -test-/arith_seq/extract.bundle
Undefined symbols for architecture arm64:
"_rb_arithmetic_sequence_extract", referenced from:
_arith_seq_s_extract in extract.o
"_rb_ary_new_capa", referenced from:
_arith_seq_s_extract in extract.o
"_rb_ary_store", referenced from:
_arith_seq_s_extract in extract.o
"_rb_define_singleton_method", referenced from:
_Init_extract in extract.o
"_rb_path2class", referenced from:
_Init_extract in extract.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../../../.ext/arm64-darwin22/-test-/arith_seq/extract.bundle] Error 1
make[1]: *** [ext/-test-/arith_seq/extract/all] Error …Run Code Online (Sandbox Code Playgroud)