-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Add custom MIME types to display_dict. #755
Conversation
Ping @stevengj Could you please take a look at this? |
src/execute_request.jl
Outdated
MIME("text/plain"), | ||
MIME("image/svg+xml"), | ||
MIME("image/png"), | ||
MIME("image/jpeg"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
png and jpeg should be in a vector to have the same behavior as before
src/execute_request.jl
Outdated
[MIME("application/vnd.vegalite.v2+json"), MIME("application/vnd.vega.v3+json")], | ||
]) | ||
|
||
register_ijulia_mime(x::Union{MIME, Vector{MIME}}) = push!(ijulia_mime_types, x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ijulia here since that is already in the module name. i.e. IJulia.register_mime
@stevengj I believe I've resolved all of those |
Done! :^) |
😄 Thanks for the guidance! |
Thanks for persisting on this! |
Could you do a minor release so that I can depend on this in WebIO? |
I was hoping to merge #756 first once it is ready, but I will check back later today. |
tagged 1.13 |
Fixes #749.
I think this is especially prudent given JupyterLab's focus on implementing custom MIME types rather than just rendering everything as HTML with JavaScript.
Very much open to comments (especially with regards to style and best practices!) and critiques.