Это примерно тот код, который я использую с чистым текстом:
Код: Выделить всё
async for chunk in response.receive():
print(chunk.text, end='')
Код: Выделить всё
# Document heading
Intro text
* A bullet point
* Another bullet point
Код: Выделить всё
from IPython import display, Markdown
async for chunk in response.receive():
display(Markdown(chunk.text))
Код: Выделить всё
Document
heading
Intro
text
*
A
bullet point
*
Another
bullet point
Подробнее здесь: https://stackoverflow.com/questions/794 ... on-jupyter
Мобильная версия