pn.config object allows setting various configuration variables, the config variables can also be set as environment variables or passed through the
External CSS files to load.
External JS files to load. Dictionary should map from exported name to the URL of the JS file.
The style of the global loading indicator, e.g. ‘arcs’, ‘bars’, ‘dots’, ‘petals’.
The color of the global loading indicator as a hex color, e.g. #6a6a6a
Whether reactive function evaluation is deferred until the page is rendered.
A custom exception handler can be defined which should accept any exceptions raised while processing events originating from the frontend and onload callbacks.
Whether a loading indicator is shown by default when panes are updating.
If set will start a
ThreadPoolExecutorto dispatch events to for concurrent execution on separate cores. By default no thread pool is launched, while setting nthreads=0 launches
min(32, os.cpu_count() + 4)threads.
List of raw CSS strings to add to load.
Whether to reuse a session for the initial request to speed up the initial page render. Note that if the initial page differs between sessions, e.g. because it uses query parameters to modify the rendered content, then this option will result in the wrong content being rendered. See the corresponding how-to guide for more information.
Whether to record all set events when embedding rather than just those that are changed
If set to a non-zero value this determines the maximum length of the pn.state.session_info dictionary, which tracks information about user sessions. A value of -1 indicates an unlimited history.
Specify the default sizing mode behavior of panels.
The template to render the served application into, e.g.
The theme to apply to the selected template (no effect unless
Whether sliders and inputs should be throttled until release of mouse.
Python and Environment variables#
Log level of Panel admin’s logger (default=DEBUG).
Whether to render output in Jupyter with the default Jupyter extension or use the
Whether plot data will be embedded.
Whether to save embedded state to json files.
Prefix for randomly generated json directories.
Where to load json files for embedded state.
Where to save json files for embedded state.
Whether to inline JS and CSS resources. If disabled, resources are loaded from CDN if one is available.
Log level of Panel’s logger (default=WARNING).
The CDN to load NPM packages from if resources are served from CDN. Allows switching between ‘https://unpkg.com’ (default) and ‘https://cdn.jsdelivr.net/npm’ for most resources.