I use following code to add repo with %mavenRepo magic:
%mavenRepo snapshots https://oss.sonatype.org/content/repositories/snapshots/
If I execute this line multiple times, or if we open multiple jupyter notebook, both of jupyter notebook contains this line. It creates multiple repo with the same name "snapshots".
The duplicated repo will significantly increase dependency resolve time (especially for snapshot version).