panel.io.jupyter_executor module#
- class panel.io.jupyter_executor.JupyterServerSession(session_id: ID, document: Document, io_loop: IOLoop | None = None, token: str | None = None)[source]#
Bases:
ServerSession
- class panel.io.jupyter_executor.PanelExecutor(path, token, root_url, resources='server')[source]#
Bases:
WSHandler
The PanelExecutor is intended to be run inside a kernel where it runs a Panel application renders the HTML and then establishes a Jupyter Comm channel to communicate with the PanelWSProxy in order to send and receive messages to and from the frontend.
Methods
Renders the application to an IPython.display.HTML object to be served by the PanelJupyterHandler.
write_message
(message[, binary, locked])Override parent write_message with a version that acquires a write lock before writing.