panel.command.serve module#
Subclasses the bokeh serve commandline handler to extend it in various ways.
- class panel.command.serve.AdminApplicationContext(application, unused_timeout=15000, **kwargs)[source]#
Bases:
ApplicationContext
Methods
cleanup_sessions
run_load_hook
run_unload_hook
- class panel.command.serve.Serve(parser: ArgumentParser)[source]#
Bases:
Serve
Methods
customize_applications
(args, applications)Allows subclasses to customize
applications
.customize_kwargs
(args, server_kwargs)Allows subclasses to customize
server_kwargs
.invoke
warm_applications
- customize_applications(args, applications)[source]#
Allows subclasses to customize
applications
.Should modify and return a copy of the
applications
dictionary.
- panel.command.serve.add_sys_path(path: str | PathLike) Iterator[None] [source]#
Temporarily add the given path to sys.path.