move to an ex_panel.py script in examples