Try using __hyrepr__ magic method if available