Skip to content

[PyROOT, Graphics] Cannot pause pyROOT script with input() and see canvases #13744

@dpiparo

Description

@dpiparo

Check duplicate issues.

  • Checked for duplicates

Description

This script used to work, also on MacOS

import ROOT

h = ROOT.TH1F("foo", "bar", 64, -4, 4)
h.FillRandom("gaus")
c=ROOT.TCanvas()
h.Draw()
c.Update()

input()

and allowed to see and interact with the canvas to then end execution upon pressing a key. This results now in a deadlock in master.

Reproducer

import ROOT

h = ROOT.TH1F("foo", "bar", 64, -4, 4)
h.FillRandom("gaus")
c=ROOT.TCanvas()
h.Draw()
c.Update()

input()

ROOT version

master

Installation method

built from sources

Operating system

MacOS

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions