MCPcopy
hub / github.com/mne-tools/mne-python / _html_image_element

Function _html_image_element

mne/report/report.py:237–261  ·  view source on GitHub ↗
(
    *,
    id_,
    img,
    image_format,
    caption,
    show,
    div_klass,
    img_klass,
    title,
    tags,
    embedded=False,
)

Source from the content-addressed store, hash-verified

235
236
237def _html_image_element(
238 *,
239 id_,
240 img,
241 image_format,
242 caption,
243 show,
244 div_klass,
245 img_klass,
246 title,
247 tags,
248 embedded=False,
249):
250 return _renderer("image.html.jinja")(
251 id=id_,
252 img=img,
253 caption=caption,
254 tags=tags,
255 title=title,
256 image_format=image_format,
257 div_klass=div_klass,
258 img_klass=img_klass,
259 embedded=embedded,
260 show="show" if show else "",
261 )
262
263
264def _html_code_element(*, id_, code, language, title, tags):

Callers 1

_src_htmlMethod · 0.85

Calls 1

_rendererFunction · 0.85

Tested by

no test coverage detected