Learn different ways for changing the figure size in matplotlib, seaborn and plotly. Bookmark this page for future reference.
Category: Python
Numpy “releases” GIL. What does that mean?
Why does dask array or dask dataframe use a threads-based scheduler by default? Doesn’t the GIL play the spoilsport? Or is numpy immune to GIL? Find out here.
How to customize Task Graph visualization in Dask
There are several customizations or decorations you can perform on the task graph generated on calling .visualize() in dask. Read this post to see how.
How to Install Graphviz on Windows
Graphviz installation happens in two parts: Graphviz System Library Graphviz Python Library Now, if you use the Anaconda environment, then the installation becomes quite straightforward. All you need to run is This will install both the system library and the python library. However, if you are looking for the pip install, method, then follow the… Continue reading How to Install Graphviz on Windows
How to configure statement timeout in psycopg2
Worried that your query will run forever and overwhelm your DB or make your app or API incredibly slow? Then learn how to add timeouts to PostgreSQL queries.
Password protection in Dash
Learn how to protect your public dashboards created using dash from unwanted users, by using password protection. 3 steps is all you need!
Deploy a dash app with timer-callbacks on Heroku
Learn how to create a live dashboard (which refreshes periodically automatically, without any button clicks), on dash, and also how to deploy it on Heroku.
Unique compact codes in Python
Learn how to create compact codes in Python using lowercase and uppercase letters, numbers and punctuation symbols.
Find which points of a set lie within a Polygon
Which algorithm do you think helps you find the points of a set that lie within a polygon in the least amount of time? The answer will surprise you.
Fire and forget API calls using requests in Python
Learn a simple hack to fire and forget API calls made using the requests library of python. Use this hack when you aren’t concerned with the API response.