Segmentation in Jupyter notebook

This topic should help: