ImportPython 116 - Recover deleted Python Code, Habits for effective Python learning and more
From ImportPython Blog

by Ankur Gupta

Worthy Read

I used "git checkout --" on the wrong file and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using and

See The 3 Use Cases of How Our DevOp Teams Automate Development

I’m not a Python guy, but it seems that every job I’ve had has slowly pushed me into doing more and more Python until I end up doing nothing but Python all day. And I hate doing Python all day.

Code snippets that makes you wonder what's happening?
code snippets

What’s the weather tomorrow? That’s the question that meteorologists are always trying to get better at answering. This week the developers of MetPy discuss how their project is used in that quest and the challenges that are inherent in atmospheric and weather research. It is a fascinating look at dealing with uncertainty and using messy, multidimensional data to model a massively complex system.

If you use Django framework and want to keep updated with what's happening in the Django world, check out django weekly

When learning a programming language, how do you know whether the effort you're putting in is working or whether you're wasting your time?. We'll be chatting with Michael Herman and Evan Moore about techniques you can use to be more effective during your Python learning adventures.

Let Toptal connect you with the world's most talented developers. Get started today.

The still-in-beta Python distribution uses Math Kernel Library to speed up processing on Intel hardware.


Implementation of Google Brain's A Learned Representation For Artistic Style in Tensorflow. You can mix various type of style images using just One Model and it's still Fast.

One thing we've learned from building complex software for the cloud is that a language is only as good as its debugging and profiling tools. Logic errors, CPU spikes, and memory leaks are inevitable, but a good debugger, CPU profiler, and memory profiler can make finding these errors significantly easier and faster.
memory leaks


machine learning



Collectd is a system statistics collection daemon. It gathers a lot of information about the system it's running on, and passes it on to a software that can process and visualize that information, e.g. Grafana. Collectd already brings along a lot of built-in plugins to gather information about the system load, the network traffic, available entropy, various sensors, etc. But sometimes there's a value that you want to log which is not covered by an existing plugin.
monitoring deployments


pytorch-tutorial - 1160 Stars, 158 Fork
Tutorial for researchers to learn deep learning with pytorch.

clickbaits_revisited - 97 Stars, 13 Fork
Deep learning models to identify clickbaits taking content into consideration.

pymetaterp - 19 Stars, 0 Fork
A python parser that builds python ASTs in 502 lines of python without using modules.

sqlalchemy-mixins - 19 Stars, 0 Fork
Active Record, Django-like queries, nested eager load and beauty __repr__ for SQLAlchemy

newrelic-cli - 13 Stars, 0 Fork
Newrelic client written in Python providing both CLI and Python interfaces.

Ankur has coded and deployed numerous Python software over the last 10 years, at three venture funded startup and a fortune 10 company. He currently heads Numerate Labs. ImportPython is his side project with Python being his go to programming language.

Blog Categories