class_docstr: Load a script which contains server lifecycle callbacks.
  
      
class_docstr_tok: ["Load","a","script","which","contains","server","lifecycle","callbacks","."]
docstr: The last path component for the basename of the path to the
  callback module.
docstr_tok: ["The","last","path","component","for","the","basename","of","the","path","to","the","callback","module","."]
code: def url_path(self) -> str | None:
      """The last path component for the basename of the path to the
      callback module.
  
      """
      if self.failed:
          return None
      else:
          # TODO should fix invalid URL characters
          return (
              "/"
              + os.path.splitext(os.path.basename(self._runner.path))[0]
          )
  
file_path: bokeh/src/bokeh/application/handlers/server_lifecycle.py
imports: from __future__ import annotations
  import logging
  import os
  from types import ModuleType
  from ...core.types import PathLike
  from ...util.callback_manager import _check_callback
  from .code_runner import CodeRunner
  from .lifecycle import LifecycleHandler
label_desc: Use image node_id 5 for calling the ServerLifecycleHandler obj's underlying member method code with example usage: obj.url_path() and returns: None, unknown