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

Formatters should support multiple MIME types as a standard behavior #1374

Open
jonsequitur opened this issue May 27, 2021 · 0 comments
Open
Labels
Area-Formatting Data and object formatting as HTML and plaintext enhancement New feature or request

Comments

@jonsequitur
Copy link
Contributor

jonsequitur commented May 27, 2021

Currently, output typically only contains a single FormattedValue, though you can provide more than one by creating a DisplayEvent directly.

There should be a way equivalent to Formatter.SetPreferredMimeTypeFor(Type type, string preferredMimeType) that tells the display methods to generate FormattedValue instances for multiple MIME types at one time. The .ipynb format allows for storing multiple outputs of differing MIME types and this can help provide options for rendering and publishing, for example when displaying the notebook in the absence of a running kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Formatting Data and object formatting as HTML and plaintext enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant