Don't hide .so,.dylib files by default#1457
Conversation
|
For context, I see this was added here (260afd7, PR: ipython/ipython#5938) back in 2014 . I can't see any direct motivation for it in the commit message or PR. I'm not sure if Min has any obvious historical context? |
It's very old, but I think it was just to hide obviously-not-openable files that are common in Python (e.g. compiled modules). I don't have a strong opinion and don't feel any great need to keep this. Expectations for JupyterLab are very different than for notebook UI in the olden days. |
|
I guess this backs to pre-Jupyter days when IPython did not support C++ kernels? |
|
I don't think kernels are necessarily relevant, since it's about the UI - you can't open/edit .so files, so why show them (originally, we only listed notebooks when that was the only file we could open, but that hasn't been true for ages). But either way in a JupyterLab IDE-like experience, it's probably more expected to see most files, even if you can't open them. |
|
I think they are relevant in the sense that C++ kernel is a valid use case of Jupyter, and if you are teaching a lesson on compilers/C you may want the Also, there is a hex editor for JupyterLab/Notebook e.g. https://github.com/ericsnekbytes/hexlab |
|
Yeah, that makes sense. It also makes sense to see .so files if you are teaching Cython, etc. I'm +1 on this change, I just think it should just include .dylib, too. |
Co-authored-by: Michał Krassowski <[email protected]>
Co-authored-by: Min RK <[email protected]> Co-authored-by: Michał Krassowski <[email protected]>
It's confusing that the .so files are hidden. They appear, for example, when compiling Python code, and it becomes unclear that the compiled files will be executed because Jupyter gives the impression that they don't exist. There is an issue on GitHub and a question on Stack Overflow.
This PR removes .so files from the default list.