class_docstr: Load an application directory which modifies a Document.
      
class_docstr_tok: ["Load","an","application","directory","which","modifies","a","Document","."]
docstr: Execute `on_server_unloaded`` from ``server_lifecycle.py`` (if
  it is defined) when the server is first started.
  
  Args:
      server_context (ServerContext) :
docstr_tok: ["Execute","`","on_server_unloaded","``","from","``","server_lifecycle.py","``","(","if","it","is","defined",")","when","the","server","is","first","started",".","Args",":","server_context","(","ServerContext",")",":"]
code: def on_server_loaded(self, server_context: ServerContext) -> None:
      """Execute `on_server_unloaded`` from ``server_lifecycle.py`` (if
      it is defined) when the server is first started.
  
      Args:
          server_context (ServerContext) :
  
      """
  
      if self._package_runner and self._package:
          self._package_runner.run(self._package)
      return self._lifecycle_handler.on_server_loaded(server_context)
  
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 7 for calling the DirectoryHandler obj's underlying member method code with example usage: obj.on_server_loaded(server_context) and returns: self