---
title: thunder.core.codeutils.prettyprint
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.core.codeutils.prettyprint
---
# thunder.core.codeutils.prettyprint {#thunder-core-codeutils-prettyprint}

### `thunder.core.codeutils.prettyprint(x, *, with_type=False, literals_allowed=True, literals_as_underscores=False, _quote_markers=False)` {#thunder.core.codeutils.prettyprint}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/core/codeutils.py#L206-L289)

Return type:

[`str`](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")

Parameters:

*   **x** ([_Any_](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.15)")) –
    
*   **with\_type** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **literals\_allowed** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **literals\_as\_underscores** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **\_quote\_markers** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
