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

Detect media/mime type and return in Runner response #545

Closed
sourishkrout opened this issue Apr 1, 2024 · 1 comment · Fixed by #549
Closed

Detect media/mime type and return in Runner response #545

sourishkrout opened this issue Apr 1, 2024 · 1 comment · Fixed by #549
Assignees

Comments

@sourishkrout
Copy link
Member

sourishkrout commented Apr 1, 2024

The idea is to buffer initial bytes of the runner to auto-detect (best-effort) the media/mime type associated with the output.

Perhaps using libraries such as https://github.com/gabriel-vasile/mimetype or https://github.com/h2non/filetype or other comparable (haven't tried any of them yet).

This will allow the Notebook client to auto-set the renderer type instead of requiring the user to do it.

@sourishkrout
Copy link
Member Author

Lemme know if you have questions @adambabik. Thx!

sourishkrout added a commit that referenced this issue Apr 9, 2024
Mime type is sent in the first `ExecuteReponse` that contains any
stdout; it is sent only once.

Closes #545

Co-authored-by: Sebastian Tiedtke <sebastiantiedtke@gmail.com>
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.

2 participants