Hi all, any python users? I wanted to dive into python... I started 'learn python the hard way', but it was much to easy. So I'm looking for something more advanced... any suggestions? (And do python users use all these 'add-ons' like numpy and anaconda?)
I learned the tough way 15 years ago: diving in and implementing a National Instruments DAQ interface (I refuse to learn Labview). Installed packages as I discovered I needed them. Learning syntax on the fly (and with the book "Python Cookbook"). Later, pythonXY appeared, with most of the packages an engineer needs pre-installed. More recently, I installed the Anaconda package. Included is Jupyter Notebook, which allows hacking code in your browser. Great way to experiment with code snippets.
Thanks Mark, I agree about labview*. So you always run it with one of these add-on libraries (packages) Anaconda, Numpy, etc.?
Say does anaconda (or others) help you make graphs and such?
Thanks again... (oh for others python XY seems to be only for python2.x and not the later 3.x release.)
George H.
*I knew a tiny bit of labview years ago.. the entire Vanderbilt FEL ran under labview... majorlab view updates could lead to ~six months of code rewrite.
onal Instruments DAQ interface (I refuse to learn Labview). Installed packa ges as I discovered I needed them. Learning syntax on the fly (and with th e book "Python Cookbook").
re-installed. More recently, I installed the Anaconda package. Included i s Jupyter Notebook, which allows hacking code in your browser. Great way t o experiment with code snippets.
Much of python's usefulness is through these libraries (many of which appea r to be created by graduate students -- free labor). For plotting, the mat plotlib package is most common. Not straightforward to use, bet there are many examples of graphs you can adapt to your particular wants. If you are particular about formatting, that can lead you down the rabbit hole of sta ckoverflow.com.
I didn't know anything about Python and a few years ago ended up writing 3000 lines of code for a product. It's a great language -- just get your head around "classes" and here's is a guy that has the best tutorials on youtube-- his user name is thenewboston excellent videos from beginner to advanced
I used Python (for the first time in about 15 years) last year (just as a change from C++) to write a user interface to some custom built hardware. I found Programming in Python 3 (Summerfield - Developer's Library) to be pretty good, as was The Python 3 Standard Library (Hellman) by the same publisher. I'd read Summerfields books on Qt previously and quite liked his approach.
If you're intending to do graphical interfaces I'd recommend PySide2 which is a python wrapper to Qt. You can then use the Qt WYSIWYG tools to build your Gui's. Summerfield also has a book on PyQt (basically the same as PySide but different licensing) which I recommend.
Regarding the packages available, they are really the main reason for learning Python. It's pretty much the language of choice for manipulating data so there are a wealth of interesting packages available.
Apart from the books mentioned you can't go far wrong with anything by the Developer's Library, No Starch Press, O'Reilly or Apress. (Packt publishing have a ton of books on python but I'd stay clear of anything published by them.)
Another think I forgot to mention - jetbrains have a community edition of PyCharm (an IDE) which is nice. Unfortunately it's a Java app so it needs decent hardware to run on.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.