python

Back Open Paginator
09.08.2025 16:36
ubuntu_touch (@ubuntu_touch@mstdn.social)

Regresion sklearn con plano 3D

Mostrar 4 parámetros originales del plano
Agregar ruido normal a cada uno de los parámetros
Comparar parámetros originales VS parámetros encontrados

#Python #ML #Regresion Guanacaste Matematicas #Anzoategui software libre





Show Original Post


09.08.2025 16:18
villares (@villares@ciberlandia.pt)

@ukscone WOW!
#Python #OpenCV #MicroPython!




Show Original Post


09.08.2025 15:35
gregly (@gregly@retro.pizza)

I’ve been playing around with Python a bit this morning. My knowledge of Python is minimal.

At work, I primarily code in Ruby on Rails. Everybody likes to shit on Ruby on Rails for being “old tech”.

But let me tell you: Bundler absolutely beats the SHIT out of pip for dependency resolution and ease of use, hands down. There is no contest.

I am amazed that modern coding is primarily based on JavaScript and Python, two languages with toolchains that are LEGENDARY TRASHFIRES. I swear, using various 8-bit embedded C toolchains fifteen years ago was less esoteric and frustrating than dealing with this bullshit.

#python #pip #ruby #rubyonrails #oldmanyellingatclouds #programming




Show Original Post


09.08.2025 15:25
hn50 (@hn50@social.lansky.name)

Representing Python notebooks as dataflow graphs

Link: marimo.io/blog/dataflow
Discussion: news.ycombinator.com/item?id=4

#python




Show Original Post


09.08.2025 14:32
alexzap (@alexzap@mastodon.social)




👉 Synergizing MS Excel & Python Batch Processing Hands Down

A Beginner-Friendly One-Stop Python Automation Shop of Excel Tasks & Reports to Increase Productivity in the Workplace: from Fast File I/O to Low-Code AutoEDA & Interactive Dashboards for Business to Grow

👇

medium.com/python-in-plain-eng





Show Original Post


09.08.2025 14:03
fediverse (@fediverse@app.wafrn.net)

me when i think about writing good(tm) code:

[print( a                   if b==3            else'in'+
'valid' )               for a, b in zip        (* list (
zip([sum(             a) for a in [ (a,b,      c)for a,b
,c in zip             (*[(c,       (c==0)      ==d)for c
,d in zip             ([sum(       [c * d      for c , d
in zip( a             ,b)] )       for a,      b in zip(
[(a, b, c             )for a       , b ,c      in zip( *      
[( a,a *a             ,a<= 0       )for a      in sorted       
([int( input('>') )     for  a in range        (3)])])],[ [1,1,1],
[1,1, -1],[1,1,1] ]        )],[False,          True,True])])]])))]

on execution, enter three numbers.It will output either a sum or 'invalid'. try:

115
252
277

this is my last one. Don't expect more.


#python #shitpost


Show Original Post


09.08.2025 13:42
habr (@habr@zhub.link)

Тесты не лгут — прислушивайтесь к ним: часть 2

(Статья — результат совместной работы с Максимом Степановым ) В прошлой статье мы показали, как тесты помогают найти изъяны в архитектуре. Для этого мы попытались протестировать скрипт на Python, проверяющий погоду. Нам пришлось разбить его на несколько функций в зависимости от зон ответственности, и это позволило написать несколько тестов. Но у них были существенные недостатки: - Хрупкость - Зависимость от внешних систем - Невозможность протестировать пользовательский сценарий в отдельности - Избыточное покрытие. Чтобы написать более качественные тесты, нам придётся улушить архитектуру кода, а именно реализовать внедрение зависимостей и перейти на модульную архитектуру. Посмотрим, как именно тесты заставляют нас совершенствовать код.

habr.com/ru/companies/testops_

#qa #тестирование #тестирование_по #python #pytest #автоматизация #solid




Show Original Post


09.08.2025 13:41
cark (@cark@social.tchncs.de)

Some months ago I discovered #uv as #python package manager an I totally love it. 🤩 Because it is so fast it really lowers the hurdle to setup a new virtual environment and thus lowers the hurdle to keep things clean.

Since now I have more venvs I recently created an alias to quickly investigate which interpreter and version I am using in the currently active venv:

alias py_exe='python -c "import sys; print(sys.executable, f\" ({sys.version})\")"'

Honestly, I use it even more often then thought I would. You might want to try it.




Show Original Post


09.08.2025 12:44
badrihippo (@badrihippo@fosstodon.org)

Coming back to the more mundane (and therefore probably also the more immediately useful 😉) is #Formulas, which plans to bring Excel-compatible formula evaluation to #Python :python:

nlnet.nl/project/Formulas/

As someone who avoid spreadsheets when I can, but also sometimes ends up working with people who think and dream in them, this sounds like something that could form a workable solution for both sides 📊

🧵 7/n




Show Original Post


09.08.2025 12:30
smorrell (@smorrell@mastodon.social)

My first experience with .

I queried how to write some code to write out unformatted, binary files so my code could read it.

Proceeds to give me a load of code. Completely neglects to mention the FortranFile class that can trivially read and write, and appears on the first page of a search.

This is going to be a bumpy ride!




Show Original Post


09.08.2025 11:49
k0tlin (@k0tlin@mastodon.ml)

Интересно, как в мастодонте работают видео?

Небольшая демонстрация моего нотпада, для практики питона :Blobhaj:

#python #pyside6





Show Original Post


09.08.2025 11:40
content (@content@socialhome.network)

Django’s accessibility contributing guide

The Django accessibility team is excited to announce that our accessibility contribution guidelines are now live in the documentation 🎉

These new guidelines are designed to support contributors in making Django more accessible to all users — including those who navigate the web using screen readers, keyboard-only inputs, and other assistive technologies.

They outline practical steps for designing and testing accessible user interfaces, how to contribute, follow up on ongoing accessibility issues, and contact the team. For beginners, we also recommend resources like The A11Y Project to get started.

We welcome your feedback and contributions as we continue to improve accessibility across the Django ecosystem! Come say hi on the Django Forum: Accessibility contributing guide.

https://www.djangoproject.com/weblog/2025/aug/09/django-accessibility-contributing-guide/

#django #python #webdev





Show Original Post


1 ...1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 ...1546
UP