Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lebedov/duster
Reset IPython namespace and reload specified packages
https://github.com/lebedov/duster
ipython
Last synced: 12 days ago
JSON representation
Reset IPython namespace and reload specified packages
- Host: GitHub
- URL: https://github.com/lebedov/duster
- Owner: lebedov
- License: other
- Created: 2013-08-21T13:59:53.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-26T16:34:42.000Z (over 7 years ago)
- Last Synced: 2024-10-11T02:27:01.900Z (25 days ago)
- Topics: ipython
- Language: Python
- Homepage: https://github.com/lebedov/duster
- Size: 27.3 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
.. -*- rst -*-
Duster
======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... image:: https://img.shields.io/pypi/v/duster.svg
:target: https://pypi.python.org/pypi/duster
:alt: Latest Version
.. Uncomment after pypi is migrated to warehouse and stats are re-enabled:
.. https://github.com/badges/shields/issues/716
.. .. image:: https://img.shields.io/pypi/dm/duster.svg
:target: https://pypi.python.org/pypi/duster
:alt: DownloadsInstallation
------------
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 `_.Author
------
See the included `AUTHORS.rst
`_ file for more
information.License
-------
This software is licensed under the
`BSD License `_.
See the included `LICENSE.rst
`_ file for more
information.