python

Back Open Paginator
04.09.2025 16:23
treyhunner (@treyhunner@mastodon.social)

New screencast on commonly overlooked features of Python's print() function.

Did you know you can print() to a file?

Also print() can sometimes act as an alternative to combining the string join method with a generator expression.

pym.dev/print-features/




Show Original Post


04.09.2025 16:20
pyconza (@pyconza@fosstodon.org)

Meet our first keynote speaker: Dawn Wages!
Chair of the Python Software Foundation, Wagtail Core Team powerhouse, and Anaconda's Director of DevRel and Community.

Secure your spot now: za.pycon.org/tickets

@BajoranEngineer #PSF #Python #PyConAfrica #wagtail #anaconda





Show Original Post


04.09.2025 16:18
pyconafrica (@pyconafrica@mastodon.social)

Meet our first keynote speaker: Dawn Wages!
Chair of the Python Software Foundation, Wagtail Core Team powerhouse, and Anaconda's Director of DevRel and Community.

Secure your spot now: za.pycon.org/tickets

@BajoranEngineer





Show Original Post


04.09.2025 16:12
linuxgal (@linuxgal@techhub.social)

Building a square wave with a #Fourier series of odd harmonics under #Python #51

#!/usr/bin/python3
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2*np.pi, 1000)
def square_wave_series(x, n_terms):
y = np.zeros_like(x)
for k in range(1, n_terms+1):
n = 2*k - 1 # odd numbers: 1,3,5,...
y += np.sin(n*x)/n
return (4/np.pi) * y
colors = ["blue", "green", "yellow", "orange", "red"]
for i, n in enumerate([1, 2, 3, 4, 5]):
y = square_wave_series(x, n)
plt.plot(x, y, color=colors[i], label=f"{2*n-1} harmonics")
plt.legend()
plt.title("Fourier Series Approximation of a Square Wave")
plt.grid(True)
plt.show()





Show Original Post


04.09.2025 16:11
tedi (@tedi@infosec.exchange)

You’re probably using uv wrong: lerner.co.il/2025/08/28/youre-

#python #uv




Show Original Post


04.09.2025 16:07
tedi (@tedi@infosec.exchange)

uv vs pip: Managing Python Packages and Dependencies: realpython.com/uv-vs-pip/

#python #uv #pip




Show Original Post


04.09.2025 15:40
villares (@villares@pynews.com.br)

WIP (broken rotation elimination implementation) Code at: github.com/villares/sketch-a-d
More sketch-a-day: abav.lugaralgum.com/sketch-a-d
If you like this, support my work:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding





Show Original Post


04.09.2025 15:07
theoasisbbs (@theoasisbbs@techhub.social)

Building Pygame Enemies in Shadow Switcher Development
#Pygame #C64 #ShadowSwitcher #Python #RetroGaming
theoasisbbs.com/building-pygam




Show Original Post


04.09.2025 15:01
driscollis (@driscollis@mastodon.social)

The latest episode of The Python Show Podcast is out now!

Listen in as I chat with Paul Everitt about the beginnings of the language, the new Python documentary, and much more!





Show Original Post


04.09.2025 14:55
clonbg (@clonbg@masto.es)

Un par de cursos de Youtube sobre programación myblog.clonbg.es/un-par-de-cur #Programación #VueJs #Python clonbg.es





Show Original Post


04.09.2025 14:53
wigging (@wigging@fosstodon.org)

There is a CLI module buried in the Python Streamlit package that can be used to run a Streamlit app from within Python code. Not sure if its use is officially supported but this seems to be the only way to run a Streamlit app from within Python code. gavinw.me/notes/python/streaml #Python #Streamlit




Show Original Post


04.09.2025 14:52
smach (@smach@masto.machlis.com)

Ask your data natural-language questions in R or Python with the querychat package! Bonus: You never send that data to an LLM.

My step-by-step InfoWorld tutorial using NFL game data (first day of the season tonight!) as an example:
infoworld.com/article/4040535/

#RStats #Python #InfoWorld #RShiny




Show Original Post


1 ...1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 ...1550
UP