ApiDoc API#
Bases: AnyWidget
Renders API documentation for a Python class or function in a notebook.
Examples:
Create an ApiDoc widget.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
A Python class or function to document. |
None
|
|
width
|
Maximum pixel width for the widget. |
700
|
|
show_private
|
Whether to include _-prefixed methods. |
False
|
Source code in wigglystuff/api_doc.py
Synced traitlets#
| Traitlet | Type | Notes |
|---|---|---|
doc |
dict |
Introspected documentation payload (auto-generated from the target object). |
width |
int |
Container width in pixels. |
show_private |
bool |
Whether to include private (underscore-prefixed) methods. |