Skip to content

Feature request: Provide multiple output formats to IJulia #2195

@benz0li

Description

@benz0li

Currently, only one output format is provided: png by default; otherwise what is set by the activate! function (e.g. CairoMakie.activate!(type = "svg"), but only if there is a match with https://github.com/JuliaLang/IJulia.jl/blob/1cdaf7e5e65c1221b4a3fac86f63253bea65a0c5/src/display.jl#L19-L28.

Please provide every MIME type specified in the first level of that vector.
👉 After executing IJulia.register_mime(MIME("application/pdf")) I would like Makie.js (CairoMakie) 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 JuliaPlots/Plots.jl#4288 about the same feature request for Plots.jl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CairoMakieThis relates to CairoMakie, the vector backend for Makie based on Cairo.Integrationwith other packagesMakieBackend independent issues (Makie core)maybe outdated/fixedTODO: review

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions