Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile
Daily Python Tip 🐍🐧

@python_tip

One #python tip per day. Do you have any? Send it to bit.ly/pythontip. Edited by @simecek, @karlafej, and... you?

ID: 827002120373207040

linkhttp://bit.ly/pythontip calendar_today02-02-2017 03:54:05

1,1K Tweet

40,40K Followers

145 Following

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

πŸ“Live from #iclr2024 in Vienna! Exploring the booth area, two #Jupyter-like tools have caught my eye: 1️⃣ CoCalc: A scientist-designed platform for collaborative computation. Thanks for the great intro, @BlaecBejarano! πŸ‘‰ cocalc.com 2️⃣ Lightning AI Studios: If you

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

#EuroPython2024 Day 1 πŸ·πŸ’„ Someone on Hacker News described Python type hints as "lipstick on a pig." I kind of agree, but sometimes a pig with lipstick is better than just a pig. Jakub BerΓ‘nek: Writing Python like it's Rust... slides: program.europython.eu/media/europyth… One package I

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

Still digesting #EuroPython2024, but #DjangoConEU 2024 videos just appeared on YouTube! youtube.com/playlist?list=… My favorites: - AnΕΎe's "Django, SQLite, and Production" youtube.com/watch?v=GTDYwE… - Christian Tanul's "Functional Chatbots" tutorial (not on YT) github.com/scriptogre/fun…

Stephen Gruppetta (@s_gruppetta) 's Twitter Profile Photo

Here's an interesting Python brainteaser that came from a member asking a question on The Python Coding Place forum… Can you figure out why the outputs are the way they are for these two similar but not identical bits of code? The answer gives a great insight on iterators…

Here's an interesting Python brainteaser that came from a member asking a question on The Python Coding Place forum…

Can you figure out why the outputs are the way they are for these two similar but not identical bits of code?

The answer gives a great insight on iterators…
Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

Use "named constructors" to create multiple ways to initialize objects class PaperSize: クラスパソッド def iso_a4(cls): return cls(210, 297) def __init__(self, width_mm, height_mm): self.width_mm = width_mm self.height_mm = height_mm

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

#EuroPython2024 videos are live! πŸ“Ί My top 3 ML talks: 1) "From Text to Context..." about combining semantic & traditional search youtube.com/live/vfmS8uwT4… 2) "Scikit-LLM..." because of beginner-friendly NLP with dynamic few-shots youtube.com/live/m1P5baHpP… 3) "Representation is

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

"Tired of scrolling through Jupyter notebooks on GitHub? Try nbsanity.com: πŸ‘‰ Just replace 'github' with 'nbsanity' in the URL to get much cleaner view πŸ”— For example nbsanity.com/jakevdp/Python… #JupyterNotebook

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

AI is changing how we code, but should it change how we teach Python? I've embraced LLMs for coding, especially with pandas, but I'm unsure if beginners should start this way. Anyway, curious about the AI way? Try Andrew Ng's 'AI Python for Beginners': deeplearning.ai/short-courses/…

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

Automate your virtualenv activation! Using autoenv (github.com/hyperupcall/au…), you can: 1. Automatically activate virtualenv when entering a directory 2. Run ANY command when cd-ing into a folder Example: # Set up autoenv echo "source venv/bin/activate" > .env # Or run custom

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

🐍 Python environments got easier! uv is the new rust-powered packaging tool that might finally solve the XKCD-famous dependency puzzle m.xkcd.com/1987/ Quick start: * `uv run` for most cases * `uv venv` for virtual envs * `uv pip` for packages (don't mix with regular

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

This is neat! Instead of writing scraping methods yourself, provide a few examples and let `autoscraper` to do it for you. oxylabs.io/blog/automated…

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

When I started with Python, I was confused by the murky difference between variables and references. πŸ€” This πŸ‘‡ explains it brilliantly: Why Python has No Variables? medium.com/@king_star/why…

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

marimo = Jupyter for serious Python work πŸ”₯ - Pure .py files (git-friendly!) - No more restart & run all - Deploy as scripts OR interactive web apps - Built-in SQL support - Reactive cells that auto-update dependencies marimo.io