ramikrispin, to python
@ramikrispin@mstdn.social avatar

Posit recently released a new Shiny extension for VScode, supporting both Shiny for R and Python 🚀

More details on the release post 👇🏼
https://shiny.posit.co/blog/posts/shiny-vscode-1.0.0/

Extension 🔗: https://marketplace.visualstudio.com/items?itemName=Posit.shiny

treyhunner, to python
@treyhunner@mastodon.social avatar

The exclusivity of the stop index actually has a nice side effect: if you slice up to index 3 and then start slicing again from 3 onward, those two slices won't overlap.

Read more 👉 https://trey.io/ZEuawA

villares, to python Portuguese
@villares@pynews.com.br avatar
pyOpenSci, to opensource
@pyOpenSci@fosstodon.org avatar

😎 ZodiPy is a new Python tool for modeling the zodiacal emission seen by an arbitrary Solar System observer, which can be used for removal of both thermal emission and scattered sunlight from interplanetary dust in astrophysical data. One of the main goals with ZodiPy is to make zodiacal emission simulations more accessible by providing the community with a simple Python interface to existing models.

📄 Learn more: https://cosmoglobe.github.io/zodipy

#OpenSource #OpenScience #Python #astrophysics

leanpub, to gpt
@leanpub@mastodon.social avatar

LLM Prompt Engineering For Developers by Aymen El Amri is on sale on Leanpub! Its suggested price is $29.00; get it for $12.50 with this coupon: https://leanpub.com/sh/uRtzaCQs #Gpt #WritingAndPublishing #Marketing #ComputerProgramming #Python #SoftwareEngineering

andre, to blender
@andre@fedi.jaenis.ch avatar

Today I watched

How I made a 3D Level in a 2D Game -
https://yewtu.be/watch?v=Qvlb-Yo6Rqo

over lunch.

Interesting! So much math going on here.
Not diving deep but explaining the high level concepts.

I had wondered similar questions for SVG in the past. Seeing this makes me believe it's doable.

Don't have the time to knee into it at the moment.

Posit, to python
@Posit@fosstodon.org avatar

The Shiny for Python extension for VS Code is now officially the Shiny extension 🎉

The extension supports running Shiny for R apps in addition to Shiny for Python apps and has new features for interacting with ShinyLive from VS Code.

Learn more: https://shiny.posit.co/blog/posts/shiny-vscode-1.0.0/

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

Need to check if a resource exists? 💡

Use requests.head() instead of requests.get() for a faster response! 🏃

It only fetches the headers, saving time and bandwidth. 🕒

I used it the other day to quickly check if a transcript was added to a podcast episode. 😎

ThomasAlbin, to space
@ThomasAlbin@astrodon.social avatar

Help. How do I apply a Kernel Density Estimator using the Haversine metric for the entire sky map :(

#space #science with #python

cheukting_ho, to python
@cheukting_ho@fosstodon.org avatar

Hey, do you want to vote in the upcoming @ThePSF elections? Don't forget to affirm your intention to vote (please check your email, including spam). Deadline: June 25th 2024. Not a member yet? Check how you can become a voting member here: https://buff.ly/3X2cLhL #Python

mitten, to python
@mitten@social.lol avatar

So I’m trying to write some little static designs with py5 in Thonny, and when I run the program, the sketch window opens but closes immediately, so I can’t really see what I’ve drawn. It only seems to happen when there is no “def draw():” component in the program (so, non-animated programs which only have the “def setup():” part). Is there a setting somewhere to tell Thonny to keep the sketch result open after running?

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

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

Ever wondered how to debug a hanging test in ?

pip install pytest-timeout
pytest --timeout=N_SECONDS

To dump the whole stack trace you can add --timeout_method=thread as well.

Here is an example:

pyconau, to python
@pyconau@mastodon.pycon.org.au avatar

🎤 Ready to take your public speaking skills to the next level? PyCon AU has your back!

Whether you're a Student, Educator, Graduate, or Professional, we want YOU! We're seeking talks from first-time or seasoned speakers, and we have a fantastic mentoring program to help your proposal shine.

Read more about it here: pycon.org.au/program/-and-feedback

kellogh, to python
@kellogh@hachyderm.io avatar

goodness! no GIL, incremental garbage collection, and a JIT? all in one release? #python 3.13 is starting to feel like a real language! https://docs.python.org/3.13/whatsnew/3.13.html

treyhunner, to python
@treyhunner@mastodon.social avatar

If you find the "next" function confusing, you can always use a for loop and a break statement instead

Read more 👉 https://trey.io/UFI8MG

ivelasq3, to python
@ivelasq3@fosstodon.org avatar

Thank you, Rachael Dempsey, for the chance to talk about pins, Quarto, and scheduled publishing!

Also making #Python #Quarto dashboards is so much fun 🤓

🐙 Repo: https://github.com/posit-marketing/inflation-explorer
📹 Recording: https://www.youtube.com/watch?v=xnJuXOw7iu8
✍️ Slides: https://colorado.posit.co/rsc/inflation-explorer-slides/

villares, to python Portuguese
@villares@pynews.com.br avatar
tyldurd, to foss French
@tyldurd@framapiaf.org avatar

Big update on my Sentinel-1 InSAR processor: using a custom multi-threaded resampling function significantly speeds up the process!

https://github.com/odhondt/eo_tools

Jigsaw_You, to python
@Jigsaw_You@mastodon.nl avatar

NumPy 2.0 is planned to be released on June 16, 2024. 👍

https://numpy.org/devdocs/release/2.0.0-notes.html

jezdez, to python
@jezdez@publicidentity.net avatar

Hey Sphinx users, does anyone know how to configure a Sphinx project to not use in inline anchors for subheadlines which start with integers (e.g. versions in release notes/changelogs)? I mean, other than prefixing the subheadline with 'v’ or ‘Release’?

levlaz, to python
@levlaz@hachyderm.io avatar

spent an hour debugging jinja template before realizing I was passing in the list variable but not by name. :facepalm:

pytexas, to python
@pytexas@fosstodon.org avatar

Reminder that the PyTexas Meetup is tonight! Come by and chat, hangout, and hear about a journey building an AI app. We'll get started chatting around 7:30pm CST and move on to the main presentation at 8:00pm.

See y'all there!

https://pytexas.org/meetup/join




flypig, to python
@flypig@mastodon.social avatar

The and teams from wrote up about our experiences at ... we talk about , , and . Happy memories!

https://medium.com/

desertplains, to python
@desertplains@mastodon.social avatar

I wonder if there's a more efficient way of implementing decimal to conversion in

Without recursion, it's ok, but there will be variable assignments operations, which seems to me as something not so efficient, comparing with recursion...

image/png

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines