docs, standard-tests: how to standard test a custom tool, imports (#27931)

This commit is contained in:
Erick Friis
2024-11-15 10:49:14 -08:00
committed by GitHub
parent 39fcb476fd
commit 409c7946ac
5 changed files with 267 additions and 8 deletions

View File

@@ -1,5 +1,20 @@
{% extends 'markdown/index.md.j2' %}
{% block input %}
```
{%- if 'magics_language' in cell.metadata -%}
{{ cell.metadata.magics_language}}
{%- elif 'name' in nb.metadata.get('language_info', {}) -%}
{{ nb.metadata.language_info.name }}
{%- endif %}
{%- if 'title' in cell.metadata -%}
{{ ' ' }}title="{{ cell.metadata.title }}"
{%- endif %}
{{ cell.source}}
```
{% endblock input %}
{%- block traceback_line -%}
```output
{{ line.rstrip() | strip_ansi }}