Installing Black formatter on a docker image from docker-stacks

I’ve tried many ways to install one of the available black extensions in a derivative image i.e.

FROM jupyter/scipy-notebook

Nothing I’ve tried works.
Anyone had any luck?