med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

363
active users

#python

155 posts136 participants42 posts today

I finally tried using a #Quarto doc with #Python in #PositronIDE .

Y'all. 🤩 It's so good. It's so flippin nice. I even added a snippet to easily add a python code cell by pressing `p + tab`.

It finds my `uv` virtualenv, I can just add more code and hit `Ctrl + Enter` and it goes to the console, and everything behaves *mostly* like it does when I'm writing #RStats .

Over the last couple days, I wrote a #Python program that will take the CSVs generated by YNAB and massage them into the right format for the quarterly reports I make for the mister's business. It'll take what was a 30 minute process down to about 3 minutes.

I did spend a bunch of hours on this (and learned a lot about Pandas!), so it may be in the category of not actually saving me time in the end, but it does save me from dread. Oh, how I hated doing all that stuff by hand, so I would just majorly procrastinate on it. Now it's easy, and I am so pleased with myself.

Not all code needs to be an app! You can write code for yourself! It's actually kind of fun! And easier than you think!

Shout out to @AlSweigart for "Automate the Boring Stuff" - I ended up going a different direction code-wise, but the book gave me the idea to try. Thanks, Al!

[I realize that there is potentially a way for me to automate the whole damn process and make it output the full Excel spreadsheet automatically, but that would take more hours, and I'm not sure it's worth it. I've put it on my list of "backburner" projects.]

New VScode extension - Python Environments 🐍

The Python Environments is a fairly new VScode extension from Microsoft that provides tools for creating and managing Python environments. This includes the following features:
🌐Create, delete, and manage environments
📦 Install and uninstall packages within the selected environment
✅ Create activated terminals
🖌️ Add and create new Python projects

marketplace.visualstudio.com/i

To the best of my knowledge, it does not support UV.
License: MIT
#python

#JeRecrute un•e ingénieur•e data/backend #Python / #PostgreSQL pour Ecobalyse, la startup d’État qui calcule combien coûtent à la planète les mer^Wtrucs qu'on achète

PS: ça va faire super malpoli/yolo mais je me casse en vacances ce soir et j'ai vraiment besoin d'un gros break donc je laisse mes adorables collègues dont @vjousse vous filer toutes les infos complémentaires dont vous auriez besoin (désolé copain)

welcometothejungle.com/fr/comp

www.welcometothejungle.comData back-end pour Ecobalyse (MTE/ADEME) - beta.gouv.fr - Freelance - Télétravail totalbeta.gouv.fr recrute un(e) Data back-end pour Ecobalyse (MTE/ADEME) !

- willmcgugan.github.io/announci (2025-07-23, Announcing Toad - a universal UI for agentic coding in the terminal, by willmcgugan.github.io/, @willmcgugan)

--<--
I’m a little salty that neither Anthropic nor Google reached out to me before they released their terminal-based AI coding agents.

You see until recently I was the CEO of Textualize, a startup promoting rich applications for the terminal. Textualize didn’t make it as a company, but I take heart that we built something amazing. There is now a thriving community of folk building TUIs that I am still a part of.

So you will understand why when I finally got round to checking out Claude code and Gemini CLI, I was more interested in the terminal interface than the AI magic it was performing. And I was not impressed. Both projects suffer from jank and other glitches inherent to terminals that Textualize solved years ago.

....

I’m currently taking a year’s sabbatical. When Textualize wrapped up I genuinely thought I was sick of coding, and I would never gain be able to find joy in building things. I’m happy to be wrong about that. I still enjoy coding, and Toad feels like the perfect hobby project for my very particular set of skills. Something I can build while continuing to focus on my physical and mental health (running a startup is taxing).

So I am going to build it.

I am building it.

Here’s a quick video of Toad in its current state: youtube.com/watch?v=EKsCS54xdu

What I have in mind is a universal front-end for AI in the terminal. This includes both AI chat-bots and agentic coding. The architecture I alluded to earlier is that the front-end built with Python and Textual connects to a back-end subprocess. The back-end handles the interactions with the LLM and performs any agentic coding, while the front-end provides the user interface. The two sides communicate with each other by sending and receiving JSON over stdout and stdin.

...

Toad isn’t quite ready for a public release. It remains a tadpole for now, incubating in a private repository. But you know I’m all about FOSS, and when its ready for a public beta I will release Toad under an Open Source license.

With a bit of luck, this sabbatical needn’t eat in to my retirement fund too much. If it goes well, it may even become my full-time gig.

I will shortly invite a few tech friends and collaborators to the project. These things can’t be the work of a single individual and I am going to need feedback as I work. If you would like to be a part of that, then feel free to reach out. But please note, I would like to prioritize folk in the Open Source community who have potentially related projects.

For everyone else, I will be posting updates regularly here and on my socials (link at the bottom of the page). Expect screenshots, videos, and long form articles. Please be patient—you will be agentic toading before too long.

Looking for markdown streaming? : willmcgugan.github.io/streamin (Efficient streaming of Markdown in the terminal)
-->--

Will McGugan · Announcing Toad - a universal UI for agentic coding in the terminalI’m a little salty that neither Anthropic nor Google reached out to me before they released their terminal-based AI coding agents.

#TIL I learned, why my debian #Python #systemd service output wasn't live updating in journalctl. This was a problem which I "temporarily" solved by using screen or tmux when I need to follow the output live. (= for about a decade or so...)

Turns out I just need the flag "-u" for unbuffered output and to set the StandardOutput/-Error to "journal" (which should be the default anyway)

And then suddenly after reloading "sudo journalctl -fu my_service" will produce a live, updating output.

This is not meant as an attack on the awesome work being done with the #Python docs, I'm really just wondering: Does anyone else find it a bit hard to read pages with plenty of code examples? For me those pages feel extremely noisy, with so much trying to grab my attention. I find it somewhat tricky to parse. I can't fully put my finger on whether it's due to the code highlighting, a lack of vertical whitespace or sth like this, but sth about the styling makes it hard to digest. Anyone else?

Świat Pythona, koloryzowane:

— Cześć, napisaliśmy nową bibliotekę dla tej specki.
— Hej, wygląda na to, że implementacja jest niepoprawna i nie pokrywa się z przykładami ze specki.
— Racja, zaraz to naprawimy.

…i to było ponad 3 lata temu.

A mimo to różne projekty zaczynają używać tej biblioteki, która ma jedno, jedyne wydanie jako "pre-alpha" 3,5 roku temu, i w której pierwszy zgłoszony błąd mówi, że jest niepoprawna.