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 :(

with

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: #python #programming

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?

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 ?
https://lists.gnu.org/archive/html/guix-devel/2024-05/msg00227.html

If you’d like to give a hand on and packaging, on mentoring, 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 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’?

SnoopJ, to jupyter
@SnoopJ@hachyderm.io avatar

Dear , is there any good guide to configuring to have multiple kernels associated with distinct 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

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?

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

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

ehmatthes, to django
@ehmatthes@fosstodon.org avatar

django-simple-deploy 0.6.5 is out.

This solidifies support for Platform.sh; multiple deployments should work, and it should work if you have multiple orgs as well.

Now the work shifts to implementing an internal plugin model. I'm really looking forward to this phase of work. :)

https://github.com/ehmatthes/django-simple-deploy/blob/main/CHANGELOG.md

pyOpenSci, to opensource
@pyOpenSci@fosstodon.org avatar

🗺️ Who doesn’t love a good map? And with EOMaps, from Raphael Quast, you have a Python package that makes it easy to visualize, analyze, and compare geographical datasets at your fingertips!

📄 Check out the package (and the beautiful documentation!): https://eomaps.readthedocs.io/en/latest/index.html

linuxmagazine, to ai
@linuxmagazine@fosstodon.org avatar

From this week's Linux Update newsletter: @linuxnews shows you how to get AI to convert your questions into commands in the terminal with Shell Genie. https://www.linux-magazine.com/Issues/2024/280/Shell-Genie

governa, to python
@governa@fosstodon.org avatar

Install Multiple Versions on With :python:

https://itsfoss.com/pyenv-ubuntu/

djangobrew, to Podcast
@djangobrew@fosstodon.org avatar

Adam here! We are currently recording a new episode of Django Brew, but I wanted to document how (and a little bit of why!) we make this podcast. ✨

https://dev.to/adamghill/so-you-want-to-make-a-podcast-242c details our process and shows some of the behind-the-scenes work that goes into every episode. 😅

joe, to ai

Previously, we looked at how to build a retrieval-augmented generation system using LangChain. As of last month, you can do the same thing with just the Ollama Python Library that we used in last month’s How to Write a Python App that uses Ollama. In today’s post, I want to use the Ollama Python Library, Chroma DB, and the JSON API for Kopp’s Frozen Custard to embed the flavor of the day for today and tomorrow.Let’s start with a very basic embedding example.

In the above example, we start by building an array of things that we want to embed, embed them using nomic-embed-text and Chroma DB, and then use llama3:8b for the main model.

https://i0.wp.com/jws.news/wp-content/uploads/2024/05/Screenshot-2024-05-30-at-10.32.52%E2%80%AFPM.png?resize=1024%2C800&ssl=1

So, how do you get the live data for the flavors of the day? The API, of course!

This simple script gets the flavor of the day from a JSON API, builds an array of embedable strings, and prints the result.

https://i0.wp.com/jws.news/wp-content/uploads/2024/05/Screenshot-2024-05-30-at-10.44.23%E2%80%AFPM.png?resize=1024%2C800&ssl=1

The next step is to combine the two scripts.

Two big differences that you will notice between the other two examples and this one is that the date no longer contains the year and I added a statement of what today’s date is, so that you can ask for “Today’s flavors”.

https://i0.wp.com/jws.news/wp-content/uploads/2024/05/Screenshot-2024-05-30-at-10.56.59%E2%80%AFPM.png?resize=1024%2C800&ssl=1

If you have any questions on how this works, later on today I am hosting a live webinar on Crafting Intelligent Python Apps with Retrieval-Augmented Generation. Feel free to stop by and see how to build a RAG system.

https://jws.news/2024/how-to-get-ai-to-tell-you-the-flavor-of-the-day-at-kopps/

#AI #ChromaDB #llama3 #LLM #Ollama #Python #RAG

HelPy, to Finland
@HelPy@fosstodon.org avatar

🐍 🇫🇮 Welcome along to our third meetup of 2024 on Wednesday, 12th June, hosted by #HiveHelsinki and #DeadSetBit!

https://helsinki-python.github.io
https://www.meetup.com/helpy-meetups/events/301336578/

We have two talks lined up:

↗️ How we use Python and Vector Embeddings for Item Recommendation at Wolt by Matias Jokela

🔃 Hybrid sync/async interfaces with AnyIO by Alex Grönholm

❓ And not forgetting the famous #HelPy quiz!

📸 Photos from last time: https://www.meetup.com/helpy-meetups/photos/34491169/

#Helsinki #Finland #Python #meetup

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