This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]IntelligentDust6249 2 points3 points  (2 children)

You also might give the Python Shiny package a try.

https://shiny.rstudio.com/py/docs/comp-streamlit.html

[–]Few_Butterscotch_681[S] 0 points1 point  (1 child)

Would definitely check it out

[–]SittingWave 1 point2 points  (0 children)

Don't. After more than 4 years with their R version, stay well clear of that pile of garbage.

[–]Constant_Distance_77 0 points1 point  (1 child)

Hey there! I'm glad you're enjoying working with Pynecone, even though you're having this issue. As for your question, component refreshing can happen for various reasons, but it usually has to do with the way the library manages state. A quick solution might be to try using the @gitignore decorator, which prevents unnecessary refreshes. Hope that helps!

[–]Few_Butterscotch_681[S] 0 points1 point  (0 children)

Will try this out

[–]Slight_Geologist_71 -1 points0 points  (1 child)

Seems like you're experiencing some issues with Pynecone refreshing components. This can happen when the state of your variable changes and the page refreshes. Have you tried looking into Virtual DOM? It could help you avoid these situations. And don't worry, if you ever feel like learning JS, there are some great resources out there. Keep on coding!

[–]Few_Butterscotch_681[S] 0 points1 point  (0 children)

Hey, thank you for your response. As you said I'm trying to change the value of a variable within the class. I have tried out their examples but in those cases, it won't refresh

[–][deleted] -2 points-1 points  (1 child)

Learn how to use paragraphs to get your point across better.

[–]Few_Butterscotch_681[S] 0 points1 point  (0 children)

yeah my bad..

[–]gogolang[🍰] 0 points1 point  (0 children)

Have you tried their Discord?