Status: Initializing...
Full source can be found here

Example 1


You can execute any Python code. Just enter something in the box below and click the button. You can also import packages, but keep in mind that this will take some time to download them (see status in the top right corner)



Output:


Example 2


This example demonstrates the interaction between html dom and python. We define a function plot which returns an image as a base64 string. By running this code, pyodide will download all required packages and then execute the code. This may take some time (see console for more info). Feel free to edit this code.



Now you can plot a normal distribution. The image will be loaded into the img tag.

mu:

sigma: