Cannot render_to_file in pygal more than once in Spyder
问题 Short version When in Spyder, if I run a script more than once that saves a map with pygal's render_to_file , I get a TypeError . It works fine the first time. Detailed version I'm trying to save a map using pygal (2.4.0) in Python 3.6 as follows: from pygal.maps.world import World worldmap = World() worldmap.add('Random Places', ['mx', 'bz', 'ru', 'th', 'et']) worldmap.render_to_file('random_places.svg') It works fine when I run from the terminal as many times as I want (I'm on Ubuntu). It