This is the Python Jupyter notebook for Neuralink patent no. US 2021/0012909 A1, titled "Real-Time Neural Spike Detection".
Note that this notebook is used for demonstration, educational, and reference purposes only, and not meant to involve any conflict of interest. Also note that this algorithm is implemented in hardware, since it involves using fixed point computation.
The original patent is also uploaded.
If you have any questions, please contact me at mgz2112@columbia.edu.