nbqol.options#
Functions
|
Get the global InteractiveShell instance. |
|
|
|
|
|
Configure IPython's autoreload extension with specified level. |
- set_autoreload(level='complete')[source]#
Configure IPython’s autoreload extension with specified level.
This function configures IPython’s autoreload extension to automatically reload Python modules before executing code. This is useful during development to see changes to imported modules without restarting the kernel.
- Parameters:
level (str, optional) – The autoreload level to set. Options are: - ‘off’: Disable autoreload - ‘light’: Reload only modules imported with %aimport - ‘complete’: Automatically reload all modules (default)
- Return type:
None
Examples
>>> from nbqol import set_autoreload >>> set_autoreload('complete') # Enable full autoreload >>> set_autoreload('off') # Disable autoreloadNotes
This function must be run in an IPython environment (e.g., Jupyter notebook). It will raise an EnvironmentError if run in a standard Python interpreter.