Can I use setup.py to pack an app that requires PyQt5? 19.05.2016

Can I require PyQt5 via setup.py? In a word yes, as long as you restrict your support to PyQt5 and Python3. The requirements specified in setup.py are typically provided by requesting packages from the Python Package Index (PyPi). Until recently these packages were source only, meaning that an ... More


How to know the enabled features of a matplotlib installation? 29.04.2016

The optional dependency output you see when installing matplotlib is generated by a set of environment-testers defined in setupext.py. There is a list of these, in the order they are displayed, in setup.py: mpl_packages = [ 'Building Matplotlib', setupext.Matplotlib(), setupext.Python(), setupext.Platform(), 'Required dependencies and extensions', setupext.Numpy ... More



Why are numpy calculations not affected by the global interpreter lock? 07.04.2016

Many numpy calculations are unaffected by the GIL, but not all. While in code that does not require the Python interpreter (e.g. C libraries) it is possible to specifically release the GIL - allowing other code that depends on the interpreter to continue running. In the Numpy C codebase the ... More


How to create a HTML-dialog window in Python with Internet Explorer control? 01.04.2016

You can embed a Internet Explorer window within a Python GUI application by using the wxWidgets WebView component (via wxPython). Unlike e.g. Qt that includes a standardised browser component across all platforms, wxWidgets uses the native browser on the host platform by default. You can also force IE (ignoring ... More




Why do Ipython cells stop executing? 06.01.2016

The asterisk next to a cell [*] indicates that the cell is currently executing. While IPython provides each notebook with it’s own kernel, there is only one kernel per notebook. When that kernel is busy executing code (either a cell, or a series of cells) it cannot accept or run ... More


Fail during installation of Pillow (Python module) in Linux 06.01.2016

There is a bug reported for Pillow here, which indicates that libjpeg and zlib are now required as of Pillow 3.0.0. The installation instructions for Pillow on Linux give advice of how to install these packages. Note that not all of the following packages may be missing on ... More


Partial Least Squares Discriminant Analysis (PLS-DA) 18.10.2015

Partial least squares discriminant analysis (PLS-DA) is an adaptation of PLS regression methods to the problem of supervised clustering. It has seen extensive use in the analysis of multivariate datasets, such as that derived from NMR-based metabolomics. In this method the groups within the samples are already known ... More


Page 1 / 12 »