clustering optized for nbconvert