Jupyter notebooks are commonly used in data science. They allow data to be quickly processed and visualized, while at the same time offering interactivity with the given code. Based on an IPython interactive shell providing a rich architecture for interactive computing, the Jupyter notebooks are an essential tool today. We will deal here with an interesting aspect, the addition of animated media within our notebooks.
Before looking into the code and tools proposed by IPython for these kind of expectations, let’s check that you have the required versions of what will be suggested here.
Here are the tools used in…
Lambda functions are often used as anonymous functions. They can easily be passed as a parameter of another defined function (with signature) in order to be exploited. I would like to present you with a few tricks that I have discovered by using these lambda functions.
A rather classical use of lambda functions is to apply it to a so-called iterable element through the map() function. This makes it possible, for example, to apply our anonymous function to each item in a list.
[1, 4, 9, 16, 25]
PhD Student in Machine Learning and Computer Graphics