3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GitHubの言語バーからJupyter Notebookを除外する

Last updated at Posted at 2023-12-29

事象

GitHubにおいて、アプリ開発で扱ったアルゴリズムの妥当性確認として、Jupyter Notebookに計算の可視化記録を残したいとき、ありますよね。
しかし、特に可視化した際画像の分のbyte数が大きいので、言語バーがJupyter Notebookに占拠されてしまいます。
image.png

気にしない人は気にしないかもしれませんが、人によっては「この人もしかしてNotebookでアプリ作った気になったの?」と思われそうで嫌だと神経質になるかもしれません。

解決

そんなとき、 レポジトリ直下に 下記が書かれた.gitattributesという名前のファイルを置けば、Jupyter Notebookを無視できます。

.gitattributes
# ignore jupyter notebooks in the language bar on github
**/*.ipynb linguist-vendored

参考: https://github.com/github-linguist/linguist/blob/master/docs/overrides.md

これで見栄っ張りの王、見栄っ張りキングになれますね。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?