A convention for finding which end of a current loop or a solenoid can be associated which magnetic pole. If current flows anticlockwise when looking at the loop then this is the north pole. Conversely, when looking at the loop the current flows clockwise then this is the south pole. Current flow is in the electrical sense (the actual electron flow is in opposite direction).
magnetic_poles_convention_magnetica.jpg
You are permitted and indeed encouraged to use this image freely, for any legal purpose including commercial, and with any modifications (the permission is hereby given, so there is no need to ask for it explicitly again), but you MUST always give the following credits:
S. Zurek, Encyclopedia Magnetica, CC-BY-4.0
We would appreciate if you let us know of any use: info@e-magnetica.pl