Python for Black Holes, WebAssembly, and IoT Gadgets
Python in Modern Science
The First Image of a Black Hole
• Python played a foundational role in capturing the historic first image of a black hole.
• The effort utilized major scientific libraries including NumPy, SciPy, Pandas, Jupyter, Matplotlib, and Astropy.
• The hosts emphasized the critical need to support diversity in STEM, specifically condemning the online harassment faced by Dr. Katie Bowman, who was instrumental in this project.
"I can say well we helped with the entire picture of the black hole thing so whatever you need it for we could probably handle it."
Tools, Libraries, and Ecosystems
Interoperability with WebAssembly
• Wasmer allows developers to run WebAssembly (.wasm) files within Python applications.
• This opens doors for cross-platform development, allowing code written in languages like Rust or C to be executed inside a Python runtime.
Improved Terminal Interaction: Cooked Input
• Cooked Input is a robust library for collecting and validating user data in the terminal.
• It builds on previous tools like Bullet and offers advanced features for cleaning, converting, and validating inputs (email, dates, integers) before they are accepted.
Enterprise and Real-Time Computing
Cloud & IoT
• Azure Functions and IoT Hub enable serverless architectures for processing telemetry data from devices like the Raspberry Pi.
• Real-world applications, such as using sensors on a barbecue grill to monitor heat via Grafana, demonstrate the power of combining hardware with cloud-based dashboards.
Multiprocessing Shared Memory
• New in Python 3.8, the multiprocessing.sharedmemory module allows parallel subprocesses to share memory segments directly, overcoming some limitations inherent in previous approaches.
Developer Productivity
• The hosts discussed the integration of Conda and Jupyter Notebooks into PyCharm, as well as the benefits of IntelliCode for VS Code, which uses contextual usage data to improve autocomplete suggestions.