Can I use setup.py to pack an app that requires PyQt5? 18.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



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




Avoid `logger=logging.getLogger(__name__)` 14.01.2016

You can use logging.basicConfig to define the default interface available through logging as follows: import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)s.%(funcName)s +%(lineno)s: %(levelname)-8s [%(process)d] %(message)s', ) This definition will now be used whenever you do the following anywhere in ... More


Psycopg2 Python SSL Support is not compiled in 14.01.2016

The error you are receiving is caused by a problem with Postgres itself, and not psycopg2. psycopg2.OperationalError: sslmode value "require" invalid when SSL support is not compiled in The above indicates that the version of Postgres that psycopg2 is built against does not have SSL support compiled in. When ... 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 »