小编dfr*_*ied的帖子

编写预提交,*检查* jupyter 笔记本是否已清除输出

我知道您可以使用jupyter nbconvert --clear-output --inplace <file>(按此处)清除 jupyter 笔记本的输出。我想知道是否有一种简单的方法来检查预提交挂钩中的输出是否已被清除。这样,如果预提交没有失败,我可以使预提交失败,并强制用户重试。谢谢!

python git hook jupyter-notebook nbconvert

7
推荐指数
1
解决办法
3351
查看次数

安装 ruby​​ 但出现错误“链接器命令失败,退出代码 1”

我正在构建一个 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)

ruby macos github jekyll github-pages

3
推荐指数
1
解决办法
3669
查看次数

标签 统计

git ×1

github ×1

github-pages ×1

hook ×1

jekyll ×1

jupyter-notebook ×1

macos ×1

nbconvert ×1

python ×1

ruby ×1