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

uproot-browser browse broswer window not displaying plots #164

Open
matthewfeickert opened this issue Mar 1, 2024 · 0 comments
Open

uproot-browser browse broswer window not displaying plots #164

matthewfeickert opened this issue Mar 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@matthewfeickert
Copy link
Member

matthewfeickert commented Mar 1, 2024

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

uproot-broswer-fail

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"]

image

The same applies if uproot-browser is installed from conda-forge.

@matthewfeickert matthewfeickert added the bug Something isn't working label Mar 1, 2024
@matthewfeickert matthewfeickert changed the title Broswer window not displaying plots uproot-browser browse broswer window not displaying plots Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant