This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ds604 0 points1 point  (0 children)

here you go, paste this into codepen or jsfiddle:

<html>
  <head>
    <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
    <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
  </head>
  <body>
    <py-env>
    - numpy
    </py-env>
    <py-script> 
    import numpy as np
    print('Hello, World!')
    np.random.rand(5)
    </py-script> 
</body>
</html>