News for hackers. Stuff that matters.
Re:Pynecone – Performant, customizable web apps in pure Python by anigbrowl on Thursday May 04, 2023 @03:15PM (#35820668)
It’s just Python.

The app state is just a class. State updates are methods in the class. And the UI is a reflection of the state.

It's rare to see this sort of clarity on a landing page. Even more impressed to see that it carried over into the documentation, which is excellent.

I've been a fan of the plotly/Dash framework, but this looks like an exciting alternative, feeling more immediately accessible without some of the quirks (like the pragmatic but weird-feeling 12 virtual columns, for example). I look forward to re-implementing some existing projects for comparison.

Re:Pynecone – Performant, customizable web apps in pure Python by snthpy on Thursday May 04, 2023 @03:48PM (#35821134)
I would love to hear what your experience is.

We've been using Pynecone for a bit and are coming up against some problems.

For example trying to write a wrapper for AG Grid there is no way to pass a custom class attribute so you can't style the output with a theme.

Re:Pynecone – Performant, customizable web apps in pure Python by robopsychology on Thursday May 04, 2023 @04:22PM (#35821550)
I found it very difficult to do things like rich text boxes for a ChatGPT clone I was writing aimed at being child friendly. Ended up giving up when it became a bit spaghetti-ish and after the documentation stopped being useful beyond hello world apps.
Re:Pynecone – Performant, customizable web apps in pure Python by picklelo on Thursday May 04, 2023 @04:32PM (#35821676)
Cofounder of Pynecone here - thanks for the feedback. We’re prioritizing improving our docs and example apps in the upcoming weeks and will have a ChatGPT clone example. Definitely want to improve the onboarding experience and showcase these more complex use cases.
Re:Pynecone – Performant, customizable web apps in pure Python by bjornasm on Thursday May 04, 2023 @05:45PM (#35822518)
Congratulations with the release of this very exciting framework! Can't wait to try it out.
Re:Pynecone – Performant, customizable web apps in pure Python by darkteflon on Thursday May 04, 2023 @10:53PM (#35824717)
That’s awesome - it looks like a really interesting project. Would you be able to address the specific criticism raised by parent, on rich text boxes? Is this a case of a documentation shortfall, or something more fundamental?
Re:Pynecone – Performant, customizable web apps in pure Python by picklelo on Friday May 05, 2023 @12:27AM (#35825220)
We want to support any UI feature that you can build with React/NextJS. We will expand our core to include components like rich text inputs but we also have a way to wrap any React library so you're not locked into the components we provide: https://pynecone.io/docs/advanced-guide/wrapping-react
Re:Pynecone – Performant, customizable web apps in pure Python by ewuhic on Friday May 05, 2023 @12:22AM (#35825192)
Please, add examples of rich authn and authz flows with 2FA and email integration for account verification.
Re:Pynecone – Performant, customizable web apps in pure Python by robopsychology on Friday May 05, 2023 @11:32AM (#35830563)
Hey! Don't take my comment as too negative, I do like the idea & enjoyed using Pynecone right to the point I got stuck. Best of luck improving it, I'll definitely circle back in the future
Re:Pynecone – Performant, customizable web apps in pure Python by anotherpaulg on Thursday May 04, 2023 @04:30PM (#35821645)
I also built a chatgpt UI that was focused on early readers and kids. Feel free to clone and modify if you like.

https://github.com/paul-gauthier/easy-chat

Re:Pynecone – Performant, customizable web apps in pure Python by anigbrowl on Thursday May 04, 2023 @05:05PM (#35822068)
My projects are simple dashboards for internal use so I prioritize ugly and functional over aesthetic. technical verdicts would from someone with more UI experience/affinity would likely help a lot more than my opinion.
Re:Pynecone – Performant, customizable web apps in pure Python by emmanueloga_ on Thursday May 04, 2023 @05:46PM (#35822538)
"state is just a class" brings up so many questions though. How do you serialize state if it is "just a class"? Serializing the state is useful for all sorts of things, including debugging, reloading, and saving and loading application state.

Serializing state together with some code that operates on it may be doable but sounds either complicated or brittle.

Re:Pynecone – Performant, customizable web apps in pure Python by anigbrowl on Thursday May 04, 2023 @06:02PM (#35822736)
It's not that it's the best way to do it; it's just a very straightforward articulation of their design philosophy that helps a first-time visitor know what to expect and what they might like (or not) about it.
Re:Pynecone – Performant, customizable web apps in pure Python by Rimbo on Friday May 05, 2023 @02:22AM (#35825807)
Lisp did this decades ago.
Re:Pynecone – Performant, customizable web apps in pure Python by JPKab on Thursday May 04, 2023 @07:06PM (#35823288)
Several years ago, I worked at an enterprise software company that partnered with plotly and we had to use Dash to build a Tableau-like drag and drop dashboard builder.

Dash had some amazing ideas and architecture, but suffered from too little hardcore developers working on the repo. Pynecone looks a whole lot like it was heavily inspired by Dash, but re-architected with the lessons of Dash power users.

I find the project incredibly impressive and well thought out. I cringe at transpilation into Next.js, but the target code is actually extremely clean and easy to follow/read/debug. Kudos to the team.

Re:Pynecone – Performant, customizable web apps in pure Python by riedel on Thursday May 04, 2023 @10:49PM (#35824703)
How accessible is the output (WCAG, Code 508)? Or how easy is it to make it accessible? I could not find any hints on the website.