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

Images don't display #229

Open
davidbrochart opened this issue Dec 27, 2023 · 6 comments
Open

Images don't display #229

davidbrochart opened this issue Dec 27, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@davidbrochart
Copy link
Collaborator

See #162 (comment).

Description

In RTC images won't display.

Reproduce

  1. Install JupyterLab and jupyter-collaboration.
  2. Open an image from the file browser.
  3. See image not shown.

Expected behavior

Images should be displayed.
Jpterm is able to show images using a YBlob.

Context

  • Operating System and version: Linux Ubuntu 22.04
  • JupyterLab version: 4.0.9
  • jupyter-collaboration version: 2.0.0
@davidbrochart davidbrochart added the bug Something isn't working label Dec 27, 2023
@davidbrochart
Copy link
Collaborator Author

With jupyter-collaboration installed, even if I'm not in an active collab session, the image gets uploaded with RTC.

What do you mean "the image gets uploaded"?

@BwL1289
Copy link

BwL1289 commented Jan 4, 2024

Apologies for the confusion. Should have said - "With jupyter-collaboration installed, even if I'm not in an active collab session, and if i upload an image to jupyterlabs, the image gets uploaded with RTC."

did that clarify?

@davidbrochart
Copy link
Collaborator Author

So your issue is not that double-clicking on an image in the file browser doesn't show the image? I don't really get what it means that the image gets uploaded with RTC.

@BwL1289
Copy link

BwL1289 commented Jan 4, 2024

Let me clarify.

My issue, like yours, is that images don't display after I upload them and try to view them from the file browser.

I was also commenting that even when I'm not in an active collaboration session, and I upload an image, the image is marked as being uploaded with RTC. See screenshot. Perhaps this is expected behavior. I'm not familiar enough with the framework to know.
Screenshot 2024-01-04 at 12 44 03 PM

@davidbrochart
Copy link
Collaborator Author

davidbrochart commented Jan 4, 2024

Oh I see now, thanks!
Yes the RTC: prefix in the path identifies the drive, but this is not the issue here.
The problem is that the frontend asks for a document of type file, which corresponds to a YUnicode shared document, but this doesn't handle binary data. Instead, it should ask for a blob which correspond to a YBlob.

@BwL1289
Copy link

BwL1289 commented Jan 4, 2024

Ack! Appreciate the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants