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

For some reason .so files aren't showing up in the Jupyter Notebook file browser #7409

Open
maraMaraschino opened this issue Jun 26, 2024 · 9 comments

Comments

@maraMaraschino
Copy link

maraMaraschino commented Jun 26, 2024

Description

There is a .so file that I'm trying to access which isn't showing up at all in the Jupyter file browser.
Jupyter File explorer

Same folder in GitHub repository

Reproduce

The notebook file I'm working on is here, and the file I'm trying to access is libpixie4e.so. I tried looking in other folders that contain .so files, but they're not showing up anywhere, so I assume this is a general issue.

Expected behavior

I expected to be able to see the .so file and I cannot

Context

  • Operating System and version: Windows 11
  • Browser and version: Firefox Version 127.0.1
  • Jupyter Notebook version: I've ran this from Notebook version 6.4.8 and Lab version 2.14.1, both using WSL
@maraMaraschino maraMaraschino added bug status:Needs Triage Applied to issues that need triage labels Jun 26, 2024
@krassowski
Copy link
Member

Are these by any chance classed as hidden files on your Windows machine? If so you may want to follow https://jupyterlab.readthedocs.io/en/latest/user/files.html#displaying-hidden-files

@krassowski
Copy link
Member

I've ran this from Notebook version 6.4.8 and Lab version 2.14.1, both using WSL

The above will only work in Notebook 7 and in a modern version of JupyterLab (e.g. 3.6.x or 4.x)

@maraMaraschino
Copy link
Author

Are these by any chance classed as hidden files on your Windows machine? If so you may want to follow https://jupyterlab.readthedocs.io/en/latest/user/files.html#displaying-hidden-files

The files aren't hidden. Also, can you link me to instructions on setting up Notebook 7 or a new Lab, please?

@RRosio
Copy link
Collaborator

RRosio commented Jul 2, 2024

@maraMaraschino this page has the links to install guides for Notebook and Jupyterlab if you'd like to give that a try! Let us know if after upgrading to the newer versions you still see this issue!

@maraMaraschino
Copy link
Author

@maraMaraschino this page has the links to install guides for Notebook and Jupyterlab if you'd like to give that a try! Let us know if after upgrading to the newer versions you still see this issue!

Just upgraded Notebook to version 7.0.0 and the problem is still there, not showing the .so file.

@RRosio
Copy link
Collaborator

RRosio commented Jul 9, 2024

Thank you for the update @maraMaraschino! We were able to reproduce this in JupyterLab (thanks @JasonWeill). We'll go ahead and accept this as a bug!

@RRosio RRosio removed status:Needs Info status:Needs Triage Applied to issues that need triage labels Jul 9, 2024
@krassowski
Copy link
Member

jupyter-server's contents manager has ContentsManager.hide_globs attribute and configuration option.

Default: ['__pycache__', '*.pyc', '*.pyo', '.DS_Store', '*.so', '*.dyl...
Glob patterns to hide in file and directory listings.

You would need to modify the c.ContentsManager.hide_globs option in jupyter_server_config.py or pass via a command line argument (like --ContentsManager.hide_globs='[]'). I think this configuration option should be documented in Jupyter Notebook and JupyterLab.

@nokados
Copy link

nokados commented Sep 1, 2024

Default: ['pycache', '.pyc', '.pyo', '.DS_Store', '.so', '.dyl...

How about removing the .so files from those hidden by default? It's really confusing when you look at the files and expect the code to run from the .py files, but in reality, there are .so files that replace them.

@krassowski
Copy link
Member

If you think it is better removed I would suggest opening an issue and then a PR in the jupyter-server repository as this is where the default is defined :)

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

No branches or pull requests

4 participants