code: def monitor(options={}):
      
      try:
          from IPython.display import display
      except ImportError:
          def display(stuff): return None
  
      class Monitor():
          def __init__(self, options={}):
              if os.getenv("WANDB_JUPYTER"):
                  display(jupyter.Run())
              else:
                  self.rm = False
                  termerror(
                      "wandb.monitor is only functional in Jupyter notebooks")
  
          def __enter__(self):
              termlog(
                  "DEPRECATED: with wandb.monitor(): is deprecated, just call wandb.monitor() to see live results.")
              pass
  
          def __exit__(self, *args):
              pass
  
      return Monitor(options)
docs: Starts syncing with W&B if you're in Jupyter.  Displays your W&B charts live in a Jupyter notebook.
      It's currently a context manager for legacy reasons.