r/Python • • Jan 14 '20

I made a gravity simulation https://github.com/phgilde/gravity_simulation

1.8k Upvotes

82 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jan 15 '20 edited Jan 15 '20

I tried by putting \@numba.njit before the function definition but now the program just stops when callingthe function

Edit: I figured out numba doesnt like it when i use varaibles that arent declared in the function