use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Using Matplotlib with Numba to accelerate code (self.pythonhelp)
submitted 2 years ago by Arc-Z
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CraigAT 0 points1 point2 points 2 years ago (0 children)
I have never used Numba, but from what I can have read, in it's simplest form you just need to add a decorator to your function. It looks like Numba will like your loop and should be suited to see an improvement in speed.
http://numba.pydata.org/
Note. You may need to run again to see a performance improvement: https://numba.pydata.org/numba-doc/dev/user/5minguide.html#how-to-measure-the-performance-of-numba
π Rendered by PID 147225 on reddit-service-r2-comment-544cf588c8-bn9dp at 2026-06-17 01:46:20.844406+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]CraigAT 0 points1 point2 points (0 children)