Take two wires and remove the insulation from the two ends of the both wires.connect one wire to the negative terminal of cell.secure the connection with the insulation tape .similarly connect the end with the positive terminal of cell.place the magnetic compass near the wire .keep the eye on the magnetic compass.the magnetic compass will be deflected which shows current carrying wire produce magnetic field.