An example of the title question code is shown below. Is there a way to run this code from a Python IDE (like Spyder)? I say this after trying it and having no success. I have installed the Adafruit library and straight out of the box, there's no sign of life. I guess I need to assign COM port somewhere and assign pins somehow.
Arduino IDE Script:
import time
import Adafruit_MCP4725
dac = Adafruit_MCP4725.MCP4725(address=0x62)
print('Press Ctrl-C to quit...')
while True:
print('Setting voltage to 0!')
dac.set_voltage(0)
time.sleep(2.0)
print('Setting voltage to 1/2 Vdd!')
dac.set_voltage(2048) # 2048 = half of 4096
time.sleep(2.0)
print('Setting voltage to Vdd!')
dac.set_voltage(4096, True)
time.sleep(2.0)