Here is a small code to show only active Instances.
Use instance.visible
to hide or show instances
#MenuTitle: Show Only Active Instances
# -*- coding: utf-8 -*-
Font = Glyphs.font
for instance in Font.instances:
instance.visible = instance.active