# scope_profiler.line_profile_cli

*module*

CLI for displaying line-profiler records persisted in HDF5 files.

[View source](https://github.com/max-models/scope-profiler/blob/devel/src/scope_profiler/line_profile_cli.py#L1-L1)

## scope_profiler.line_profile_cli.main

*function*

```python
def main(argv=None)
```

Handle ``scope-profiler line-profile``.

[View source](https://github.com/max-models/scope-profiler/blob/devel/src/scope_profiler/line_profile_cli.py#L131-L177)

## scope_profiler.line_profile_cli.print_line_profile

*function*

```python
def print_line_profile(file_path, ranks=None, function=None, region=None, include=None, exclude=None, stream=None, display_html=False)
```

Print persisted line-profiler timings from one HDF5 profile.

Set ``display_html=True`` when calling from a Jupyter notebook to render
the complete output in a whitespace-preserving ``<pre>`` block.  The
default remains plain text for the command-line interface.

[View source](https://github.com/max-models/scope-profiler/blob/devel/src/scope_profiler/line_profile_cli.py#L54-L128)
