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

Custom mimetypes #78

Closed
rgbkrk opened this issue Aug 31, 2016 · 2 comments
Closed

Custom mimetypes #78

rgbkrk opened this issue Aug 31, 2016 · 2 comments
Labels

Comments

@rgbkrk
Copy link

rgbkrk commented Aug 31, 2016

I'm relying on IRdisplay::publish_mimebundle to send over a custom mime bundle right now. Is this the interface I should come to rely on?

mimebundle <- list('application/json+myspecialtype' = myStructure)
IRdisplay::publish_mimebundle(mimebundle)

It's working well, I just want to make sure it's in line with your direction here and in IRdisplay.

@flying-sheep
Copy link
Member

flying-sheep commented Aug 31, 2016

yes, it is. if there’s a general use case for that mimetype, we can add a function to create it from objects (repr_<name>), but if it’s only of limited use or completely application specific, what you do is the best way.

to expand on it: IRdisplay has a bunch of format-specific shortcut functions and two fundamental functions:

the pages explain what the functions do. display basically chains the other two.

@rgbkrk
Copy link
Author

rgbkrk commented Aug 31, 2016

Cool, that's great then. One is fairly specific and will only be implemented in one library (most likely) and more than one frontend. Example for Plotly.js: nteract/nteract#662

Vega, vegalite, and victory are in the works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants