|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {
- "cells": [
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "import IPython.display\n",
- "from dora import Node\n",
- "from IPython.display import clear_output"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "\n",
- "node = Node(\"plot\")\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "\n",
- "for event in node:\n",
- " if event[\"type\"] != \"INPUT\":\n",
- " continue\n",
- " data = event[\"value\"].to_numpy()\n",
- " IPython.display.display(IPython.display.Image(data=data))\n",
- " clear_output(wait=True)"
- ]
- }
- ],
- "metadata": {
- "kernelspec": {
- "display_name": "base",
- "language": "python",
- "name": "python3"
- },
- "language_info": {
- "name": "python",
- "version": "3.10.13"
- }
- },
- "nbformat": 4,
- "nbformat_minor": 2
- }
|