register_context_manager_magic#
- penzai.treescope.treescope_ipython.register_context_manager_magic()[source]#
Registers the
%%with
magic.This makes it possible to use
%%with
at the top of a cell to enable automatic visualization for that cell’s outputs.- Raises:
RuntimeError – If IPython is not available.