All Questions
105 questions
0
votes
0
answers
118
views
Why is my PyScript code not working when trying to get input values from a form and send them to the backend?
I am trying to use PyScript to handle a form submission, get input values, and send them to a backend using a custom Python function. However, when I try to submit the form, it doesn't seem to trigger ...
1
vote
1
answer
42
views
Flask 405 Method Not Allowed for POST request from PyScript
I'm working on a Flask project where I need to send data from a PyScript (running in the browser) to the Flask backend using a POST request. However, when trying to make a POST request from the ...
0
votes
0
answers
55
views
making recursive loop more efficient in a number generating function
i have this program where i ask the user to input the weight of plants that were harvested and then how many plants total were harvested, this then generates a list of numbers within a range of +100 ...
0
votes
0
answers
88
views
How to use pyscript to generate a response to HTML dropdown selection?
I'm learning how to use pyscript. One task I want to perform is to make a response to a dropdown menu selection, such as printing out a message. However, my code below doesn't work. It shows the ...
1
vote
1
answer
221
views
PyScript <script type="py-editor"> Error Unable to use SharedArrayBuffer due insecure environment
I'm using PyScript to run a simple Python script in my HTML file to display a pandas DataFrame. However, after loading the page in browser and clicking the run button of the code block I'm ...
0
votes
1
answer
37
views
py-click isn't responding with the function in python
Here is my HTML code:
<!DOCTYPE html>
<html lang="en" class="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" ...
0
votes
1
answer
114
views
I have a Python file that I want to run in an HTML file when a button is pressed using PyScript. How would I do this?
I have a Python file called main.py, which I want to run when a button is pressed in a website I am creating, but I'm unsure how to go about this. I have looked at several different examples on the ...
0
votes
1
answer
91
views
how to display the results of a python program in a html files output [closed]
I'm trying to create an extension that searches google and allows the user to access the first 10 or so results.
I did the google search code in python and have the code for an extension but I don't ...
0
votes
1
answer
97
views
PyScript app that scapes text from the html of a inputted URL only refreshes page when submitted
I'm new to programming so I don't know how on or off the mark I am but either way I'm stuck.
I wanted to try making a webpage that uses a python script to scrape all the text from the html file of a ...
1
vote
1
answer
58
views
Chatbox does NOT work, after translation from Javascript to Pyscript
I had a chatbox in HTML created based on Javascript. Now I am trying to translate the Javascript code to Pyscript, to better streamline the data analytics tools. However, after the translation, the ...
1
vote
1
answer
612
views
Using files in Pyscript
I need to use some files in my Pyscript algorithm, and I know Pyscript can´t access local files because of a security issue. But my question is, can I somehow upload those files to a virtual file ...
1
vote
1
answer
125
views
Transfer data from Javascript to Pyscript
Im trying to build a website where you have a canvas, 28x28 sized and you draw a number. This is all handled through classic HTML, css and Javascript. Hovewever, once the image is drawn, I want to ...
1
vote
1
answer
78
views
How do I use Neo4j with Pyscript?
I want to have a webpage run the Python program that connects to a Neo4j Database. The code must be run on the clientside device, and for parity reasons rewriting the code to be not Python is ...
-2
votes
1
answer
63
views
while using py-script in html I am facing some issues [closed]
while using py-script in html i got this error:-
ERROR image you can check here by opening the link
i watched youtube videos but can't find any solution, i need to solve this error as soon as possible,...
0
votes
1
answer
305
views
How do I display JSON data in HTML using Py-script and Pandas?
I'm working on this small project using JSON for the first time. This is also the first time I got back into programming in a while, so I'm a little rusty. Anyways, I've been trying to get Python to ...