Skip to content

Suppress opening the GKSQT app when plotting inline #26

@piechologist

Description

@piechologist

When using KittyTerminalImages.jl and Plots.jl with its default GR backend, the GKSQT app is automatically launched in the background. This is a bit annoying and adds to the TTFP.

The Plots.jl package suggests to set ENV["GKSwstype"] = "nul" when you just want to plot inline.

I could make a PR that adds

  • ENV["GKSwstype"] = "nul" to pushKittyDisplay!() and
  • delete!(ENV, "GKSwstype") to popKittyDisplay!().

That makes it possible to switch back and forth between inline and GUI plotting during a REPL session. I tested it locally and it works well.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions