<commit_before># Getting started

This document describes how to use `latexify` with your Python code.


## Installation

`lateixfy` depends on only Python libraries at this point.
You can simply install `latexify` via `pip`:

```shell
$ pip install latexify-py
```

Note that you have to install `latexify-py` rather than `latexify`.


## Using `latexify` in Jupyter

`latexify.function` decorator function wraps your functions to pretty-print them as
corresponding LaTeX formulas.
Jupyter recoginzes this wrapper and try to print LaTeX instead of the original function.

The following snippet:

```python<commit_msg>fix: small typo errors in docs (#127)<commit_after># Getting started

This document describes how to use `latexify` with your Python code.


## Installation

`latexify` depends on only Python libraries at this point.
You can simply install `latexify` via `pip`:

```shell
$ pip install latexify-py
```

Note that you have to install `latexify-py` rather than `latexify`.


## Using `latexify` in Jupyter

`latexify.function` decorator function wraps your functions to pretty-print them as
corresponding LaTeX formulas.
Jupyter recognizes this wrapper and try to print LaTeX instead of the original function.

The following snippet:

```python
{'fraction_non_alphanumeric': 0.0746031746031746, 'fraction_numerical': 0.002380952380952381, 'mean_word_length': 4.92018779342723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4642026', 'n_tokens_mistral': 391, 'n_tokens_neox': 354, 'n_words': 165}