Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Dec 12, 2024
1 parent 5e6db2e commit f3d44ac
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/nemos/_documentation_utils/_myst_nb_glue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
"""overwrite string repr for gluing string variable outputs."""
"""
Utilities for capturing and gluing function outputs for interactive documentation.
This module provides tools to enhance documentation workflows by enabling the capture
of print outputs and source code from Python functions. These outputs can then be
formatted and embedded into Jupyter Notebooks or static documentation using the
`myst-nb` glue functionality.
## Main Features:
- `capture_print`: A decorator to capture print statements from a function and return them alongside the function's
output.
- `extract_body_exclude_def_and_return`: A utility to extract and format the body of a function, excluding its
definition and return statement.
- `FormattedString`: A helper class to wrap and format text for use with the glue functionality.
"""

import inspect
import textwrap
Expand Down

0 comments on commit f3d44ac

Please sign in to comment.