Reset IPython namespace and reload specified packages
Project description
Package Description
Duster is an IPython extension that selectively clears one’s IPython session namespace while automatically ignoring specified variables to preserve and reloading specified packages.
Installation
The package may be installed as follows:
pip install duster
After installation, the extension may be loaded within an IPython session with
%load_ext duster
Configuration
Modules to be reloaded when duster is invoked should each be listed as a tuple containing the module name and the name to which it should be imported (or ‘’ if it should be imported as-is). For example:
c.DusterMagic.modules = [('numpy', 'np'), ('scipy', 'sp'), ('sys', '')]
Variables to be ignored when resetting the IPython namespace should be listed by name as follows:
c.DusterMagic.ignore = ['varname0', 'varname1']
The above settings may be viewed and/or modified within an IPython session using
%config DusterMagic
Notes
Duster will automatically reload pylab if pylab mode is active.
Development
The latest release of the package may be obtained from GitHub.
License
This software is licensed under the BSD License. See the included LICENSE.rst file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file duster-0.2.5.tar.gz
.
File metadata
- Download URL: duster-0.2.5.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc3d769ad59a565921234f5c19057f05b104d8029cea0626dec1899e603ec67 |
|
MD5 | a6892bf60a363d61bd4603189192efe5 |
|
BLAKE2b-256 | 3b7aa027f82778f6199ac36201c70cacb01098925b994fcc52ac422df85c5e3a |
File details
Details for the file duster-0.2.5-py2.py3-none-any.whl
.
File metadata
- Download URL: duster-0.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a23affa2c0139fad113b1f3c65037b4b2543aea6243c05d487ebdf1c1fee6d45 |
|
MD5 | 979a7f6c753f4865234a0113e49d24cc |
|
BLAKE2b-256 | efd6008c02acbb28f548ba26d964253d8d3a4b7730d892c04285e19ba1f5b3d8 |