Skip to content

Commit 392ea2b

Browse files
committed
read bytes
1 parent e6ecf8b commit 392ea2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@
314314
"def render_altair(chart):\n",
315315
" b = BytesIO()\n",
316316
" chart.save(b, scale_factor=2.0, format='png', webdriver='firefox')\n",
317-
" return b"
317+
" b.seek(0)\n",
318+
" return b.read()"
318319
]
319320
},
320321
{

0 commit comments

Comments
 (0)