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

Question: How to access files from within a notebook? #217

Open
tharwan opened this issue Nov 7, 2024 · 5 comments
Open

Question: How to access files from within a notebook? #217

tharwan opened this issue Nov 7, 2024 · 5 comments
Labels
tag: question Questions about use, potential features, or improvements

Comments

@tharwan
Copy link

tharwan commented Nov 7, 2024

Maybe I am missing something obvious, but I could not figure out how to access a file from a fs I connected to from within a notebook. Is this possible?

More specifically, I would like to avoid users having to enter the credentials of the file shares into their notebooks and instead us the already present connection to the share.

@timkpaine timkpaine added the tag: question Questions about use, potential features, or improvements label Nov 7, 2024
@timkpaine
Copy link
Collaborator

This has been an open question for us since day 1, we were inspired by https://github.com/jupyterlab/jupyterlab-data-explorer but have yet to come up with a totally coherent UX around what this would look like for jupyter-fs. One of the main problems is that certain interactions are not possible (e.g. can't open a notebook via certain backends since the kernel won't necessarily be on the same filesystem as the notebook).

@tharwan
Copy link
Author

tharwan commented Nov 7, 2024

Thanks for the quick reply! So that means the answer is no? I have re-authenticate from within the notebook?

@timkpaine
Copy link
Collaborator

Thanks for the quick reply! So that means the answer is no? I have re-authenticate from within the notebook?

there is not yet a share interface via jupyter-fs inside the notebook itself. Once #102 is done, we will probably make something available in the notebook like:

import jupyterfs
fsspecs = jupyterfs.get_backends()
s3_fsspec = fsspecs["mys3backend"]

but this is note done. For now, you'll need to access inside a notebook independently.

@tharwan
Copy link
Author

tharwan commented Nov 7, 2024

Thanks!

@tharwan tharwan closed this as completed Nov 7, 2024
@timkpaine
Copy link
Collaborator

I'm going to keep this open as I realize we never made a public ticket about this

@timkpaine timkpaine reopened this Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: question Questions about use, potential features, or improvements
Projects
None yet
Development

No branches or pull requests

2 participants