4 ms·
I work in a small R&D team within a larger engineering organization. I use Python, and it has spread to the rest of my team. However, I've tried to share tools
by analog31 6y ago
I work in a small R&D team within a larger engineering organization. I use Python, and it has spread to the rest of my team. However, I've tried to share tools that I've written in Python with the engineers. The problem is that I have to hand-hold them through the process of getting Python working on their computer at the level of detail of: Here is how you find the Python editor. Double click on it. Click on "open." Find the Python file. Click on "run." Click on "Run Module." Or you can press F5. No, you have to be in the editor when you press F5. Now do you see that a window just appeared? Look at the entries and buttons in the window...
It's really quite harrowing. Whereas if I put the same thing in an Excel file, they can bring it up themselves and I can quickly walk them through using it.
And I don't think my UI's are all that bad. But going from throwing together a simple Tkinter GUI, to something that is totally user proof and self installing is actually quite a lot of work.
- bluedino 6y agoImagine them the first time they used Excel
- shmoogy 6y agoSolution for this is to make flask or django apps. Easier to make user interfaces, and solves packaging / user experience problems.
- analog31 6y agoI've had some success with WinPython, where I just install the whole kit and kaboodle on their computer. Before I share anything, I try running my code on a fresh install of WinPython. Learning to distribute Python code is on my to-do list for next year. We now have a younger programmer on the team who is up to date on this stuff, and has agreed to train me.
- RMPR 6y ago> Learning to distribute Python code Found pyinstaller very handy, in fact that's what I use to create releases for my side project[0]. And if you're creating CLIs, a sibling comment mentioned Gooey. 0: github.com/rmpr/atbswp
- Plastikdusche 6y agoHave you tried pyinstaller? Works pretty well for simple cli tools or tkinter apps. There's already predefined docker images with all of the necessary wine hacks that just consume your code + requirements.txt and spit out a exe.
- hcrad 6y agoPyinstaller + Gooey has been my go-to combo for sharing executable python with simple/intuitive UIs. https://github.com/chriskiehl/Gooey https://github.com/chriskiehl/Gooey
- RMPR 6y ago> https://github.com/chriskiehl/Gooey https://github.com/chriskiehl/Gooey Now that is great