Support for Jupyter notebooks in excess of 1 MB #6723
-
At present it appears as though When running
It appears as though there is a 1 MB limit for notebooks and other files being handled in a standard way. While I certainly understand a file size limit, 1 MB seems particularly low for Jupyter notebooks that may include one or more images. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Correct. This is documented:
As for:
The output is showing bytes in the second column, not lines. As for linguist not supporting larger Jupyter files, it certainly does. If it didn't, you wouldn't get a language here and the figure in the sidebar and analysis would be significantly lower:
The line you see below it isn't an indication of a lack of support and also doesn't apply for things like Jupyter notebooks which are rendered by a completely independent service. This information only applies to files rendered directly in GitHub's UI without any processing, like plain text python or Fortran files. So what you are seeing is expected and correct behaviour. If you want to change this to better suit your desires, you can implement an override. |
Beta Was this translation helpful? Give feedback.
-
@lildude thanks for the quick response! I certainly do not think that large Jupyter notebooks are not supported. My issue is that 3,712 lines of code are reported as 6,677,629 lines (an 179,893% increase). Assuming 1 byte per line (or something similar) seems pretty low. Perhaps an improvement to only count |
Beta Was this translation helpful? Give feedback.
You're not interpretting the output correctly. As I've mentioned before, it's not reporting 3,712 lines as 6,677,629 lines, it's reporting the total bytes as 6,677,629 bytes. The lines of code have nothing to do with this. You can confirm this independently of Linguist using
du
: