Live data from Hacker News

Pynecone – Performant, customizable web apps in pure Python

pynecone.io

11–20 of 86 posts

Re: Pynecone – Performant, customizable web apps in pure Python

#11
post #7

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 o…

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.

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

#13
post #7

Earlier quoted context omitted.

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.

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.

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

#14
post #12

I love the idea of this! However whenever I see such good abstraction I always worry that when my project gets big and complicated there will be things which are not possible to do, and at that point switching will be super expensive.

Do you have the same feeling when e.g. starting a project using React? Why?

Re: Pynecone – Performant, customizable web apps in pure Python

#15
post #7

Earlier quoted context omitted.

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.

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.

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

#16
post #8

I followed the link to try the increment/decrement example/demo from the landing page ( https://pynecone.io/docs/getting-started/introduction ). There is probably almost a full one second delay between the time I click the "increment" button and the updated count being rendered. Not seeing any network requests so I can't imagine why it would be so laggy.

Yeah we’re only hosting on a single region at the moment so there can be latency depending on your location. We’re working on using edge computing to speed this up.

Re: Pynecone – Performant, customizable web apps in pure Python

#17

It's a beautiful project and close to the Holy grail of fullstack software development (a single framework for building modern Web apps). But, be advised that it's not production ready and quite unstable yet. this week my deploy script was broken because version 0.1.26 was un-released. Which broke my docker file build with pinned dependencies. The file upload component was changed a few times so my UI with file uploa…

For a full-stack framework I'd take something Typescript-based now, because TS has better static typing than Python currently (with all due respect to mypy), and the async story of JS is much easier than that of Python. And also the JIT.

But it's interesting to see that Python is able to advance so much in this direction; I hope it will continue.

Re: Pynecone – Performant, customizable web apps in pure Python

#18
Don't. Just do not do this

Python has a place in scripting

Because you can, does not mean you should, build full applications with it

It is a colossal waste of resources. It leads to genuine problems as it gets bigger that you will only find when you have considerable sunk costs.

This is a terrible idea, it was a terrible idea in 1995 when people did this with Perl, it is a terrible idea now

Use Python for what it is good at, not for what it is dreadful at

Re: Pynecone – Performant, customizable web apps in pure Python

#20
post #14
post #12

I love the idea of this! However whenever I see such good abstraction I always worry that when my project gets big and complicated there will be things which are not possible to do, and at that point switching will be super expensive.

Do you have the same feeling when e.g. starting a project using React? Why?

TBF, since this is itself an abstraction layer over React (well, NextJS), it is strictly a greater concern for this than React.
Post reply on HN