NBA shot charts using matplotlib, seaborn, and bokeh.
Jupyter Notebook Python


nbashots is a library that is built on top of matplotlib, seaborn, and bokeh in order to create a variety of NBA shot charts using Python. nbashots allows for easy access to the NBA stats API in order to extract the necessary data for creating shot charts.

Just note that this library is in early development but it should work for Python 2.7 and 3.3+. Most of the code is based on my blog post.


  • Python 2.7 or 3.3+

Mandatory packages


To install just run:

pip install nbashots


You can check out a tutorial I wrote up over here.


  • Finish up the documentation and create a readthedocs page.
  • Write tests.


Released under BSD 3-clause License