Closed rootsmusic closed 8 months ago
This is JS, not Python:
await pyodide.loadPackage("micropip");
const micropip = pyodide.pyimport("micropip");
await micropip.install("seaborn");
In particular the const
isn't valid Python. But futurecoder doesn't support top-level await
.
import seaborn
works fine in futurecoder and automatically installs it with micropip, so you don't need to do anything.
But futurecoder has no visual output section for you to see plots.
I tried pasting the code block for micropip, but the second line's call to micropip gave a SyntaxError. Is this a bug with pyodide? Thanks.