# ecolab

[[[Source]]](https://github.com/google/etils/tree/main/etils/ecolab/__init__.py)

```{code-block}
from etils import ecolab
```

```{eval-rst}
.. automodule:: etils.ecolab
  :no-members:
```

## All symbols


### Module

|  |  |
--- | ---
[ecolab](index) | Colab public API.

### Class

|  |  |
--- | ---
[ecolab.ReloadMode](ReloadMode) | Invalidate mode.

### Function

|  |  |
--- | ---
[ecolab.auto_display](auto_display) | Activate auto display statements ending with `;` (activated by default).
[ecolab.auto_inspect](auto_inspect) | Add a button on each cell outputs to switch output to `ecolab.inspect`.
[ecolab.auto_plot_array](auto_plot_array) | If called, 2d/3d imgage arrays will be plotted as images in colab/jupyter.
[ecolab.clear_cached_modules](clear_cached_modules) | Clear the `sys.modules` cache.
[ecolab.collapse](collapse) | Capture all outputs and display it in a collapsible block.
[ecolab.disp](disp) | Display the object.
[ecolab.get_permalink](get_permalink) | Get the permalink for the current colab.
[ecolab.highlight_html](highlight_html) | Add Python syntax highlighting to a Python code string.
[ecolab.inspect](inspect) | Inspect all attributes of a Python object interactivelly.
[ecolab.interruptible](interruptible) | Catch KeyboardInterrupts to end the loop without raising an Exception.
[ecolab.iter_tab](iter_tab) | Displays the items of an iterable each in a numbered tab.
[ecolab.json](json) | Display the Json `dict` / `list` interactivelly (with collapsible elems).
[ecolab.patch_graphviz](patch_graphviz) | Fix `graphviz` display on Colab.
[ecolab.pyjs_import](pyjs_import) | `<script></script>` to import to add in the HTML.
[ecolab.register_js_fn](register_js_fn) | Decorator to make a function callable from Javascript.
[ecolab.set_verbose](set_verbose) | Log stderr & `absl.logging` in Colab (filtered by default).


```{toctree}
:hidden:

ReloadMode
auto_display
auto_inspect
auto_plot_array
clear_cached_modules
collapse
disp
get_permalink
highlight_html
inspect
interruptible
iter_tab
json
patch_graphviz
pyjs_import
register_js_fn
set_verbose
```