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 notebook display #137

Closed
smesnage opened this issue Jan 14, 2023 · 3 comments · Fixed by #138
Closed

Jupyter notebook display #137

smesnage opened this issue Jan 14, 2023 · 3 comments · Fixed by #138

Comments

@smesnage
Copy link
Collaborator

User feedback (Richard!) suggested to display the name of the FTRS file uploaded and name of the database file.
Let me know if this does not make sense, I'll explain what I meant.

@TheLostLambda
Copy link
Member

Zoom! Caught me in a coding mood! Is this what you're looking for?

clip.mp4

If so, here is the code for @bobturneruk to help me sanity-check:

# Deconvoluted Data file upload
file_upload = widgets.FileUpload(
    accept = '.txt,.ftrs', 
    description = 'Upload Deconvoluted Data',
    multiple = False,
    layout = big_button
)
file_name = widgets.Label(value="No file selected...")
def handle_file_change(file):
    file_name.value = file["new"][0]["name"]
file_upload.observe(handle_file_change, names='value')
data_uploader = widgets.HBox([file_upload, file_name])

@smesnage
Copy link
Collaborator Author

Looks good to me, yep, this is what I meant!

@bobturneruk
Copy link
Collaborator

Could you turn this into a PR, please, @TheLostLambda ?

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

Successfully merging a pull request may close this issue.

3 participants