Show More
@@ -1,25 +1,21 | |||
|
1 | 1 | Autoreload verbosity |
|
2 | 2 | ==================== |
|
3 | 3 | |
|
4 | 4 | We introduce more descriptive names for the `%autoreload` parameter: |
|
5 | 5 | - `%autoreload now` (also `%autoreload`) - perform autoreload immediately. |
|
6 | 6 | - `%autoreload off` (also `%autoreload 0`) - turn off autoreload. |
|
7 | - `%autoreload explicit` (also `%autoreload 1`) - turn on autoreload only for modules | |
|
8 | whitelisted by `%aimport` statements. | |
|
9 | - `%autoreload all` (also `%autoreload 2`) - turn on autoreload for all modules except those | |
|
10 | blacklisted by `%aimport` statements. | |
|
11 | - `%autoreload complete` (also `%autoreload 3`) - all the fatures of `all` but also adding new | |
|
12 | objects from the imported modules (see | |
|
13 | IPython/extensions/tests/test_autoreload.py::test_autoload_newly_added_objects). | |
|
7 | - `%autoreload explicit` (also `%autoreload 1`) - turn on autoreload only for modules whitelisted by `%aimport` statements. | |
|
8 | - `%autoreload all` (also `%autoreload 2`) - turn on autoreload for all modules except those blacklisted by `%aimport` statements. | |
|
9 | - `%autoreload complete` (also `%autoreload 3`) - all the fatures of `all` but also adding new objects from the imported modules (see IPython/extensions/tests/test_autoreload.py::test_autoload_newly_added_objects). | |
|
14 | 10 | |
|
15 | 11 | The original designations (e.g. "2") still work, and these new ones are case-insensitive. |
|
16 | 12 | |
|
17 | 13 | The parsing logic for `%aimport` is now improved such that modules can be whitelisted and |
|
18 | 14 | blacklisted in the same line, e.g. it's now possible to call `%aimport os, -math` to include `os` |
|
19 | 15 | for `%autoreload explicit` and exclude `math` for modes 2 and 3. |
|
20 | 16 | |
|
21 | 17 | A new magic command `%averbose` controls printing of the names of modules about to be autoreloaded. |
|
22 | 18 | - `%averbose off` / `%averbose 0` - turns off all output (default behavior) |
|
23 | 19 | - `%averbose on` / `%averbose 1` - uses `print` to display module name |
|
24 | 20 | - `%averbose log` / `%averbose 2` - logs an `INFO` message with the module name |
|
25 | 21 |
General Comments 0
You need to be logged in to leave comments.
Login now