
Daily Python Tip 🐍🐧
@python_tip
One #python tip per day. Do you have any? Send it to http://bit.ly/pythontip. Edited by @simecek, @karlafej, and... you?
Potrebbero piacerti
I once told at a conference dinner: "I’ve got a PhD, but 90% of my work is just applying @fastdotai stuff" A senior researcher nodded: "Same" 😅 So when the new course dropped, I needed ~60s to subscribe (2-wk refund) solve.it.com/?via_id=gifvtb… 15% off (and yes, I get 15% too)
Python 3.14 is here! 🎉 Highlights: free-threaded CPython (PEP 779), deferred annotations (PEP 649), t-strings (PEP 750), multiple interpreters (PEP 734), zstd module (PEP 784), faster UUID + nicer errors. Time to upgrade & test. #Python #Py314 python.org/downloads/rele…
Need pandas + Jupyter for quick analysis but don't want them in your production dependencies? uv run --with pandas --with jupyter jupyter lab One command. Zero environment pollution. ✨ #uv #jupyter #DevTips
Two Python gems I’ve been playing with: 🔁 Tenacity – painless retry logic for anything. No more rolling your own loops + sleeps tenacity.readthedocs.io/en/latest/ ⚡ DumPy – a bold rethink of NumPy: “don’t make me think, just run (fast, on GPUs)” dynomight.net/dumpy/ Both worth a 👀
Today I learned... `uv init` now not only creates a new Python environment but also creates ├── .gitignore ├── README.md ├── main.py ├── pyproject.toml └── .python-version realpython.com/python-uv/#cre…
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
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…
medium.com
Why Python has No Variables?
don’t panic, every language has variables and python is no exception in that but why some peoples say python has no variables it has names…
Happy (20 + 25)**2 Happy sum(i**3 for i in range(10)) Happy sum(i for i in range(10))**2 #HappyNewYear!
MarkItDown = a tool from Microsoft to convert Word / Excel / PPT / PDF... to Markdown github.com/microsoft/mark…
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…
If you want to automatically scrape a website with Python, use `autoscraper` 💡 Its almost magical 🪄 - Instead of writing the scraping logic manually, you provide a few sample values you'd like to scrape, and `autoscraper` will deduce the scraping rules for you. It learns the…

🐍 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…
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…
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/…
"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
nbsanity.com
nbsanity | Jupyter Notebook Viewer
A modern way to view public Jupyter notebooks on GitHub
#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…
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…

Use "named constructors" to create multiple ways to initialize objects class PaperSize: @classmethod 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…
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… - @scriptogre's "Functional Chatbots" tutorial (not on YT) github.com/scriptogre/fun…
#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…
United States Tendenze
- 1. Good Saturday 24.9K posts
- 2. Chalobah 3,998 posts
- 3. Garnacho 10.4K posts
- 4. No Kings 417K posts
- 5. #SaturdayVibes 3,467 posts
- 6. Neto 16.6K posts
- 7. Estevao 9,078 posts
- 8. Emiru 11.8K posts
- 9. #saturdaymorning 1,704 posts
- 10. Joao Pedro 6,972 posts
- 11. Ohtani 239K posts
- 12. Massie 37.9K posts
- 13. Forest 78.8K posts
- 14. Lavia 6,170 posts
- 15. Maresca 14.8K posts
- 16. #dominATE_celebrATE 93.9K posts
- 17. Philippians 2,428 posts
- 18. Babe Ruth 3,979 posts
- 19. World Series 65.7K posts
- 20. George Santos 97.5K posts
Potrebbero piacerti
-
Python Software Foundation
@ThePSF -
Talk Python Podcast
@TalkPython -
Real Python
@realpython -
Scientific Python
@SciPyTip -
PyCoder’s Weekly
@pycoders -
Python Hub
@PythonHub -
Guido van Rossum
@gvanrossum -
Matt Makai | Full Stack Python | Plushcap
@fullstackpython -
Pybites
@pybites -
PyData
@PyData -
Django
@djangoproject -
Python Trending 🇺🇦
@pythontrending -
PyCharm, a JetBrains IDE
@pycharm -
Mike Driscoll
@driscollis -
TestDriven.io
@testdrivenio
Something went wrong.
Something went wrong.