From e94ec6c099861f060b8116dc6c62816dcf6444dc 2021-07-08 20:07:11 From: Blazej Michalik Date: 2021-07-08 20:07:11 Subject: [PATCH] Docs: mention empty histrange behavior of `%save` --- diff --git a/IPython/core/magics/code.py b/IPython/core/magics/code.py index e5b2ce1..9cad1ac 100644 --- a/IPython/core/magics/code.py +++ b/IPython/core/magics/code.py @@ -202,6 +202,9 @@ class CodeMagics(Magics): This function uses the same syntax as %history for input ranges, then saves the lines to the filename you specify. + If no ranges are specified, saves history of the current session up to + this point. + It adds a '.py' extension to the file if you don't do so yourself, and it asks for confirmation before overwriting existing files.