Some “old” Python packages
The reason why I've mentioned legacy code in the last post is that I've recently reopened an old project of mine (which I'll expand upon in another post), and I've immediately seen a number of Python packages that either are outdated, have undergone a number of changes, or simply I have forgotten about.
pylab
, a Matplotlib plotting interface, has been replaced bypyplot
.mplot3d
, used in Matplotlib to create 3D plots, now does not require to be imported explicitly.- PyQt, the Python bindings to the Qt framework, is now at version 6. Obviously this changes some of the API.
- VPython, an easy-to-use 3D library that I've used quite a lot in the past, now defaults to using a Jupyter notebook rather than a standalone viewer.
- I had largely forgotten about Mayavi, an interactive 3D data visualization library. I'll need to take a look at it again. A small practical note:
pip install mayavi
does not work with version 4.8.1; instead, usepip install https://github.com/enthought/mayavi/zipball/master
. - wxPython, my favourite Python GUI toolkit, and pyqtgraph, a more specialized graphics and GUI library, still seem largely the same. I have just not used them in a while.