Needed to rename a test fixture in a #Python file, and find/replace wasn't up for the job. So I decided to give #VSCode a go:
I started by pressing Ctrl+F2, for "Change All Occurrences". I think that is basically find/replace, and hence didn't do what I wanted.
Instead, I installed the recommended Python extension, and pressed F2 for "Rename Symbol". That claims to have only made one change, and the references to the function are still using the old name.
So, consider me confused. I'm using #pytest, whereby the test fixtures are referenced as function arguments rather than being called directly. Maybe that's what VS Code is struggling with? Either way, I've now spent more time on this than just manually editing the text.
So I’m trying to write some little static designs with py5 in Thonny, and when I run the program, the sketch window opens but closes immediately, so I can’t really see what I’ve drawn. It only seems to happen when there is no “def draw():” component in the program (so, non-animated programs which only have the “def setup():” part). Is there a setting somewhere to tell Thonny to keep the sketch result open after running? #py5#Python#Thonny
I created a #python script to generate a custom #emulationstation collection of all 5-star #retrogaming games present on #steamdeck. this is a great way to have the best games easily at hand, especially when using large collections.
Hey Sphinx users, does anyone know how to configure a Sphinx project to not use #idN in inline anchors for subheadlines which start with integers (e.g. versions in release notes/changelogs)? I mean, other than prefixing the subheadline with 'v’ or ‘Release’? #python#sphinx
🚀 PyCon AU 2024 is on the horizon! Get ready to submit your talks for Australia's top Python conference. Whether you're a seasoned speaker or a first-timer, we want to hear your unique voice. Check out our guide on crafting a compelling proposal and submit by July 21st.
Dear #lazyweb, is there any good guide to configuring #Jupyter to have multiple kernels associated with distinct #Python virtual environments?
I know that this is a thing that can be done and I have done it, but only by cobbling together the information from docs and partially-useful posts on forums/etc.
I have never encountered a good write-up of it that is beginner-friendly.
(I know that you can install Jupyter into each venv and switch servers, but this is NOT what I am asking about)
I am completely happy using pip, conda/mamba to manage my dependencies and environments.
Lately (and not so lately) I've seen poertry, pixi, hatch, pipenv, pdm, rye, uv,... Of course I feel I'm missing something. What are your thoughts/comments about these tools?
I am excited to present at the Dev AI conference in Paris on June 19!
I am going to run a workshop about the deployment and monitoring of ML pipelines with free and open-source tools. This includes using tools such as GitHub Actions and Pages, Docker, Python, Quarto, etc.
Want to follow along with Nate Ohlson who's working on adopting hardened compiler options for #Python as a part of Google Summer of Code 2024? They're publishing to Mastodon!
🚀 Anúncio: Nova Versão do Módulo Python crossfire!
A nova versão do módulo Python crossfire, desenvolvida por mim e @cuducos está disponível!
✨ Novidades:
Bug corrigido: Agora compatível com Google Colab!
Funcionalidade extra: Parâmetro que desempacota dados aninhados para facilitar a análise.
Ideal para jornalistas de dados e analistas! Cadastre-se na API do Fogo Cruzado e acesse os dados direto no Python.
CMY Tangled Squares, a work originally conceived April 2018 and been evolving and iterating ever since. The abstract works can be enjoyed far away as well as close up. Using only three primary ink colors, the movement and flows of the strokes endlessly flow across the page. Many see things is the swirls of line and color. What do you see?