Jupyter Hooks System (Python ↔ Frontend)#

This chapter documents the Jupyter hooks system: how your notebook Python code can drive the Cellucid viewer (commands) and react to what a user does in the viewer (events).

Context (so the ecosystem is clear):

  • Cellucid is the web app (the interactive viewer UI).

  • cellucid-python is the helper package you use from Python/CLI to prepare data, run servers, embed the viewer, and integrate with notebooks.

  • cellucid-annotation is a helper repo for community annotation workflows.

  • cellucid-r writes the same Cellucid-ready AnnData from R and has its own viewer (cellucid_view()), which uses the same viewer channel; this chapter covers the Python side (R: Hooks, Selections and Sessions).

Where to start (pick one)#