MagicSettings#
- class scikitplot._ipymagic.MagicSettings(raise_on_error=False, timeout=None, isolate=False, stream=True)[source]#
Behaviour of the magics for one IPython session.
- Parameters:
- raise_on_errorbool, default=False
Raise
CommandFailedErrorfor a non-zero exit status.- timeoutfloat or None, default=None
Seconds a subprocess command may run; None for no limit.
- isolatebool, default=False
Run native commands in a subprocess too.
- streambool, default=True
Show subprocess output as it is produced.
- Parameters:
- updated(text)[source]#
Return the settings with
key=valueassignments applied.- Parameters:
- textstr
Space-separated
key=valuepairs.
- Returns:
- MagicSettings
New settings (
selfis unchanged).
- Raises:
- MagicUsageError
For an unknown name, a malformed pair or a bad value (no change is applied).
- Parameters:
text (str)
- Return type:
Examples
>>> from scikitplot._ipymagic import MagicSettings >>> MagicSettings().updated("raise_on_error=true timeout=60").timeout 60.0
Gallery examples#
Clean a Prompt in a Notebook Cell with %%scikitplot
Clean a Prompt in a Notebook Cell with %%scikitplot
Inspect and Self-test the MCP Server from a Notebook
Inspect and Self-test the MCP Server from a Notebook