Woah! I’m giving a talk at #PyConUS titled “Paint by Numbers: A Retrospective on the ‘NumPy Comics’ and Under-Represented Skillsets in Documentation”.
A refreshingly honest tell-all on what went right, what went wrong and what went horribly wrong. 🥲 Check it out at the Documentation Summit, Sunday, May 19!
🐍 NumPy 2 is coming: preventing breakage, updating your code
「 NumPy 2 is a new major release, with a release candidate coming out February 1st 2024, and a final release a month or two later. Importantly, it’s backwards incompatible; not in a major way, but enough that some work is required to upgrade. And that means you need to make sure your application doesn’t break when NumPy 2 comes out 」
Had to invest hours of debugging only to find out that in the end, my #Python interpreter can't find the installed zlib of the system. This way, #numpy could not be imported because of that. 😔
Another taske of: "Never ever use NixOS when you plan to execute Python scripts."
I'll need to summarize my issue and nag the community in order to find out the underlying reason. 😜
NumPy 2 is coming out in couple months! And it's a little backwards incompatible, which means any applications that depend on it (directly or indirectly) might break.
I wrote an article showing how to prevent breakage in the short term, and how to automatically upgrade in the long term.
JOSS publishes articles about open source research software. It is a free, open-source, community driven and developer-friendly online journal. JOSS reviews involve downloading and installing the software, and inspecting the repository and submitted paper for key elements
Please reach out if you are interested in reviewing this paper or know one who could review this paper.
Amanhã, sábado dia 2, 10h, vou fazer uma apresentação de cerca de 40m "Python científico na programação criativa: o que eu aprendi até agora de numpy para usar nos meus desenhos", que deve depois ficar gravada.
Nos sábados 9 e 16 de dezembro, 10h vou fazer 2 encontros de 2h, via Google Meet: "Python para quem curte Processing"
Para participar dos encontros peço uma contribuição de R$100 por encontro, ou o quanto você conseguir contribuir, via pix (46c37783-5edb-4f1c-b3a8-1309db11488c) ou PayPal.
I have a #python problem. A list of lists like [[1,2,3], [4,5,6], [7,8,9]] should be turned into a flat list. And every last value (position -1) of a list should be summed with the first value of the next list (position 0). The result of the example would be [1,2,7,5,13,8,9]. Any suggestions how to solve this in an elegant and pythonic way? Solutions using #pandas or #numpy are welcome, too!
Such a pity that the Processing Foundation has in all these years abandoned Python... but... now we have #py5 and #Python + #numpy + #Processing has a future!
I'll see if I can remove the matplotlib dependecy and use py5 for boids in the next weeks. I have both a bio-simulation educational demo and a "hey, I'm learning numpy in the context of creative coding" presentation in the coming weeks.
Just kidding, but it start s with random walkers, and tackles cellular automata, fractals, and agents (flocking boids), all themes found in Shiffman's book!
Proposta de palestra que mandei hoje: #Python científico na #ProgramaçãoCriativa: o que eu aprendi até agora de #numpy para usar nos meus desenhos
Uso Python para fazer os meus desenhos, uma linguagem interpretada que tem a fama de ser lenta. No ecossistema do Python, a biblioteca numpy se destaca como pilar da computação científica, fazendo operações com matrizes de maneira muito eficiente. Para usar numpy nos meus sketches, estou aos poucos aprendendo a pensar de maneira "vetorizada" evitando os lentos laços de repetição do arroz com feijão no Python, e gostaria de compartilhar um pouco do que estou aprendendo.
@rye Unfortunately, you've hit my exact areas of anti-#expertise. I've never used #Jupyter. So my suggestions are probably wrong or things you've already tried.
How are you storing the data? As plain Python objects, #numpy arrays, #Pandas#dataframes? If using native Python datatypes, it will use a ton more memory.
Have you looked at packages on PyPI? There are a bunch of hits for "sankey" - some of them use d3.js, but others don't, and might work better.