Skip to content

GR plots are opened when building documentation #5203

@schillic

Description

@schillic

Details

Since v1.41.2, in a Documenter run with plots, a window opens and shows the plot, just like when you use Plots in a REPL normally. Previously, such a window was not opened (and I think that was a useful behavior). This behavior did not occur in v1.41.1. I think this commit is responsible, as it set display to true by default.

Possibly a duplicate of #5202.

Backends

This bug occurs on

Backend yes no untested
gr (default) x
unicodeplots x
pythonplot x
pgfplotsx x
plotlyjs x
plotly x
gaston x

Versions

Plots.jl version: v1.41.2
Backend version (]st -m <backend(s)>): GR v0.73.19
Output of versioninfo():

Julia Version 1.12.2
Commit ca9b6662be4 (2025-11-20 16:25 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, broadwell)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 4 virtual cores)
Environment:
  LD_PRELOAD = /usr/lib/x86_64-linux-gnu/libstdc++.so.6
  JULIA_PKG_PRECOMPILE_AUTO = 0
  LD_LIBRARY_PATH = :/usr/lib64
  JULIA_EDITOR = kwrite

x-ref: JuliaDocs/Documenter.jl#2851

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions