Switch to leiden
see https://github.com/theislab/scanpy/issues/1283#issuecomment-645269898
@LuckyMD we should change the tutorials instead of going back, because louvain is deprecated:
This package has been superseded by the
leidenalgpackage and will no longer be maintained. Please upgrade to theleidenalgpackage.
I don't mind changing the defaults in the tutorials, but I think there's also a louvain function in the leidenalg package if you don't want to change defaults just yet, but just package reliance.
Hmm, if we’re going to change something anyway, shouldn’t we just go with the better option?
I think that's fine... we could however still wrap sc.tl.louvain to use the leidenalg implementation so that people's code still works.