Skip to content

log_html() crashes because of an undefined variable #308

Closed

Description

@dfdeshom

log_html crashes because of an undefined variable:

sage: log_html ()
[..]
   245         T = self._title()
   246         inlog = os.path.split(self._input_log_name())[1]
--> 247         return '<html>%s<title>%s</title>\n<body><h1
align=center>%s</h1>\n<h2 align=center><a
href="%s">%s</a></h2><pre>'%(REFRESH,T,T, inlog, inlog)   
<type 'exceptions.NameError'>: global name 'REFRESH' is not defined

I'm not sure what the variable REFRESH is referring to, but removing
it takes care of the problem. A patch is available here:
http://sage.math.washington.edu/home/dfdeshom/custom/patches/log.py.hg

Component: user interface

Issue created by migration from https://trac.sagemath.org/ticket/308

Activity

  1. sagetrac-mabshoff commented on Aug 24, 2007

    sagetrac-mabshoffmannequin
    Mannequin
    comment:1

    Mmmh, I get the following:

    ----------------------------------------------------------------------
    | SAGE Version 2.8.2, Release Date: 2007-08-22                       |
    | Type notebook() for the GUI, and license() for information.        |
    ----------------------------------------------------------------------
    
    sage: log_html ()
    HTML Logger
    sage: 1+1
    2
    

    Can this be closed now?

    Cheers,

    Michael

  2. added a commit that references this issue on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions