class_docstr: Manage state related to controlling Bokeh output.
  
      
docstr: Reset output modes but DO replace the default Document
  
          
docstr_tok: ["Reset","output","modes","but","DO","replace","the","default","Document"]
code: def _reset_with_doc(self, doc: Document) -> None:
      """Reset output modes but DO replace the default Document"""
      self._document = doc
      self._reset_keeping_doc()
  
imports: from __future__ import annotations
  import logging
  import os
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, cast
  from ..core.types import PathLike
  from ..document import Document
  from ..resources import Resources, ResourcesMode
label_desc: Use image node_id 12 for calling the State obj's underlying member method code with example usage: obj._reset_with_doc(doc) without return types