RSS <== blog page - 2/9 ==> Blog module (68) python (3)

blog page - 2/9

m2r as a replacement of recommonmark


recommonmark was not recently updated and fails with the latest version of Sphinx (1.7.1). See ‘Values’ object has no attribute ‘pep_references’ missing with 1.7.0b1. You should use m2r.


Install spacy on Windows


It is not difficult to install spacy on Windows. The site Unofficial Windows Binaries for Python Extension Packages hosted a compiled version. But I tried:


Build cvxopt on Windows, cvxopt 1.1.9 not compatible with numpy 1.14


I recently started to have an issue with cvxopt.


Python 3.6 and Visual Studio 2017


It does not work unless you install the missing parts. Python 3.6 is compiled with Visual Studio 2015 and this specific compiler needs to be installed. There is a way with 2017, instructions are provided at Creating a C++ extension for Python. I copy paste the line:


ete3 and PyQt5


ete3 now works with PyQt5 due to the pull request #284.


Install pytorch on Windows


You can go there peterjc123/pytorch or type conda install -c peterjc123 pytorch. the setup can be created after unzipping the sources and running example Create a setup from installed packages.


Create a wheel with an installed package


It happens sometimes you install package but you don’t remember exactly you did it. However, you would like to make a wheel from what is installed in folder site-packages. There is probably a better way but I created a local folder orgnized this way:


A few interesting modules


  • GPAW : GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE). It uses plane-waves, atom-centered basis-functions or real-space uniform grids combined with multigrid methods.

  • mypy : an experimental optional static type checker for Python that aims to combine the benefits of dynamic (or “duck”) typing and static typing.

  • scapy : networks, IP, protocols

  • sympy-live : web server to run custom examples

  • wooey : website to execute python script

  • zc.async : processus synchronization

  • zentyal : small business server, includes mails


Issue with scipy 1.0 and statsmodels 0.8


It is difficult to fix a package when there is no error but silent warnings. statsmodels fails with scipy 1.0 because some deprecated functions were removed: chisqprob. I sometimes look into warnings but many packages do not fix them and this is quite difficult to notice yours in that long list. I created a function which fixes it. The documentation contains more information about it.


Last release of basemap.


basemap is discontinued and should be replaced by cartopy. I wonder how long it will take me to replace that dependency by the new one in all the notebooks using it. It won’t disappear before a couple of years but still… Cartopy, New Management, and EoL Announcement.


RSS <== blog page - 2/9 ==> 2018-07 (2) 2018-08 (2) 2018-12 (2) 2019-01 (1) 2019-08 (1)