Computational Thinking, Linear Algebra, Python, Jupyter Notebook, Math.
psutil.Process(os.getpid()) t = process.memory_info() t.vms, t.rss (19475513344, 17856520192) def mem_usage(): process = psutil.Process(os.getpid()) return process.memory_info().rss / psutil.virtual_memory().total mem_usage() 0.13217061955758594 2. TQDM gives you progress bars. from time import