class_docstr: Load an application directory which modifies a Document.
      
class_docstr_tok: ["Load","an","application","directory","which","modifies","a","Document","."]
docstr: Whether it is still safe for the Bokeh server to fork new workers.
  
  ``False`` if the configured code (script, notebook, etc.) has already
  been run.
docstr_tok: ["Whether","it","is","still","safe","for","the","Bokeh","server","to","fork","new","workers",".","``","False","``","if","the","configured","code","(","script",",","notebook",",","etc",".",")","has","already","been","run","."]
code: def safe_to_fork(self) -> bool:
      """Whether it is still safe for the Bokeh server to fork new workers.
  
      ``False`` if the configured code (script, notebook, etc.) has already
      been run.
  
      """
      return self._main_handler.safe_to_fork
  
imports: from __future__ import annotations
  import logging
  import sys
  from os.path import basename, dirname, exists, join
  from types import ModuleType
  from typing import TYPE_CHECKING, Any, Coroutine
  from jinja2 import Environment, FileSystemLoader, Template
  from ...core.types import PathLike
  from ...document import Document
  from ..application import ServerContext, SessionContext
  from .code_runner import CodeRunner
  from .handler import Handler
  from .notebook import NotebookHandler
  from .script import ScriptHandler
  from .server_lifecycle import ServerLifecycleHandler
  from .server_request_handler import ServerRequestHandler
label_desc: Use image node_id 5 for calling the DirectoryHandler obj's underlying member method code with example usage: obj.safe_to_fork() and returns: self