'Renders the Studio preview by rendering each child so that they can all be seen and edited.'

def author_view(self, context):

    fragment = Fragment()
    root_xblock = context.get('root_xblock')
    is_root = (root_xblock and (root_xblock.location == self.location))
    active_groups_preview = None
    inactive_groups_preview = None
    if is_root:
        [active_children, inactive_children] = self.descriptor.active_and_inactive_children()
        active_groups_preview = self.studio_render_children(fragment, active_children, context)
        inactive_groups_preview = self.studio_render_children(fragment, inactive_children, context)
    fragment.add_content(self.system.render_template('split_test_author_view.html', {'split_test': self, 'is_root': is_root, 'is_configured': self.is_configured, 'active_groups_preview': active_groups_preview, 'inactive_groups_preview': inactive_groups_preview, 'group_configuration_url': self.descriptor.group_configuration_url}))
    fragment.add_javascript_url(self.runtime.local_resource_url(self, 'public/js/split_test_author_view.js'))
    fragment.initialize_js('SplitTestAuthorView')
    return fragment
