Ben Chuanlong Du's Blog

It is never too late to learn.

Hands on the Resource Module in Python

Tips and Traps

This module provides basic mechanisms for measuring and controlling system resources utilized by a process and its subprocesses. It cannot be used to check resource usage of other processes.

Check Resources Used by Processes Using Python

Use the tracemalloc Library

https://docs.python.org/3/library/tracemalloc.html#module-tracemalloc

The tracemalloc module is a debug tool to trace memory blocks allocated by Python. It provides the following information:

  • Traceback where an object was allocated
  • Statistics on allocated memory blocks per filename and per line number: total size, number and average size of allocated memory blocks

Tips on Gatsby

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

npm install -g gatsby-cli

gatsby develop

Jupyter/Lab Notebooks

https://www.gatsbyjs.com/plugins/@gatsby-contrib/gatsby-transformer-ipynb/

https://dev.to/teaglebuilt/new-gatsby-theme-powered-by-jupyter-1mkl

https://blog.logrocket.com/converting-jupyter-notebooks-blog-posts-gatsby/

References

https://www.youtube.com …

The Elegant Theme for Pelican

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://elegant.oncrashreboot.com/

https://elegant.oncrashreboot.com/add-search