---
title: showdoc
description: Display symbol documentation in notebook and website
order: 6
---
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Documentation For An Object

Render the signature as well as the `docments` to show complete documentation for an object.

[source](https://github.com/AnswerDotAI/fastship/blob/main/fastship/showdoc.py#L18)

### show\_doc

```python
def show_doc(
    sym, # Symbol to document
    name:str | None=None, # Optionally override displayed name of `sym`
    title_level:int=3, # Heading level to use for symbol name
    lookup=None, # Optional `DocLookup` instance to reuse for source links
):
```

*Show signature and docstring for `sym`*

You can use [`show_doc`](showdoc.md#show_doc) to document apis of functions, classes or methods.

### Numpy Docstrings

if you have [numpy docstrings](https://numpydoc.readthedocs.io/en/latest/format.html) instead of `docments`, [`show_doc`](showdoc.md#show_doc) will attempt to parse and render those just like `docments`.

> [!WARNING]
> Numpy docstring formatting is very strict.  If your docstrings do not strictly adhere to the numpy format, it will not be parsed properly and information about parameters and return values may not properly be rendered in the table below the signature.  Where possible, we recommend using `docments` to annonate your function instead.

## show\_doc on Classes

[`show_doc`](showdoc.md#show_doc) works on Classes, too, including when you use `@patch`.

You can define methods for the class `Foo` with `@patch` which is convenient in allowing you to break up code for documentation in notebooks.

Class properties also work with showdoc.

[source](https://github.com/AnswerDotAI/fastship/blob/main/fastship/showdoc.py#L29)

### showdoc\_nm

```python
def showdoc_nm(
    tree
):
```

*Get the fully qualified name for showdoc.*
