From 28fc51eb9ffc8102433bf21c55f288d829c37cfb 2023-12-31 10:25:00 From: Matthias Bussonnier Date: 2023-12-31 10:25:00 Subject: [PATCH] Update example for %alias_magic (#14276) Fix example for creating `%alias_magic` --- diff --git a/IPython/core/magics/basic.py b/IPython/core/magics/basic.py index 865e760..3ac4049 100644 --- a/IPython/core/magics/basic.py +++ b/IPython/core/magics/basic.py @@ -124,7 +124,7 @@ class BasicMagics(Magics): In [6]: %whereami Out[6]: '/home/testuser' - In [7]: %alias_magic h history "-p -l 30" --line + In [7]: %alias_magic h history -p "-l 30" --line Created `%h` as an alias for `%history -l 30`. """