Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-15361

Make lsst.log outputs appear in Jupyter notebook cells

    Details

    • Type: Story
    • Status: In Progress
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: log, log4cxx, Notebooks
    • Labels:
      None
    • Templates:
    • Team:
      Data Access and Database

      Description

      Messages sent to lsst.log are not visible from Jupyter, because Jupyter only looks at Python's stderr and stdout, which are not the same as system stderr and stdout.

      Following some discussion on Slack, the best approach appears to be writing an lsst.log and/or log4cxx handler that writes to either Python's stderr or stdout or some Jupyter cell output hook; the latter in particular could enable things like using rich-text output to highlight messages at different levels.

        Attachments

          Activity

            People

            • Assignee:
              ktl Kian-Tat Lim
              Reporter:
              jbosch Jim Bosch
              Watchers:
              Andy Salnikov, Chris Walter, Colin Slater, Jim Bosch, John Parejko, John Swinbank, Kian-Tat Lim, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel