laboneq.workflow.highlight
¶
Source code highlighting functions for LabOne Q workflows.
pygmentize(f=None, lexer='python')
¶
A decorator for adding pygments syntax highlighting in Jupyter notebooks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
f |
Callable[..., str] | None
|
The function to decorate. |
None
|
lexer |
Lexer | str
|
The name of the pygments lexer to use. |
'python'
|
Return
If f
is not None, the decorated function. Otherwise, a new decorator
with partial arguments supplied.