mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 15:12:26 +02:00
* Update notebook conversion code * Convert one more file --------- Co-authored-by: Ben Burns <803016+benjamincburns@users.noreply.github.com>
37 lines
969 B
Django/Jinja
37 lines
969 B
Django/Jinja
{#https://github.com/rdbisme/nbconvert/blob/master/share/jupyter/nbconvert/templates/markdown/index.md.j2#}
|
|
{% 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 }} exec="on" source="above" session="1" result="ansi"
|
|
{%- endif %}
|
|
{{ cell.source}}
|
|
```
|
|
{% endblock input %}
|
|
|
|
{%- block traceback_line -%}
|
|
{%- endblock traceback_line -%}
|
|
|
|
{%- block stream -%}
|
|
{%- endblock stream -%}
|
|
|
|
{%- block data_text scoped -%}
|
|
{%- endblock data_text -%}
|
|
|
|
{%- block data_html scoped -%}
|
|
```html
|
|
{{ output.data['text/html'] | safe }}
|
|
```
|
|
{%- endblock data_html -%}
|
|
|
|
{%- block data_jpg scoped -%}
|
|

|
|
{%- endblock data_jpg -%}
|
|
|
|
{%- block data_png scoped -%}
|
|

|
|
{%- endblock data_png -%}
|