Magic and study of occult arts successfully survived Renaissance and entered the Baroque era. And even more. ”study of the occult arts remained intellectually respectable well into the seventeenth century”. It only gradually divides into the modern categories of natural science versus occultism or superstition. My web research shows, that brilliant Age of Reason was on the rise in the seventeenth century, while belief in witchcraft and sorcery, and consequently the irrational surge of Early Modern witch trials, receded. This process only completed at the end of the Baroque period, somewhere around 1730s.
Contemporary scientists still met resistance, though. Christian Thomasius encountered fierce opposition as he argued in his 1701 Dissertatio de crimine magiae that it was meaningless to make dealing with the devil a criminal offence, since it was impossible to really commit the crime in the first place. In Britain, the Witchcraft Act of 1735 established that people could not be punished for consorting with spirits, while would-be magicians pretending to be able to invoke spirits could still be fined as con artists.
Several decades later, from 1756 to 1781, Jacob Philadelphia performed feats of magic, sometimes under the guise of scientific exhibitions, throughout Europe and Russia. Baron Carl Reichenbach’s experiments with his Odic force appeared to be an attempt to bridge the gap between magic and science.