'Render one axis of the array.'

def _render_one_axis(self, slices_iter, name, global_id, cmap, n_elements, n_jobs):

    global_id = (global_id or name)
    html = []
    (slices, slices_range) = ([], [])
    html.append(u'<div    class="col-xs-6    col-md-4">')
    slides_klass = ('%s-%s' % (name, global_id))
    use_jobs = min(n_jobs, max(1, n_elements))
    (parallel, p_fun, _) = parallel_func(_iterate_mri_slices, use_jobs)
    r = parallel((p_fun(name, ind, global_id, slides_klass, data, cmap) for (ind, data) in slices_iter))
    (slices_range, slices) = zip(*r)
    slider_id = ('select-%s-%s' % (name, global_id))
    html.append((u'<div    id="%s"></div>' % slider_id))
    html.append(u'<ul    class="thumbnails">')
    html.append(u'\n'.join(slices))
    html.append(u'</ul>')
    html.append(_build_html_slider(slices_range, slides_klass, slider_id))
    html.append(u'</div>')
    return '\n'.join(html)
