Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

How can I include python script in a HTML file?

<!DOCTYPE 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-script>
      print("Hello World")
    </py-script>
  </body>
</html>
Source by engineering.anaconda.com #
 
PREVIOUS NEXT
Tagged: #How #I #include #python #script #HTML
ADD COMMENT
Topic
Name
9+6 =