Tested on Xubuntu 20.04 with Idle version 3.8.5 On clicking "Export to HTML" and selecting a file name, an empty HTML file is created. This is due to: AttributeError: module 'cgi' has no attribute 'escape' To fix the problem, change line 88: import cgi to import html and line 145 from out.append(cgi.escape(content)) to out.append(html.escape(content))