python

Back Open Paginator
04.09.2025 17:29
linuxgal (@linuxgal@techhub.social)

Generating contour maps with #Python #67

#!/usr/bin/python3
import matplotlib.pyplot as plt
import numpy as np

# Grid
X, Y = np.meshgrid(np.linspace(-4, 4, 512), np.linspace(-4, 4, 512))

# Base function with slight asymmetry
Z = (1 - X/2 + X**4 + Y**3) * np.exp(-X**2 - Y**2) * (1 - X/3 - Y**4) * (3 - Y + X**2)

# Lower-frequency smooth perturbation
Z += 0.5*np.sin(0.8*X + 0.6*Y) + 0.4*np.cos(0.5*X - 0.7*Y) + 0.3*np.sin(0.6*X - 0.4*Y)

# Contour levels
levels = np.linspace(np.min(Z), np.max(Z), 25)

# Plot
fig, ax = plt.subplots()
ax.contour(X, Y, Z, levels=levels, cmap='terrain')
plt.show()





Show Original Post


04.09.2025 17:22
dwn (@dwn@dwnfonts.cc)

#Python 语言的 #ATProto#ATPasser 现在支持 handle 和部分 DID 了

tangled.sh/@dwn.dwnfonts.cc/at 求点赞





Show Original Post


04.09.2025 17:20
Python_Ireland (@Python_Ireland@mastodon.ie)

We've been extremely busy at PyCon Ireland.

Comparing Sept 1st 2024 with 2025 we've:
* Sold 2 x as many tickets!
* Received 30% more submissions in our call for speakers!

We're hoping to have the submissions reviewed and confirmation to the speakers by Sept 16th.

#PyConIE #PythonIE #PyCon #Python
We're not stopping here either - we've more good news coming soon!!!




Show Original Post


04.09.2025 17:03
villares (@villares@ciberlandia.pt)

Folks I finally made something I wanted to make for a long time, a T-Shirt design thing.

Available at Rednubble redbubble.com/i/t-shirt/numpy-

And also available in Brazil at Uma Penca: umapenca.com/villares/

You can also buy stickers and other items... soon my "Python Reading Club" and "Python is also for artists!" designs will be available. This will help support my free and open source activities. I make free and open educational resources, I teach at several places and I need to make ends meet.

#python #numpy #shapely #trimesh #py5 #creativeCoding #FLOSS





Show Original Post


04.09.2025 17:00
sheena (@sheena@fosstodon.org)

We have a few gaps in our schedule. If you're interested in speaking at #PyCon #Africa, please submit a proposal: za.pycon.org/pages/talks/how_t.

Note: Apply only if you do not need financial assistance, as we have exhausted our grants budget.

#Python





Show Original Post


04.09.2025 17:00
pyconafrica (@pyconafrica@mastodon.social)

We have a few gaps in our schedule. If you're interested in speaking at , please submit a proposal: za.pycon.org/pages/talks/how_t.

Note: Apply only if you do not need financial assistance, as we have exhausted our grants budget.





Show Original Post


04.09.2025 17:00
pyconza (@pyconza@fosstodon.org)

We have a few gaps in our schedule. If you're interested in speaking at #PyCon #Africa, please submit a proposal: za.pycon.org/pages/talks/how_t.

Note: Apply only if you do not need financial assistance, as we have exhausted our grants budget.

#Python





Show Original Post


04.09.2025 16:51
herchila (@herchila@mastodon.social)

You can find the code for Phase 1 on my GitHub.
Stars ⭐ are much appreciated!
github.com/herchila/unittest-a




Show Original Post


04.09.2025 16:46
djangocon (@djangocon@fosstodon.org)

Join the conference Strava group for some friendly motivation, and hop into the #outings Slack channel (invites go out Sept 7) to plan group activities with fellow attendees!

Your mind AND body will thank you. See you in Chicago!

📸 Photo courtesy of Drew Winstel

#DjangoConUS #Django #Python #Chicago #TechConference #Fitness #ChicagoLakefront #Strava




Show Original Post


04.09.2025 16:42
ferret_stack (@ferret_stack@mastodon.social)

Testing the Mastodon.py library





Show Original Post


04.09.2025 16:39
localizethedocs (@localizethedocs@floss.social)

🎉 sphinx-docs-l10n is published!

🚀 Preview:

projects.localizethedocs.org/s

🌐 Crowdin:

localizethedocs.crowdin.com/sp

🐙 GitHub:

github.com/localizethedocs/sph

#Crowdin #GitHub #Sphinx #Python




Show Original Post


04.09.2025 16:27
astrocodecraft (@astrocodecraft@mastodon.social)

🚀 Introducing "Astro Code Craft": your newest digital destination for Python, Django, and more! Dive into a universe of coding insights and tips. Follow me now at techhub.social/@astrocodecraft




Show Original Post


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