python

Back Open Paginator
15.03.2026 18:57
codelabsacademyupdates (@codelabsacademyupdates@mastodon.social)

In and work, ranked risk is not enough if the probability is wrong. This guide shows how to use reliability diagrams, Brier scores, and to calibrate heatwave and flood forecasts for real and decisions. Read the full article: codelabsacademy.com/en/blog/ca




Show Original Post


15.03.2026 18:46
cheukting_ho (@cheukting_ho@fosstodon.org)

Did you miss the #PyTV livestream earlier this month? It's not too late to watch it. Wanna know how it goes? Check this out: blog.jetbrains.com/pycharm/202

#Python #AI #OpenSource #DataScience
blog.jetbrains.com/pycharm/202




Show Original Post


15.03.2026 18:46
treyhunner (@treyhunner@mastodon.social)

Python Tip #74 (of 365):

Print blank lines with print()

Instead of this:

print("TITLE\n")
print("Descrption")

Consider this:

print("TITLE")
print()
print("Descrption")

It's a bit easier to see that there's meant to be a blank line when a separate print call is used instead of just putting "\n" at the end of a string.




Show Original Post


15.03.2026 18:21
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 8 Part 9 - Your First Steps Partition method in Python Splitting Text into 3 Parts





Show Original Post


15.03.2026 18:13
RodStephens (@RodStephens@hachyderm.io)

Use Warnsdorf's rule to find a closed knight's tour in Python

rodstephensbooks.com/knights_t

#Python #Algorithms #KnightsTour #Recursion #WarnsdorfsRule





Show Original Post


15.03.2026 18:12
habr (@habr@zhub.link)

Как я сделал новостной агрегатор с MCP‑сервером, AI‑чатом и Telegram‑ботом

28 февраля 2026 года я стоял у окна на 41-м этаже в JBR в Дубае и смотрел, как системы ПВО ОАЭ перехватывают иранские беспилотники прямо над моей головой. Полез в новости — в Google и Яндексе статья двухчасовой давности, Telegram-каналы противоречат друг другу. Когда это происходит где-то далеко, не придаёшь этому значения. Когда ты в центре событий, то хочешь знать оперативную информацию, желательно с push-уведомлениями.

habr.com/ru/articles/1010502/

#llm #mcp #flask #telegrambot #rss #deepseek #news_aggregator #tool_calling #python




Show Original Post


15.03.2026 18:06
r (@r@fed.brid.gy)

Obspy v1.5 just released. @seismotom.bsky.social@bsky.brid.gy 🧪⚒️ #python github.com/obspy/obspy/...

What's New in ObsPy 1.5




Show Original Post


15.03.2026 17:59
s4mdf0o1 (@s4mdf0o1@piaille.fr)

/me toujours en train de batailler pour envoyer un flux #RTSP via #Python et #Gstreamer vers un #bot #Matrix




Show Original Post


15.03.2026 17:57
iivoltagewolf (@iivoltagewolf@bark.lgbt)

Today, I coded a calculator app in Python, and when I first tried the shebang, it didn't run, but I eventually found the problem.

It turns out line endings in files matter. I kept using windows line endings because that's how I end my txt files. I had to switch it to Linux/Unix for the shebang to work :blobfoxreinderp:

It's not the best-looking one, as the square root operator text just says "Sqrt".

#python #programming #coding #linux #unix #software




Show Original Post


15.03.2026 17:50
blotosmetek (@blotosmetek@circumstances.run)

Unsolicited Programming Advice (#UPS ): if in doubt, read the manual thoroughly. For example, those two #Python methods are identical, right?

       S.find(sub[, start[, end]]) -> int

Return the lowest index in S where substring sub is found,
such that sub is contained within S[start:end]. Optional
arguments start and end are interpreted as in slice notation.

Return -1 on failure.
       S.index(sub[, start[, end]]) -> int

Return the lowest index in S where substring sub is found,
such that sub is contained within S[start:end]. Optional
arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

…well. nope.




Show Original Post


15.03.2026 17:30
Reuven (@Reuven@fosstodon.org)

Turn a column in a #Python #Pandas data frame into an index with set_index:

df = df.set_index('x')

Remember, set_index returns a new data frame. It doesn't change the original one.

Turn multiple columns into a multi-index by passing a list:

df = df.set_index(['x', 'y'])





Show Original Post


15.03.2026 17:12
afterdawn (@afterdawn@mementomori.social)

Robottiruohonleikkureita valmistava Segway Navimow julkaisi virallisen Home Assistant -tuen ja ohjelmointityökalut roboleikkureilleen

Yhtiö toivookin, että älykotien näppäräsormiset koodaajat kehittelevät uusia tapoja Navimow'n robottiruohonleikkureiden käyttöön.

dawn.fi/uutiset/2026/03/15/nav

#älykoti #iot #navimow #robottiruohonleikkuri #homeassistant #python #uutiset #teknologia #tekniikka




Show Original Post


1 ...322 323 324 325 326 327 328 329 330 331 332 ...1594
UP