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?
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.
Reported 5 malicious #Python packages to #PyPI: numberpy, tqmmd, pandans, openpyexl, reqwestss all by the same user leemay1782.
All with the same "functionality", getting commands via a socket from dzgi0h7on1jhzdg0vknw9pp9309rxjl8.oastify[.]com and executing it.
I don't think I saw the setup.py entry_points being used as a trigger mechanism before?
Wait, what? Building #Linux now (e.g. since [1], which is in 6.10-rc1) requires #python[2]? At least when building the msm graphics driver? Uhh, interesting. 🧐
pro tip: learning this the hard way, if you're trying to fix linter issues based on ouput with #python or #typescript start fixing from the bottom of the output because if you start on the top then all of your changes will effect the downstream line number references.
Another example of why you want to optimize your code before switching to parallel execution: an image processing algorithm where I get a 15× speedup by replacing generic APIs with specialized datastructures that allow reducing repetitive execution.
How do I find people (especially women and POC and LGBTQ+) who started as scientists and somehow found their way to programming and love it so much but were never formally trained and so they just figure it out as they go but they make it work anyway?? Too specific?? (I’m a half #filipino woman and ally, let’s be pals?) #python#rstats#diversityintech
How are you supposed to distribute programs written in #python these days? You used to be able to package it up and put it on PyPI and tell people to just pip install it, but now that pip doesn't work without a virtualenv, what's the replacement?
I don't view telling people to pass --break-system-packages to be a good solution, I would rather want to avoid telling users to "break system packages"
I don’t know if the Mojo language is going to become the thing or not, but this post on memory management and ownership, by Chris Lattner no less, is absolutely worth your time. 👾
Dear #python#lazyweb how do I create an instance of a dataclass with only some of the values specified? I can't seem to find a way to specify attribute names in the constructor, must I always just provide values in the order that they are specified in the class definition?
Join us to connect with folks who use Python in a vast number of ways: to solve problems around them, or make the world just a bit nicer or more fun, or just to make something small and lovely! If you’ve never programmed before, this is a great chance to see what you can do with Python. If you’ve used it for years, it’s a great chance to see different approaches!