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