Elaine Wong: So I got some code working, now how do I share it?
Coding by yourself is fun when it works.
But when you don't know why your code doesn't work.... you don't know why it doesn't work.
Elaine Wong: So I got some code working, now how do I share it?
Coding by yourself is fun when it works.
But when you don't know why your code doesn't work.... you don't know why it doesn't work.
Elaine Wong: So I got some code working, now how do I share it?
Sharing Python code is not simple.
Other people need the same version of Python.. install the same libraries... run python in the CLI... then you need a way to share updates... then you might see errors....
Non technical person reading all that would be like ... "what did I just read?"
Elaine Wong: So I got some code working, now how do I share it?
Using Cloud services like Google Collab notebook is one way to share code with other people.
But then you need to handle things like sharing secrets/credentials. This can be an advanced topic if sharing code with non-technical people.
Elaine Wong: So I got some code working, now how do I share it?
Another way to share code with non technical people is Trinket.io but...
Sharing Python 3 code on trinket.io is a paid feature. (No f-strings...)
Elaine Wong: So I got some code working, now how do I share it?
Share code using PyScript. But it needs more refactoring to make Python code work in PyScript.
Elaine Wong: So I got some code working, now how do I share it?
Elaine finds sharing code using Anvil's Py.space is a good solution. It's quite intuitive.
Still couldn't share csv files though.
Elaine Wong: So I got some code working, now how do I share it?
How about build your own web app? How hard would it be?
😅