Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter notebooks misrepresent code in Github linguist #71

Closed
mossr opened this issue Sep 6, 2020 · 7 comments
Closed

Jupyter notebooks misrepresent code in Github linguist #71

mossr opened this issue Sep 6, 2020 · 7 comments

Comments

@mossr
Copy link
Member

mossr commented Sep 6, 2020

The Github linguist—which shows the breakdown of programming languages used—is often muddled by Jupyter notebooks (in the case of this repo, two notebooks take up 83% of the code and the repo is labeled as if it's written primarily in a "Jupyter notebook")

There's a quick fix that I've used elsewhere: adding a .gitattributes file to ignore *.ipynb files from the linguist:
https://github.com/sisl/POMDPStressTesting.jl/blob/master/.gitattributes

@zsunberg
Copy link
Member

zsunberg commented Sep 7, 2020

I see. do you know how long it takes to update?

@mossr
Copy link
Member Author

mossr commented Sep 7, 2020

Usually just a few minutes

@mossr
Copy link
Member Author

mossr commented Sep 7, 2020

It's updated through some background Github job so it may take longer—but that shouldn't hold back any new release

@mossr
Copy link
Member Author

mossr commented Sep 7, 2020

@zsunberg There we go :) Much better!

@mossr
Copy link
Member Author

mossr commented Sep 7, 2020

Well, I see this when clicking from the "Search or jump to..." bar:
image

But then refreshing the page changes it back to Jupyter notebooks...so it's definitely processing.

@mossr
Copy link
Member Author

mossr commented Sep 9, 2020

Beautiful:
image

@zsunberg
Copy link
Member

Haha, beautiful indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants