🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • class StoppableThread

    A custom thread class that extends threading.Thread with the ability to gracefully stop a Bokeh server running in the thread by stopping its IOLoop.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 760-786

    threading bokeh server tornado ioloop
  • function get_server

    Creates and configures a Bokeh Server instance to serve Panel applications with support for OAuth authentication, static file serving, and session management.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 574-757

    server web-server bokeh panel deployment
  • function get_static_routes

    Generates a list of Tornado URL route patterns for serving static files from specified directories, mapping URL slugs to filesystem paths.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 553-571

    tornado web-server static-files routing url-patterns
  • class ProxyFallbackHandler

    A Tornado RequestHandler that wraps another HTTP server callback and proxies requests by modifying the request path before delegating to a fallback handler.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 536-550

    tornado proxy request-handler path-rewriting http-server
  • function serve

    Serves one or more Panel objects on a single web server, allowing interactive dashboards and applications to be deployed locally or remotely with configurable networking and threading options.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 471-533

    server deployment web-server panel dashboard
  • function unlocked

    A context manager that temporarily unlocks a Bokeh Document and dispatches ModelChangedEvents to all connected WebSocket clients during the context execution.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 427-468

    context-manager bokeh websocket event-dispatching document-management
  • function with_lock

    A decorator that wraps callback functions (both sync and async) to mark them for execution with a Bokeh document lock, allowing safe modification of Bokeh models.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 399-423

    decorator bokeh threading lock callback
  • function set_curdoc

    A context manager that temporarily sets the current Bokeh document (curdoc) in the application state, ensuring it is properly cleaned up after use.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 394-397

    context-manager bokeh document-management state-management panel
  • function init_doc

    Initializes a Bokeh document by registering session information and setting up document lifecycle event handlers for Panel applications.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 377-391

    bokeh document-initialization session-management server panel
  • function create_static_handler

    Creates a Tornado route handler tuple for serving static files in a Bokeh/Panel web application, with special handling for root path routing.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 361-369

    tornado bokeh static-files web-server routing
  • function modify_document

    Modifies a Bokeh document by executing a Python script/module within the document's context, with support for autoreload functionality and error handling.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 280-355

    bokeh document-modification code-execution autoreload hot-reload
  • class RootHandler

    A custom Tornado request handler that extends Bokeh's RootHandler to handle root URL requests with authentication and conditional redirection based on index file extensions.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 267-275

    tornado bokeh web-handler authentication routing
  • class AutoloadJsHandler

    A custom Tornado request handler that generates and serves the Bokeh autoload JavaScript chunk for embedding Bokeh applications in web pages.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 231-263

    tornado bokeh web-handler javascript autoload
  • class DocHandler

    DocHandler is a Tornado request handler that serves HTML pages for Bokeh sessions, combining session management with document rendering capabilities.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 209-226

    tornado bokeh web-handler session-management document-rendering
  • class SessionPrefixHandler

    A mixin class that provides a context manager for temporarily modifying URL prefix-related state variables during request handling in a Bokeh server application.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 181-206

    bokeh tornado request-handler context-manager url-handling
  • class Application

    A custom Bokeh Application subclass that extends BkApplication to integrate with Panel's state management system, handling session creation callbacks and document initialization with templates.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 165-176

    bokeh server application session-management document-initialization
  • function autoload_js_script

    Generates JavaScript code for autoloading a Bokeh document into a web page element, bundling necessary resources and creating render items for embedding.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 155-162

    bokeh embedding javascript autoload visualization
  • function server_html_page_for_session

    Generates a complete HTML page for a Bokeh server session by bundling resources and rendering document roots with session token.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 140-153

    bokeh html-generation server session rendering
  • function _initialize_session_info

    Initializes and manages session information for a web application session, tracking session lifecycle timestamps and user agent data while maintaining a configurable history limit.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 114-132

    session-management web-application bokeh panel state-management
  • function async_execute

    Wraps and schedules async function execution in the appropriate event loop context, ensuring proper lock propagation and document context management for Bokeh/Panel applications.

    File: /tf/active/vicechatdev/patches/server.py | Lines: 85-110

    async event-loop bokeh panel tornado