cellmage.ambient_modeยถ

Ambient mode functionality for CellMage.

This module handles the IPython input transformers that enable โ€œambient modeโ€ - the ability to treat regular code cells as LLM prompts automatically.

Functions

disable_ambient_mode(ipython_shell)

Disable ambient mode by removing the input transformer from IPython.

enable_ambient_mode(ipython_shell)

Enable ambient mode by registering an input transformer with IPython.

get_ambient_handler()

Get the currently registered ambient handler function.

is_ambient_mode_enabled()

Check if ambient mode is currently enabled.

process_cell_as_prompt(cell_content)

Process a regular code cell as an LLM prompt.

register_ambient_handler(handler_func)

Register a function that will handle processing cell content in ambient mode.