pyscript Questions

4

Solved

I have made a small space invader game using pygame and I was wondering if I could play it on the browser using pyscript. Is this even possible ? Do I have to rewrite everything ?
Carroty asked 10/5, 2022 at 6:27

3

Solved

I’m learning py-script where you can use <py-script></py-script> in an HTML5 file to write Python Code. As a python coder, I would like to try web development while still using python, ...
Regardless asked 2/5, 2022 at 23:29

2

Solved

When we are coding python code, we typically use packages and modules that we import. For example, when we are coding we may write: import numpy import requests from bs4 import BeautifulSoup When ...
Profit asked 4/5, 2022 at 21:30

2

Solved

Question I came across pyscript hoping to use it to document python code with mkdocs. I have looked into importing my own module. Individual files work. How do I import my own module using pyscript...
Morava asked 7/2, 2023 at 16:33

4

I found a very useful application, that works like html tags for Python applications. Supposedly I could use all the features of Python between tags within a Browserlike php, for example: <py-sc...
Scatology asked 7/5, 2022 at 1:21

1

I have a Javascript code and wanted to implement python functions using Pyscript. Simple Example: let's say I have a function: <py-script> def addOne(a): value = int(a) + 1 return(value) &l...
Lor asked 16/5, 2022 at 22:54

1

Solved

I am trying to call my python function created. But not getting any output and no resource how to achieve. Code : <!DOCTYPE html> <html> <head> <link rel="stylesheet"...
Doge asked 14/5, 2022 at 13:30
1

© 2022 - 2024 — McMap. All rights reserved.