Skip to content

[FR] Provide multiple output formats to IJulia #4288

@benz0li

Description

@benz0li

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions