text: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  import warnings
  from ._tsrex import index, indices, tensor, TsrEx
  from ._tplex import template
  from ._constants import pi
  from ._special import zeros, ones, eye
  
  
  try:
      import google.colab  # noqa: F401
      try:
          from IPython import get_ipython
          from IPython.display import display, HTML
  
          get_ipython().events.register(
              'pre_run_cell',
              lambda: display(HTML(
                  "<script type='text/javascript' async "
                  "src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/"
                  "MathJax.js?config=TeX-MML-AM_CHTML'></script>"
              ))
          )
      except Exception:
          warnings.warn('Cannot set up MathJAX, LaTeX rendering may not work.')
  except ImportError:
      pass
  
  
  __all__ = [
      'index',
      'indices',
      'tensor',
      'template',
      'zeros',
      'ones',
      'eye',
      'pi',
      'TsrEx'
  ]
  