Category Python Modules

Modules is one of the best feature of Python. Except some core modules, you can install what you need and keep your Python setup smooth.

SciPy Find Peaks: Detect Signal Maxima

SciPy Find Peaks: Detect Signal Maxima

A sampled signal can have small fluctuations alongside the peaks you want to keep. SciPy’s find_peaks locates local maxima in a one-dimensional signal and can filter them with conditions such as height or distance. I’ll show how to use find_peaks…

How to Use HTMLParser in Python

How to Use HTMLParser in Python

A Python script that reads page titles or links needs a way to pick those values out of HTML. HTMLParser reads supplied HTML and calls functions you define when it reaches tags and text. In this piece, I’ll walk through…

How To Configure Logging In Python

How To Configure Logging In Python

As a Python program runs, its messages are more useful when each one shows its severity and goes to the right place. Python’s logging package lets your code create these records and send them to the console or a file.…

How to Install SciPy in Python

How to Install SciPy in Python

In a notebook, SciPy must be installed for the Python kernel that runs its cells. SciPy is a Python library of numerical algorithms built on NumPy arrays. I’ll show how to install SciPy into a notebook kernel and explain when…

Creating Python Modules

Creating Python Modules

When one Python file needs to use a function defined in another, you can put that function in a module. A Python module is a source file that another file can import. In this piece, I’ll show how to save…