|
Description:
|
|
Watch the live stream:
Watch on YouTube
About the show
Sponsored by us! Support our work through:
Brian #1: pyscript
- Python in the browser, from Anaconda. repo here
- Announced at PyConUS
- “During a keynote speech at PyCon US 2022, Anaconda’s CEO Peter Wang unveiled quite a surprising project — PyScript. It is a JavaScript framework that allows users to create Python applications in the browser using a mix of Python and standard HTML. The project’s ultimate goal is to allow a much wider audience (for example, front-end developers) to benefit from the power of Python and its various libraries (statistical, ML/DL, etc.).” from a nice article on it, PyScript — unleash the power of Python in your browser
- PyScript is built on Pyodide, which is a port of CPython based on WebAssembly.
- Demos are cool.
- Note included in README: “This is an extremely experimental project, so expect things to break!”
Michael #2: Memray from Bloomberg
- Memray is a memory profiler for Python.
- It can track memory allocations in
- Python code
- native extension modules
- the Python interpreter itself
- Works both via CLI and focused app calls
- Memray can help with the following problems:
- Analyze allocations in applications to help discover the cause of high memory usage.
- Find memory leaks.
- Find hotspots in code which cause a lot of allocations.
- Notable features:
- ️️ Traces every function call so it can accurately represent the call stack, unlike sampling profilers.
- ℭ Also handles native calls in C/C++ libraries so the entire call stack is present in the results.
- Blazing fast! Profiling causes minimal slowdown in the application. Tracking native code is somewhat slower, but this can be enabled or disabled on demand.
- It can generate various reports about the collected memory usage data, like flame graphs.
-
|