IPython Namespaces
Extension for IPython/Jupyter Notebooks that adds namespaces that you can enter and re-enter.
(Because: “Namespaces are one honking great idea – let’s do more of those!”)
Usage (in a Jupyter Notebook)
Install and load the extension:
!pip install -U ipython-namespaces
%load_ext ipython_namespaces
Use the space cell magic:
foo = 23
%%space dustin
bar = 42
foo, bar
Output: (23, 42)
foo, bar
Output: NameError: name 'bar' is not defined
%%space dustin
foo, bar
Output: (23, 42)
from ipython_namespaces import Namespaces
Namespaces.dustin['bar']
Output: 42
Features
- Separate namespaces within one Jupyter Notebook
- Access to other namespaces via the
Namespacesclass - Unchanged behavior of
display– the value of the last line in a cell is displayed - Unchanged behavior of tracebacks – the problematic line in one’s own code is highlighted
Acknowledgements
Thanks to Davide Sarra and the Jupyter Spaces extension for the inspiration!
Metadata
Release files for ipython-namespaces 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ipython-namespaces-0.1.3.tar.gz | 2.2 kB | Without provenance | Details for ipython-namespaces-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipython_namespaces-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for ipython_namespaces-0.1.3-py3-none-any.whl |
Total release size: 4.7 kB
Release files / ipython-namespaces-0.1.3.tar.gz
| Download URL | ipython-namespaces-0.1.3.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de72a6fec64634cbadfc121ccc281d75bfdc24f7dce38733071cd449595af162
|
|
BLAKE2b-256 checksum How to use checksums |
574b8a747c2b8413ee68a9ef66d58f189c6b898c9e654595326fcd9215874d35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.16 CPython/3.7.1 Linux/4.4.0-128-generic
|
Release files / ipython_namespaces-0.1.3-py3-none-any.whl
| Download URL | ipython_namespaces-0.1.3-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2bfe6d0ce999f135b74be009c9d56408cdccd95bd5b83ce96fa4adfa1b7d72b
|
|
BLAKE2b-256 checksum How to use checksums |
f454fcc62d049f25392bdfcef5a30eea37dee442647cc0b77ed65756012142d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.16 CPython/3.7.1 Linux/4.4.0-128-generic
|
Security for ipython-namespaces 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.