Skip to content

Commit 56c1842

Browse files
authored
Merge pull request #25 from hyanwong/minor-fix
Add the micropip import
2 parents 7d978ed + e02b7c5 commit 56c1842

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/tskit.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348
"source": [
349349
"import sys\n",
350350
"if sys.platform == 'emscripten': # only needed for jupyterlite to load demesdraw\n",
351+
" import micropip\n",
351352
" await micropip.install(\"demesdraw\")\n",
352353
"\n",
353354
"import demesdraw\n",
@@ -362,7 +363,8 @@
362363
" msprime_demography_object.to_demes(),\n",
363364
" colours={\"A\": \"tab:blue\", \"B\": \"tab:orange\", \"C\": \"tab:green\", \"D\": \"tab:red\"},\n",
364365
" log_time=False,\n",
365-
");"
366+
")\n",
367+
"plt.show()"
366368
]
367369
},
368370
{

0 commit comments

Comments
 (0)