docs: cell magic to shell block conversion (#3433)

* add handling for blocks that use magic commands like %pip to convert
them into bash
* Apply new logic to another notebook
This commit is contained in:
Eugene Yurtsev
2025-02-13 18:23:49 -05:00
committed by GitHub
parent 9111449ffd
commit 3e1bbd3123
8 changed files with 342 additions and 554 deletions
@@ -5,6 +5,8 @@
```
{%- if 'magics_language' in cell.metadata -%}
{{ cell.metadata.magics_language}}
{%- elif cell.metadata.get('language') == "shell" -%}
shell
{%- elif 'name' in nb.metadata.get('language_info', {}) -%}
{{ nb.metadata.language_info.name }}{% if cell.metadata.exec|default(false) %} exec="on" source="above" session="1" result="ansi"{% endif %}
{%- endif %}