all AI news
snoop
Jan. 31, 2024, 6:19 p.m. |
Simon Willison's Weblog simonwillison.net
Neat Python debugging utility by Alex Hall: snoop lets you "import snoop" and then add "@snoop" as a decorator to any function, which causes that function's source code to be output directly to the console with details of any variable state changes that occur while it's running.
I didn't know you could make a Python module callable like that - turns out it's running "sys.modules['snoop'] = snoop" in the __init__.py module!
alex code debugging function import python running state utility
More from simonwillison.net / Simon Willison's Weblog
Fast groq-hosted LLMs vs browser jank
1 day, 2 hours ago |
simonwillison.net
AI counter app from my PyCon US keynote
1 day, 23 hours ago |
simonwillison.net
Understand errors and warnings better with Gemini
2 days, 17 hours ago |
simonwillison.net
Commit: Add a shared credentials relationship from twitter.com to x.com
2 days, 19 hours ago |
simonwillison.net
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US