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

#PyConAU #PyConAU24 #PyCon #Python #Tech #Programming #Coding #PythonProgramming

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 feature: dark mode! ☀️🌙

This one is for Shiny for , but the 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 #Python Versions on #Ubuntu With #Pyenv :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. 😅

#podcast #django #python #coffee

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 and !

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 quiz!

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

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

Did you know about this optimization tip? 💡

Integers from -5 to 256 are cached, meaning they are preallocated and reused, boosting memory efficiency. 📈

See below where I use "is" to show the ints that are preallocated to the same object = optimized:

gnulinux, to python German
@gnulinux@social.anoxinon.de avatar

Python-Tk: Ein Neofetch-GUI selbst schreiben Teil 1

Der erste Teil einer Einführung in die Python3-Bibliothek Tkinter und der lange Weg zum perfekten GUI.

https://gnulinux.ch/python-tk-ein-neofetch-gui-selbst-schreiben-teil-1

conansysadmin, to python
@conansysadmin@mstdn.social avatar

Not even the priests of the dreaded Snake Cult can harness so mighty a as this. https://cromwell-intl.com/open-source/python-social-media-automation/?s=mc

dubbel, to python
@dubbel@mstdn.io avatar

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?

#ThreatIntel #CTI #malware

ewen, to python French
@ewen@mastodon.fedi.bzh avatar
morenonatural, to emacs Spanish
@morenonatural@todon.nl avatar
debacle,
@debacle@framapiaf.org avatar

@mykhaylo @morenonatural

I would like to see a comparison between the old school () and the new style (, , , ).

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