Questions tagged [pynecone]
11 questions
3
votes
1 answer
Pynecone - programmatically filling a textarea without breaking user input
My first steps with pynecone: I'm trying to pre-fill a textarea based on checkboxes and dropdowns, and then enable the user to edit the generated text.
However, when I hook up the events such that I can populate the textarea, whenever the user…

Patrick Austermann
- 31
- 4
3
votes
1 answer
pynecone cannot get detail information from item in the cards example (grid + foreach)
This is our expected output.
And this is the current output.
And this is the source code for the current output.
import pynecone as pc
def show_items(item):
return pc.box(
pc.text(item),
bg="lightgreen"
)
class…

Milo Chen
- 3,617
- 4
- 20
- 36
3
votes
2 answers
How to make a responsive PYNECONE WEBSITE
I made a website with pynecone(pure python) that fits only my desktop. How can i make it responsive. Please share a small code with example

Atheeb
- 31
- 1
3
votes
1 answer
How to create a table with buttons element in a column with Pynecone?
The table's last column (action) contains pc.button, that can get data in the row that the button residing in, and then send that data to a State variable.
Some thing like…

huynv
- 49
- 5
2
votes
0 answers
How to remove a component using Pynecone
I am trying to remove a parent hstack when a button is pressed. Looked in the Docs and everywhere but couldn't find anything useful.
From the picture above, when the 'x' button is pressed it should remove the whole option row. Thanks in advance for…

Kamil Abdurahim
- 78
- 6
2
votes
1 answer
pynecone self-hosting get websocket error
This is the document for self-hosting In fact, from the document,
I don't quite understand the meaning of each field in pcconfig.py.
Is there any demonstration of self-hosting?
Or is there a more complete official document?
This is…

Wine Drink
- 53
- 5
2
votes
1 answer
Does pynecone have some function like JavaScript's setInterval()?
I need a function like
javascript's setInterval()?
Do you know where it is?
I read the pynecone's official document.
https://pynecone.app/docs/getting-started/introduction
I still cannot find any function like setInterval() in JS.
I also visit…

Gap Chen
- 75
- 6
2
votes
3 answers
The command pc not found after installing pynecone environment on my Mac computer
I read it https://pynecone.app/docs/getting-started/installation.
Installing
$ pip install pynecone
$ mkdir my_app_name
$ cd my_app_name
$ pc init
zsh: command not found: PC
Why the command pc not found?
After installing, I tried to create a…

Gap Chen
- 75
- 6
2
votes
2 answers
File Upload Handling with Pynecone
I want to create a file sharing website in with pynecone. Is there a go-to way to upload files and save them on the server?
The documentation says to use React components if there aren't any Pynecone specific components, but I wanted to know if…

madurin123
- 31
- 1
1
vote
1 answer
How to import a class in pynecone?
I'm trying to import a class in another python class in my pynecone project. It's giving me error.
import Constants ---> Giving error
ModuleNotFoundError: No module named 'Constants'
Edit: Folder structure:
From helloworld.py, I'm trying to…

Ratan
- 1,747
- 2
- 18
- 27
0
votes
0 answers
How to use on_key_down event in reflex Library to Execute Function on Enter Key Press
I'm working on a web application using the reflex library, and I'm trying to implement a feature where a function is executed when the user presses the Enter key in an input field. Specifically, I have an Input component, and I want to trigger a…

plurplemonster
- 3
- 3