Comments (4)
How you start python - with or without -i
flag?
Graphics (normal or web) can normally works only in interactive python mode.
In such case canvas will be updated while input()
is waiting for key.
In none-interactive mode events processing does not work.
from root.
I create separate issue #15498 concerning gPad
in this script.
For me python creates second canvas - without real need.
from root.
Thanks. I do not understand. I proposed a simple reproducer that illustrates a bad user experience, very bad, that makes the system unusable. What is the strategy to fix this bug?
from root.
Again, workaround with calling input()
function in python does not work - neither with web not with normal ROOT graphics. Only when enabling interactive python mode python - i
one gets ROOT events processing working.
This problem well known and I discussed it some time ago with @vepadulano.
To make it working one need to provide special TCanvas
method which only can be used in python and which properly handle ROOT events processing. Like show
method in mathplotlib. Naively TCanvas::Show() can look like:
def TCanvas_Show(self) :
# really display canvas
self._OriginalDraw()
// process event until key pressed or Ctrl-C pressed
while (not_key_press() and not_ctrl_c_pressed()):
gROOT.ProcessEvents()
Most probably it can be introduced in _pythonization/_drawables.py
.
But I am not an python/PyROOT expert and have no idea how it can be properly programmed - including keyboard/signals handling.
from root.
Related Issues (20)
- Possible memory corruption in cling HOT 1
- Draw TCanvas on Macos 14.5 HOT 7
- Rewrite the RDataFrame JIT logic to avoid controlled leaks
- RNTuple: fields with mixed STL types sometimes fail to be filled HOT 6
- [cling] Crash when non-void function does not return a value HOT 1
- Enable additional LLVM checks
- CMakeLists.txt CMAKE_BINARY_DIR not working correctly HOT 2
- Performance regression (slowdown) in ALICE event generation HOT 1
- Compilation issues with gcc 14.1.1, C++20, ROOT v6.30.06 HOT 7
- Infinite recursion in TFile::Open
- Memory leak in TTree __getattr__ pythonization HOT 1
- New CI label for nightly does not correctly report cmake configuration HOT 1
- `RDF::Describe` returns an incorrect file count
- Buffer overflow in TBranch::Init
- [RDF] Some tutorials fail to run when compiled due to jitting issues
- [io] Properly handle failures in custom streamers
- TGFileContainer crashes in pyroot HOT 3
- [ntuple] Cannot properly read late model extension (meta)data
- [ntuple][doc] document RNTuple Anchor format HOT 1
- JITted code changes the execution order of computation graph nodes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from root.