mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 11:47:51 +02:00
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:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user