class_docstr: Simple plugin for a bokeh framework
docstr: Set notebook or script mode
docstr_tok: ["Set","notebook","or","script","mode"]
code: def _set_output_mode(self, mode: str):
      """Set notebook or script mode"""
      self.is_notebook = mode == "notebook"
      if self.is_notebook:
          self.io.output_notebook()
      else:
          self.io.output_file(self.output_file)
  
file_path: livelossplot/livelossplot/outputs/bokeh_plot.py
imports: from typing import List, Dict, Tuple
  from livelossplot.main_logger import MainLogger, LogItem
  from livelossplot.outputs.base_output import BaseOutput
label_desc: Use image node_id 5 for calling the BokehPlot obj's underlying member method code with example usage: obj._set_output_mode(mode) without return types