mar. 22 janvier 2019

Conda Basics

Concepts We list here some basic commands to manage environments with conda. Conda is a package manager and environment manager. It is included with the Anaconda Python distribution. Thus you should have already installed Anaconda A conda environment is a directory that contains a specific collection of conda packages that …

jeu. 17 janvier 2019
Tags : networkx python

Cartography with the NetworkX library

Networkx is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. Tutorial on Datacamp : network-analysis-in-python-part-1 The following image was generated with networkx. It shows a map of the different scripts in both Python and Matlab: The projects sharing keywords between one …

mar. 15 janvier 2019
Tags : Pelican Doc

Pelican - How to add an article

Pelican is a static site generator, written in Python. This site is based on Pelican. Documentation : http://docs.getpelican.com/en/stable/ There are a great number of tutorial on the internet explaining how to start a Pelican site. In this article we will simply see how to add an …

mar. 15 janvier 2019
Tags : Pelican Doc

Pelican - How to update the Search content

The Search tool for this site is based on Tipue Search. This tool requires the content of the site to be indexed. One way to do this is explained here but it does not seems to work when the site is publish on github pages as it is the case …

lun. 14 janvier 2019
Tags : Cython Tips

Cython - How to compile

Cython is a tool that allows you to compile your code to C, resulting in a huge speed increase. All is needed is slight modification of the python code. The Cython documentation : http://docs.cython.org/en/latest/ If you only need to compile some Cython file (.pyx extension), here …





lun. 04 octobre 2010

Numpy tips

np.where(np.diff(np.sign(x)))[0] Find points of x crossing the threshold T : np.where(np.diff(x > T))[0] Find points of x crossing threshold ascending : np.where(np.diff(x > T) & (x[1:] > T)) Remove points that are close, i.e. given a sorted array …