uproot-browser
uproot-browser copied to clipboard
`uproot-browser browse` broswer window not displaying plots
trafficstars
For uproot-browser v0.6.5 the browser window won't show a plot inside a ROOT file when the browser is active
$ micromamba env create --name uproot-browser-issue --yes python=3.11 curl && micromamba activate uproot-browser-issue
$ python -m pip list
Package Version
---------- -------
pip 24.0
setuptools 69.1.1
wheel 0.42.0
$ python -m pip --quiet install --upgrade uproot-browser
python -m pip list
Package Version
------------------ --------
awkward 2.6.1
awkward-cpp 29
boost-histogram 1.4.0
click 8.1.7
cramjam 2.8.1
fsspec 2024.2.0
hist 2.7.2
histoprint 2.4.0
importlib-metadata 7.0.1
linkify-it-py 2.0.3
lz4 4.3.3
markdown-it-py 3.0.0
mdit-py-plugins 0.4.0
mdurl 0.1.2
numpy 1.26.4
packaging 23.2
pip 24.0
plotext 5.2.8
Pygments 2.17.2
rich 13.7.1
setuptools 69.1.1
textual 0.52.1
typing_extensions 4.10.0
uc-micro-py 1.0.3
uhi 0.4.0
uproot 5.3.1
uproot_browser 0.6.5
wheel 0.42.0
zipp 3.17.0
$ curl -sLO https://github.com/scikit-hep/scikit-hep-testdata/raw/main/src/skhep_testdata/data/uproot-Event.root
$ uproot-browser browse ./uproot-Event.root
Dump and Quit results in showing the plot that was trying to be plotted but on the terminal after exiting:
$ uproot-browser browse ./uproot-Event.root
fTracks.fRandom -- Entries: 599392
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
10769.0┤ ██ ███│
│ ██ ███│
│ ██ ███│
│ ██ ███│
│ ██ ███│
│ ██ ███│
│ ██ ███│
│ ██ ███│
8974.2┤ ██ ██ ██ ███ ███│
│ ██ ██ ██ ███ ███│
│██████ ██ ███ ██ ██ ███ ███ ███│
│██████ ██ ███ ██ ██ ███ ███ ███│
│██████ ██ ███ ██ ██ ███ ███ ███│
│██████ ████ ██ ███ ██ ██ ███ ██ █████ ███ ██ ████│
│██████ ████ ██ ███ ██ ██ ███ ██ █████ ███ ██ ████│
│██████ ████ ██ ███ █████ ██ ██ ███ ██ ██ █████ ███ ██ ████│
7179.3┤██████ ████████ ███ ██ ██ █████ ███ ██ ███ ████ ███ ██████ ██ ██ █████ ███ ██ ████│
│██████ ████████ ███ ██ ██ █████ ███ ██ ███ ████ ███ ██████ ██ ██ █████ ███ ██ ████│
│████████████████ ███ ██ ██ █████ ███ ██ ██ █████ ██████ ███ ██████████ ██████████ ███ ██ ██ ██ ████│
│████████████████ ███ ██ ██ █████ ███ ██ ██ █████ ██████ ███ ██████████ ██████████ ███ ██ ██ ██ ████│
│████████████████ ███ ██ ██ █████ ███ ██ ██ █████ ██████ ███ ██████████ ██████████ ███ ██ ██ ██ ████│
│████████████████ █████ ███ ███ ████ ██████ █████ █████ ██████ ██ ███████ ██ ████████ ███ ████████████ ██████████ ███ ██████ ██ ████│
│████████████████ █████ ███ ███ ████ ██████ █████ █████ ██████ ██ ███████ ██ ████████ ███ ████████████ ██████████ ███ ██████ ██ ████│
5384.5┤████████████████ ███████ ███ ███ ████████████████ ███████ █████ ██████ ████ ███ ██████████ ██████████ ███ ███ ██████████████████████████ ███ ████████████ ████│
│████████████████ ███████ ███ ███ ████████████████████████ █████ ██████ ████ █████ ██████████ ██████████ ███████ ██████████████████████████ ███ ███ ████████████ ████│
│████████████████ ███████ ███ ███ ████████████████████████ █████ ██████ ████ █████ ██████████ ██████████ ███████ ██████████████████████████ ███ ███ ████████████ ████│
│██████████████████████████ █████████ ██ ██████████████████████████████ ████████████ ███████████ ██████████ ██████████████████ ████████████████████████████ ███ ███████ ████████████ ████│
│██████████████████████████ █████████ ██ ██████████████████████████████ ████████████ ███████████ ██████████ ██████████████████ ████████████████████████████ ███ ███████ ████████████ ████│
│██████████████████████████ █████████ ██ ██████████████████████████████ ████████████ ███████████ ██████████ ██████████████████ ████████████████████████████ ███ ███████ ████████████ ████│
│████████████████████████████████████ ██████████████████████████████████ ██████████████ ████████████████████████████████████████████ ████████████████████████████████████████ ██████████████████│
│████████████████████████████████████ ██████████████████████████████████ ██████████████ ████████████████████████████████████████████ ████████████████████████████████████████ ██████████████████│
3589.7┤████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████ ███████████████████████████████████████████████████████████│
│████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████ ███████████████████████████████████████████████████████████│
│████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████ ███████████████████████████████████████████████████████████│
│████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████████████████████████████████████│
│████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████████████████████████████████████│
│████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████████████████████████████████████│
│████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████████████████████████████████████│
│████████████████████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████████████████████████████████████│
1794.8┤███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
│███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
│███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
│███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
│███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
│███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
│███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
│███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
0.0┤███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│
└┬───────────────────────────────────────────────┬────────────────────────────────────────────────┬────────────────────────────────────────────────┬───────────────────────────────────────────────┬┘
0.1 249.8 499.5 749.2 998.9
import uproot
uproot_file = uproot.open("uproot-Event.root")
item = uproot_file["T/event/fTracks/fTracks.fRandom"]
The same applies if uproot-browser is installed from conda-forge.