python_tip Profile Banner
Daily Python Tip 🐍🐧 Profile
Daily Python Tip 🐍🐧

@python_tip

Followers
41K
Following
1K
Statuses
2K

One #python tip per day. Do you have any? Send it to https://t.co/AIPDodWr5i. Edited by @simecek, @karlafej, and... you?

Joined February 2017
Don't wanna be here? Send us removal request.
@python_tip
Daily Python Tip 🐍🐧
22 days
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?
0
0
3
@python_tip
Daily Python Tip 🐍🐧
1 month
Happy (20 + 25)**2 Happy sum(i**3 for i in range(10)) Happy sum(i for i in range(10))**2 #HappyNewYear!
0
2
5
@python_tip
Daily Python Tip 🐍🐧
2 months
MarkItDown = a tool from Microsoft to convert Word / Excel / PPT / PDF... to Markdown
21
501
3K
@python_tip
Daily Python Tip 🐍🐧
3 months
@AIWondersPed No, just basic examples. I recommended it to my students for a homework assignment and I am curious how they apply it.
0
0
0
@python_tip
Daily Python Tip 🐍🐧
4 months
🐍 Python environments got easier! uv is the new rust-powered packaging tool that might finally solve the XKCD-famous dependency puzzle Quick start: * `uv run` for most cases * `uv venv` for virtual envs * `uv pip` for packages (don't mix with regular pip!) Fast, simple, cargo-like πŸš€ For more, read * *
0
2
10
@python_tip
Daily Python Tip 🐍🐧
4 months
Automate your virtualenv activation! Using autoenv (, 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 commands echo "echo 'Project: $(pwd)'" >> .env cd ./project # Triggers .env automatically! πŸͺ„
0
1
7
@python_tip
Daily Python Tip 🐍🐧
6 months
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':
0
2
9
@python_tip
Daily Python Tip 🐍🐧
6 months
"Tired of scrolling through Jupyter notebooks on GitHub? Try πŸ‘‰ Just replace 'github' with 'nbsanity' in the URL to get much cleaner view πŸ”— For example #JupyterNotebook
0
1
7
@python_tip
Daily Python Tip 🐍🐧
7 months
#EuroPython2024 videos are live! πŸ“Ί My top 3 ML talks: 1) "From Text to Context..." about combining semantic & traditional search 2) "Scikit-LLM..." because of beginner-friendly NLP with dynamic few-shots 3) "Representation is King": quality dialog embeddings by Adam Zika
0
1
7
@python_tip
Daily Python Tip 🐍🐧
7 months
RT @s_gruppetta_ct: Here's an interesting Python brainteaser that came from a member asking a question on The Python Coding Place forum… C…
0
9
0
@python_tip
Daily Python Tip 🐍🐧
7 months
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 Try it: Inspired by @austin_bingham (@sixty_north) ⚑talk at #EuroPython2024
2
1
12
@python_tip
Daily Python Tip 🐍🐧
7 months
Still digesting #EuroPython2024, but #DjangoConEU 2024 videos just appeared on YouTube! My favorites: - AnΕΎe's "Django, SQLite, and Production" - @scriptogre's "Functional Chatbots" tutorial (not on YT)
0
1
5
@python_tip
Daily Python Tip 🐍🐧
7 months
#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: One package I did not know - beartype = static runtime type checker, easy to use with @beartype decorator
0
1
9
@python_tip
Daily Python Tip 🐍🐧
7 months
@JanPipek ... or you can boost #pandas calculations even without switching to #polars! πŸš€ With GPU, add this to your Jupyter notebook and get cuDF power for lightning-fast data processing! ⚑️ %load_ext cudf.pandas Try it in Colab
0
0
3
@python_tip
Daily Python Tip 🐍🐧
9 months
πŸ“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! πŸ‘‰ 2️⃣ Lightning AI Studios: If you love Google Colab but crave better GPUs and a persistent environment, this is for you. Plus, get 22 free GPU hours on signup! Check it out πŸ‘‰
0
1
6
@python_tip
Daily Python Tip 🐍🐧
9 months
pyspread = pythonic spreadsheet
0
0
9