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

Fixes to rendering output of holoview #6110

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Fixes to rendering output of holoview #6110

merged 1 commit into from
Jun 3, 2021

Conversation

DonJayamanne
Copy link
Contributor

For #6109

@DonJayamanne DonJayamanne requested a review from a team as a code owner June 3, 2021 17:44
@@ -361,6 +361,14 @@ const orderOfMimeTypes = [
'application/json',
'text/plain'
];
function isEmptyVendoredMimeType(outputItem: NotebookCellOutputItem) {
if (outputItem.mime.startsWith('application/vnd.')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do they always start with application/vnd? Would application also apply?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they always start with application/vnd for vendor specific mime types.

let indexOfMimeTypeA = orderOfMimeTypes.findIndex((mime) => isMimeTypeMatch(mime, outputItemA.mime));
let indexOfMimeTypeB = orderOfMimeTypes.findIndex((mime) => isMimeTypeMatch(mime, outputItemB.mime));
// Sometimes we can have mime types with empty data, e.g. when using holoview we can have `application/vnd.holoviews_load.v0+json` with empty value.
// & in these cases we have HTML/JS and those take precedence.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes sense with Bokeh, I believe in the old working version it was rendering with HTML/Js.

@DonJayamanne DonJayamanne merged commit d7af06f into main Jun 3, 2021
@DonJayamanne DonJayamanne deleted the issueHoloView branch June 3, 2021 18:03
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 this pull request may close these issues.

3 participants