# Drawing an event with root while using iTerm2 on macbook does not produce pop-up graphics

**URL:** <https://root-forum.cern.ch/t/drawing-an-event-with-root-while-using-iterm2-on-macbook-does-not-produce-pop-up-graphics/60227>\
**Category:** Newbie\
**Tags:** tree, graphics, hist, root\
**Created:** [July 16, 2024, 10:19pm UTC](https://root-forum.cern.ch/t/drawing-an-event-with-root-while-using-iterm2-on-macbook-does-not-produce-pop-up-graphics/60227 "2024-07-16T22:19:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![P4zmin0](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/p4zmin0/32/37109_2.png) [@P4zmin0](https://root-forum.cern.ch/u/P4zmin0)\
**Post date:** [July 16, 2024, 10:19pm UTC](https://root-forum.cern.ch/t/drawing-an-event-with-root-while-using-iterm2-on-macbook-does-not-produce-pop-up-graphics/60227/1 "2024-07-16T22:19:48Z")

</div>

Hello,

I am new to root, c++, all of it - sorry if something is obvious.

I needed to double check a particular event in my tree. I did the following in my terminal (iTerm2 running on macOS Monterrey):

```auto
root -l root://cms-xrd-global.cer.ch//store/.....targetfile.root
root [0]
Attaching file root://.......targetfile.root as _file0...
(TFile *) 0x329a9f0
root [1] _file0->ls()
  KEY: TTree Events;1 Events
  (.................)
  (.................)
root [2] Events->Draw("Pileup_nTrueInt")
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
root [3]

```

Although the output suggests that the canvas was created and the contents of that tree are there, there was NO popup showing me the canvas. **Probably has to do with my laptop’s or terminal’s settings** … any wisdom as to how to make it pop up?

ROOT Version: 6.24/07  
I am ssh’d into CMS EL8 interactive cluster, I think root was already here. I did not install it myself.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [July 16, 2024, 10:25pm UTC](https://root-forum.cern.ch/t/drawing-an-event-with-root-while-using-iterm2-on-macbook-does-not-produce-pop-up-graphics/60227/2 "2024-07-16T22:25:21Z")

</div>

Hi,

Thanks for posting and welcome to the ROOT Community!

How did you ssh to the machine? Can you try logging in with `ssh -XY myusername@mymachine`?

Cheers,  
D
