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

[FR] Provide multiple output formats to IJulia #4288

Open
benz0li opened this issue Jul 27, 2022 · 2 comments
Open

[FR] Provide multiple output formats to IJulia #4288

benz0li opened this issue Jul 27, 2022 · 2 comments
Labels
extension new behaviour

Comments

@benz0li
Copy link

benz0li commented Jul 27, 2022

Currently, only one output format is provided: The first match of https://github.com/JuliaLang/IJulia.jl/blob/1cdaf7e5e65c1221b4a3fac86f63253bea65a0c5/src/display.jl#L19-L28 with what the backend provides.

Please provide every MIME type specified in the first level of that vector.
👉 After executing IJulia.register_mime(MIME("application/pdf")) I would like Plots.js (GR backend) to return both image/svg+xml and application/pdf.

This allows IJulia to use

  • image/svg+xml for plot display in the browser
    + HTML conversion using SVG
  • application/pdf for direct PDF conversion

See JuliaLang/IJulia.jl#771 on a similar discussion about DataFrames.jl.

@benz0li
Copy link
Author

benz0li commented Jul 27, 2022

@benz0li
Copy link
Author

benz0li commented Aug 10, 2022

See MakieOrg/Makie.jl#2195 (comment) for the discussion about vector graphics becoming very large and slow for plots with lots of data points.

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

No branches or pull requests

2 participants