old_contents: from typing import Any
  
  from rich.pretty import install
  from rich.traceback import install as tr_install
  
  
  def load_ipython_extension(ip: Any) -> None:
  
      install()
      tr_install()
  
new_contents: from typing import Any
  
  
  def load_ipython_extension(ip: Any) -> None:
      # prevent circular import
      from rich.pretty import install
      from rich.traceback import install as tr_install
  
      install()
      tr_install()
  
subject: fix circular import and explain it is needed