r/PyScript • u/Calm-Feedback-1225 • Mar 05 '23
pyscript help
Can someone help me with this? Um... When I use pyscript with html and then run the program, it doesn't show the output. It just shows the python code. Like it will just display print ("hello world") instead of hello world. If someone can help me fix this that would be great. I'm on windows.
4
Upvotes
View all comments
Show parent comment
1
u/Calm-Feedback-1225 Mar 07 '23
<!DOCTYPE html>
<!-- turn on english language-->
<html lang="en" lang="en">
<head>
<!-- tab title -->
<title>Cars imgs</title>
<!-- link with python -->
<link rel="stylesheet" href="<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
</head>
<body>
<div id="text1"></div>
<!-- header for python -->
<py-stript scr ="../carsdesign.py"></py-stript>
</body>
</html>