Hacker News new | past | comments | ask | show | jobs | submit login

Never mind there is a pyCharm plugin. And I am impressed. Example —

  # use numba to speed up the accumulation of the moving average

  @numba.jit("float64[:](float64[:], float64[:])", nopython=True, nogil=True)
  def moving_average(x, a):
      n = len(x)
      y = np.empty(n, dtype=np.float64)
      y[0] = x[0]
      for i in range(1, n):
          y[i] = y[i-1]*a[i-1] + x[i]*a[i]
      return y
I would have found it with a stack overflow search but it gave me this after I just typed :

  # use numba to …



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: