visual studio doesn't detect my python file

80 Views Asked by At

Im trying to use my main.py file in a <script> tag, but it doesn't appear to work like js files do. I tried including it like this Searching python file

<script type="py" scr="~/py/main.py"></script>

and like this Js file

<script type="py" scr="~/js/"></script>

Even using the file path doesn't work

I'm using pyscript to use python on html What can i do?

I was trying to use the file path directly. I get this error: Fetching from URL /py/main.py failed with the error 404 (). Are your filename and path correct? screenshot

0

There are 0 best solutions below