Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lack of graphics mode #782

Open
karskii opened this issue Dec 14, 2017 · 0 comments
Open

lack of graphics mode #782

karskii opened this issue Dec 14, 2017 · 0 comments

Comments

@karskii
Copy link

karskii commented Dec 14, 2017

Lack of canvas after run the following script:

In [2]: exec(open("plot_hist.py").read())

This example demonstrates how to create and work with ROOT histogram in rootpy.

WARNING:rootpy.interactive.rootwait] unable to access ROOT's GUI thread either because PyROOT's
finalSetup() was called while in batch mode or because PyROOT
is using the new PyOS_InputHook-based mechanism that is not yet
supported in rootpy (PyConfig.StartGuiThread == 'inputhook' or
gSystem.InheritsFrom('TMacOSXSystem')). wait() etc. will
instead call input() and wait for [Enter]
Hist_pq5SEutBJganNrCTovud9L
my hist
Some Data
1.0
WARNING:rootpy.interactive.rootwait] wait_for_zero_canvases is failing over to input()
press [Enter] to continue

BUT if I run this way:

In [1]: import root_numpy
In [2]: exec(open("plot_hist.py").read())

it gives same warnings but also creates canvas. Is there is any logical explanation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant