Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: pyscript index error while calling input from html form
Post: pyscript index error while calling input from html...

Hi, I am trying to embed a python script into an html page via pyscript. I want to call the input from an html form. In python script, if I use input = "word"everything works fine, however if I use wo...
pyscript_dude General Coding Help 2 1,015 May-19-2023, 02:56 PM
    Thread: Embedding python script into html via pyscript
Post: RE: Embedding python script into html via pyscript

@deanhystad, thanks for this detailed great answer. @snippsat, thank you so much, it worked like a charm.
pyscript_dude General Coding Help 7 1,624 Apr-16-2023, 11:17 PM
    Thread: Embedding python script into html via pyscript
Post: RE: Embedding python script into html via pyscript

I have edited the code as follows def my_function(): input_str = Element('input_str').value n = int(Element('n').value) input_list = input_str.split(",") w = []and ...
pyscript_dude General Coding Help 7 1,624 Apr-16-2023, 05:21 PM
    Thread: Embedding python script into html via pyscript
Post: RE: Embedding python script into html via pyscript

I have updated the code as follows: <html> <head> <link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" /> <script defer src="https://pyscript.net/lates...
pyscript_dude General Coding Help 7 1,624 Apr-16-2023, 04:08 PM
    Thread: Embedding python script into html via pyscript
Post: Embedding python script into html via pyscript

Hi everyone, I want to embed a python script into an html page by using pyscript. What I am trying is giving a sequence of integers as "1,2,3,4,5,6" and another integer "n" which divides the length of...
pyscript_dude General Coding Help 7 1,624 Apr-16-2023, 12:13 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020