doc/oldcode/swhlab/core/common.py
def html_temp_launch(html):
    """given text, make it a temporary HTML file and launch it."""
    fname = tempfile.gettempdir()+"/swhlab/temp.html"
    with open(fname,'w') as f:
        f.write(html)
    webbrowser.open(fname)
def html_temp_launch(html):
    """given text, make it a temporary HTML file and launch it."""
    fname = tempfile.gettempdir()+"/swhlab/temp.html"
    with open(fname,'w') as f:
        f.write(html)
    webbrowser.open(fname)
def html_temp_launch ( html ) : fname = tempfile . gettempdir ( ) + "/swhlab/temp.html" with open ( fname , 'w' ) as f : f . write ( html ) webbrowser . open ( fname )
given text, make it a temporary HTML file and launch it.
given text make it a temporary HTML file and launch it .