# Using PyROOT When the environment variables for Uranie and PyROOT are properly set, we can access to the classes as follows: {{ "```{" "literalinclude" "} " + parent_dir + "/roottest/uranie/doc/overview/python/example_pyroot.py\n" + ":language: python\n" ":lines: 1-2,12-22,24-25,27-28\n" "```" }} This code should produce a graphic as the one displayed in [](#overview_example_pyroot) {{ "```{" "figure" "} " + parent_dir + "/roottest/build/uranie/doc/overview/python/example_pyroot.png\n" ":name: overview_example_pyroot\n" + figure_scale + "\n" "\n" "Histogram produced using PyROOT\n" "```" }} The instructions above can be executed either through the Python command line, or be written in a file (*myscript.py* in the example below) and run using the command: ```bash python -i myscript.py ``` The *-i* option allows to stay in the Python environment at the end of the execution. This prevents the produced image to be automatically closed.