def is_jframe_request(request):
 return (request.META.get('HTTP_X_HUE_JFRAME') or (request.GET.get('format') == 'embed'))

def is_jframe_request ( request ) : return ( request . META . get ( 'HTTP_X_HUE_JFRAME' ) or ( request . GET . get ( 'format' ) == 'embed' ) )
the jframe container uses ?format=embed to request embeddable contents .