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