leanpub, to python
@leanpub@mastodon.social avatar

The course Dirty Data Dojo: Cleaning Data (Excel & Python) by Lee Baker is on sale on Leanpub! Its suggested price is $119.00; get it for $49.50 with this coupon: https://leanpub.com/sh/fwmKxsmd

webknjaz, to python
@webknjaz@mastodon.social avatar

One friend of mine wrote a blog post on his @homeassistant setup:

"Home Assistant helps me survive during missile and drone attacks. Here is how." https://denysdovhan.com/home-assistant-config/config/war/

saving lives IRL y'all!

villares, to python Portuguese
@villares@pynews.com.br avatar
jscholes, to python
@jscholes@dragonscave.space avatar

Needed to rename a test fixture in a file, and find/replace wasn't up for the job. So I decided to give 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 , 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.

ramikrispin, to ArtificialIntelligence
@ramikrispin@mstdn.social avatar

(1/2) Congratulations to my friend Lior and his co-author Meysam for the release of their new book - Mastering NLP from Foundations to LLMs 🎉

I met Lior a few years ago at a conference, and since then, I have been following his work in the field of NLP ❤️.

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

Ever wondered how to debug a hanging test in ?

pip install pytest-timeout
pytest --timeout=N_SECONDS

To dump the whole stack trace you can add --timeout_method=thread as well.

Here is an example:

mblayman, to django
@mblayman@mastodon.social avatar

🐍 Are and similar? If you want to contrast two of the biggest web frameworks, this article can help you compare the offerings. https://www.mattlayman.com/blog/2021/are-django-flask-similar/

ThomasAlbin, to space
@ThomasAlbin@astrodon.social avatar

Help. How do I apply a Kernel Density Estimator using the Haversine metric for the entire sky map :(

#space #science with #python

conansysadmin, to python
@conansysadmin@mstdn.social avatar
levlaz, to python
@levlaz@hachyderm.io avatar

spent an hour debugging jinja template before realizing I was passing in the list variable but not by name. :facepalm:

mitten, to python
@mitten@social.lol avatar

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

ronald, to python
@ronald@ohai.social avatar

I created a script to generate a custom collection of all 5-star games present on . this is a great way to have the best games easily at hand, especially when using large collections.

how to do it?

  1. copy the script from https://pastebin.com/rjam3wYp and name it create.py
  2. run it on your steamdeck by running 'python create.py'
  3. start emulationstation, enable custom collections and voila! all the best games now show in a single list!
civodul, to guix
@civodul@toot.aquilenet.fr avatar

Fellow hacker Ricardo Wurmus takes a break, maybe that’s an opportunity for you to help #Guix?
https://lists.gnu.org/archive/html/guix-devel/2024-05/msg00227.html

If you’d like to give a hand on #CRAN and #Bioconductor packaging, on mentoring, #Python packaging, or Cuirass CSS+JS, get in touch with Ricardo!

jezdez, to python
@jezdez@publicidentity.net avatar

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

pyconau, to python
@pyconau@mastodon.pycon.org.au avatar

🚀 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.

Join us: pycon.org.au/program

SnoopJ, to jupyter
@SnoopJ@hachyderm.io avatar

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)

treyhunner, to python
@treyhunner@mastodon.social avatar

For single-line comments, Python uses the octothorpe character (#), also known as pound, number sign, crunch, and of course, the hashtag character

Read the full article: Multiline comments in Python
https://trey.io/a5O8qe

#Python

pybonacci, to python
@pybonacci@mastodon.social avatar

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?

#python

grrrck, to python
@grrrck@fosstodon.org avatar

I made a little TikTok about my all-time favorite new #Shiny feature: dark mode! ☀️🌙

This one is for Shiny for #Python, but the #RStats version will be dropping soon so follow the @Posit channel to make sure you catch it!
https://www.tiktok.com/t/ZTL7qM1SK/

ramikrispin, to opensource
@ramikrispin@mstdn.social avatar

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.

More details are available on the conference website👇🏼
https://events.linuxfoundation.org/ai-dev-europe/

Thanks to the Linux Foundation and the conference organizers for the invite!

jimfl, to python
@jimfl@hachyderm.io avatar

Wanted to find the Monty Python “Argument Clinic” video. Searched for “python argument” which was a mistake.

“That wasn’t an argument just then.”

“Yes it was”

“You just typed some letters with minus signs in front of them.”

#python #montypython

mathsppblog, to python
@mathsppblog@fosstodon.org avatar

Just used operator.itemgetter to reorder values of a dictionary.

Quite neat snippet of code:

from operator import itemgetter  
d = {"a": 1, "b": 2, "c": 3}  
it = "cab"  
print(itemgetter(*it)(d)) # (3, 1, 2)  

#python

sethmlarson, to python
@sethmlarson@fosstodon.org avatar

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!

https://fosstodon.org/@nohlson@social.python-gsoc.org

FelipeSMBarros, to python Portuguese
@FelipeSMBarros@mastodon.social avatar

🚀 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.

Mapa da região de recife apresentando pontos indicando a localização de tiroteios e os motivos daods mesmos, como "Ataques a civis", "Ação Policial", entre outros.

paulrickards, to genart
@paulrickards@mastodon.social avatar
paulrickards,
@paulrickards@mastodon.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines