curdoc() is a function in Bokeh that returns the current document for a Bokeh application. You can use curdoc() to access the current document and add, remove, or modify elements in it.
bokeh
How to create custom bokeh widgets
Custom widgets empower you to extend Bokeh’s functionality beyond built-in models by writing small TypeScript/JavaScript components that integrate seamlessly with Python. This guide walks through setting up your development environment, building a widget, packaging it, and deploying to Bokeh server or standalone documents.
How to Scale Bokeh Applications for Production
Scaling Bokeh applications to support many concurrent users and large data workloads requires robust architectural patterns: multi-process servers, load balancing for WebSockets, container orchestration, and autoscaling. This guide consolidates production strategies and best practices to ensure your Bokeh apps remain responsive and reliable under heavy traffic.
How to Implement Server-Side Memory Management in Bokeh
Effective server-side memory management is crucial for stable, scalable Bokeh applications in production. This guide covers configuration options, custom cleanup hooks, and containerization strategies to ensure Bokeh servers gracefully release memory and avoid leaks when serving multiple users.
How to Identify Memory Issues in Bokeh Applications
Memory issues in Bokeh applications can manifest as browser crashes, slow rendering, server instability, or gradual RAM consumption growth—especially when using Jupyter notebooks, large datasets, or complex interactive dashboards. This comprehensive guide provides actionable techniques for identifying, diagnosing, and resolving memory problems using proven Python profiling tools and Bokeh-specific debugging strategies.
How to optimize bokeh memory usage
Bokeh is a powerful Python library for interactive data visualization, but apps at scale can suffer from memory leaks and excessive RAM usage—especially when used with Holoviews, Panel, Datashader, large dataframes, or custom session logic. This article provides actionable techniques for professional developers to minimize Bokeh server memory consumption, grounded in real-world debugging and best-practice Continue reading