I never thought I'd ever write this, but after close to 40 years of using emacs for everything, I'm thinking of switching to a real IDE for python development. My latest evolution is emacs with elpy, which is pretty powerful as these things go, but I seem to spend more time configuring emacs and less time writing code than I want to. I got clarity on this the other day when I was comparing the toolforge bastion hosts, the cloud VPS images, and the kubernetes back ends to see which versions of emacs each one had and realized this really was the tail wagging the dog.
I'm kind of in "big paradigm shift" mode right now. Moving from Django to Flask. From mwclient to pywikibot. From unittest to pytest. I guess since I'm reinventing the universe, I might as well look at editors too. Other than the basic syntax coloring and auto-completion, I'm looking for good integrations with running unit tests and with git. I also need support for web technologies like HTML, jinja templates, and javascript in the same tool.
I've heard good things about Sublime, but never used it. I'm not averse to purchasing a license if it's worth it.
I've used Eclipse in the past for Java, and was pretty happy with that. I gather that Eclipse + PyDev is pretty neat but never tried it.
I know a lot of people live in Jupyter, but that's not really my style.
What else should I be looking at? What are folks out there using?
I use VS Code on Linux, mainly because I have used the paid version of Visual Studio so much for work.
I have no complaints about the git integration, and it runs the pywikibot unit tests in a pretty way, displaying green ticks if you are lucky.
The debugger works without drama, and there is also a ton of professional level documentation such as https://code.visualstudio.com/docs/python/tutorial-flask
It is also quite helpful with autocomplete and refactoring.
I can't give any recent comparisons with other IDEs because, despite once being a bit of an open source zealot, I've been thoroughly snared by MS.
On Sat, 26 Nov 2022 at 20:47, Roy Smith roy@panix.com wrote:
I never thought I'd ever write this, but after close to 40 years of using emacs for everything, I'm thinking of switching to a real IDE for python development. My latest evolution is emacs with elpy, which is pretty powerful as these things go, but I seem to spend more time configuring emacs and less time writing code than I want to. I got clarity on this the other day when I was comparing the toolforge bastion hosts, the cloud VPS images, and the kubernetes back ends to see which versions of emacs each one had and realized this really was the tail wagging the dog.
I'm kind of in "big paradigm shift" mode right now. Moving from Django to Flask. From mwclient to pywikibot. From unittest to pytest. I guess since I'm reinventing the universe, I might as well look at editors too. Other than the basic syntax coloring and auto-completion, I'm looking for good integrations with running unit tests and with git. I also need support for web technologies like HTML, jinja templates, and javascript in the same tool.
I've heard good things about Sublime, but never used it. I'm not averse to purchasing a license if it's worth it.
I've used Eclipse in the past for Java, and was pretty happy with that. I gather that Eclipse + PyDev is pretty neat but never tried it.
I know a lot of people live in Jupyter, but that's not really my style.
What else should I be looking at? What are folks out there using? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
Thanks for the suggestion. I already had an old version of Eclipse on my laptop, so I made an attempt to use that. After a couple rounds of trying to get it updated to something that would run on my current OS and eventually getting trapped in JVM dependency hell, I swallowed my pride about installing a Microsoft product and gave VS Code a shot. So far, it's working out pretty well. There's a bit of a learning curve, but I'm getting there.
I'm a little surprised there's no easy way to pass one-off CLI flags into tests without mucking with config files, but this stackoverflow thread https://stackoverflow.com/questions/60785825/how-to-pass-command-line-arguments-to-pytest-tests-running-in-vscode confirms that there really isn't. I want to be able to run "pytest -s" to disable output capture https://docs.pytest.org/en/6.2.x/capture.html, which is handy when debugging tests. Oh, well, I've resorted to my old standby of sticking an "assert 0" in the test to force it to fail and generate a full dump :-)
On Nov 26, 2022, at 6:23 PM, William Avery willm.avery@gmail.com wrote:
I use VS Code on Linux, mainly because I have used the paid version of Visual Studio so much for work.
I have no complaints about the git integration, and it runs the pywikibot unit tests in a pretty way, displaying green ticks if you are lucky.
The debugger works without drama, and there is also a ton of professional level documentation such as https://code.visualstudio.com/docs/python/tutorial-flask https://code.visualstudio.com/docs/python/tutorial-flask
It is also quite helpful with autocomplete and refactoring.
I can't give any recent comparisons with other IDEs because, despite once being a bit of an open source zealot, I've been thoroughly snared by MS.
On Sat, 26 Nov 2022 at 20:47, Roy Smith <roy@panix.com mailto:roy@panix.com> wrote: I never thought I'd ever write this, but after close to 40 years of using emacs for everything, I'm thinking of switching to a real IDE for python development. My latest evolution is emacs with elpy, which is pretty powerful as these things go, but I seem to spend more time configuring emacs and less time writing code than I want to. I got clarity on this the other day when I was comparing the toolforge bastion hosts, the cloud VPS images, and the kubernetes back ends to see which versions of emacs each one had and realized this really was the tail wagging the dog.
I'm kind of in "big paradigm shift" mode right now. Moving from Django to Flask. From mwclient to pywikibot. From unittest to pytest. I guess since I'm reinventing the universe, I might as well look at editors too. Other than the basic syntax coloring and auto-completion, I'm looking for good integrations with running unit tests and with git. I also need support for web technologies like HTML, jinja templates, and javascript in the same tool.
I've heard good things about Sublime, but never used it. I'm not averse to purchasing a license if it's worth it.
I've used Eclipse in the past for Java, and was pretty happy with that. I gather that Eclipse + PyDev is pretty neat but never tried it.
I know a lot of people live in Jupyter, but that's not really my style.
What else should I be looking at? What are folks out there using? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org mailto:pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org mailto:pywikibot-leave@lists.wikimedia.org _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
I hate to be that guy but vscode is there, the sheer number of extensions makes it whatever you want, and as a js and swift developer it works well to integrate everything together
On Sat, Nov 26, 2022, 20:47 Roy Smith roy@panix.com wrote:
I never thought I'd ever write this, but after close to 40 years of using emacs for everything, I'm thinking of switching to a real IDE for python development. My latest evolution is emacs with elpy, which is pretty powerful as these things go, but I seem to spend more time configuring emacs and less time writing code than I want to. I got clarity on this the other day when I was comparing the toolforge bastion hosts, the cloud VPS images, and the kubernetes back ends to see which versions of emacs each one had and realized this really was the tail wagging the dog.
I'm kind of in "big paradigm shift" mode right now. Moving from Django to Flask. From mwclient to pywikibot. From unittest to pytest. I guess since I'm reinventing the universe, I might as well look at editors too. Other than the basic syntax coloring and auto-completion, I'm looking for good integrations with running unit tests and with git. I also need support for web technologies like HTML, jinja templates, and javascript in the same tool.
I've heard good things about Sublime, but never used it. I'm not averse to purchasing a license if it's worth it.
I've used Eclipse in the past for Java, and was pretty happy with that. I gather that Eclipse + PyDev is pretty neat but never tried it.
I know a lot of people live in Jupyter, but that's not really my style.
What else should I be looking at? What are folks out there using? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
Well, I've been using vs code for a month now, and I gotta say (much to my surprise) I'm really happy with it. I keep learning new tricks. TIL that you can configure the file explorer to ignore things like build temp directories, egg-info files, etc. But even cooler than that, there's a checkbox to also make it exclude everything that's in your .gitignore. Very neat! The other day I figured out that it checkpoints every save (just like emacs) and you can recover old work via the Timeline view.
I've had a long career loathing almost everything Microsoft does, but I gotta give them credit for coming up with vs code.
On Nov 26, 2022, at 6:23 PM, danboy12342 Mui danboy12342@gmail.com wrote:
I hate to be that guy but vscode is there, the sheer number of extensions makes it whatever you want, and as a js and swift developer it works well to integrate everything together
You could try lsp-mode or eglot, which allow Emacs to use the same Language Server Protocol that other IDEs (e.g. VSCode) use.
https://github.com/emacs-lsp/lsp-mode https://github.com/joaotavora/eglot
Dom
Roy Smith roy@panix.com writes:
I never thought I'd ever write this, but after close to 40 years of using emacs for everything, I'm thinking of switching to a real IDE for python development. My latest evolution is emacs with elpy, which is pretty powerful as these things go, but I seem to spend more time configuring emacs and less time writing code than I want to. I got clarity on this the other day when I was comparing the toolforge bastion hosts, the cloud VPS images, and the kubernetes back ends to see which versions of emacs each one had and realized this really was the tail wagging the dog.
I'm kind of in "big paradigm shift" mode right now. Moving from Django to Flask. From mwclient to pywikibot. From unittest to pytest. I guess since I'm reinventing the universe, I might as well look at editors too. Other than the basic syntax coloring and auto-completion, I'm looking for good integrations with running unit tests and with git. I also need support for web technologies like HTML, jinja templates, and javascript in the same tool.
I've heard good things about Sublime, but never used it. I'm not averse to purchasing a license if it's worth it.
I've used Eclipse in the past for Java, and was pretty happy with that. I gather that Eclipse + PyDev is pretty neat but never tried it.
I know a lot of people live in Jupyter, but that's not really my style.
What else should I be looking at? What are folks out there using? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org