import urllib fun open(): return urllib.urlopen(\'http://example.com\')
But when example.com opens it does not render css or js. How can I ope
You could also try:
import os os.system("start \"\" http://example.com")
This, other than @aaronasterling ´s answer has the advantage that it opens the default web browser. Be sure not to forget the "http://".