memprofiler
memprofiler is a simple extension for monitoring memory usage of Jupyter notebook cells.
Installation
It can be installed as a typical Python source package from PyPi using pip:
pip install memprofiler
Usage
A basic example of how to use this extension can be found in this interactive Jupyter notebook.
Reference
mprof_run
%mprof_run [-q] [-i INTERVAL] [-p] [profile_id]
Run memory profiler during cell execution. (cell_magic)
-
positional arguments:
- profile_id
Profile label. You can specify up to two keywords by separating them with :: (keyword0::keyword1). Only profile_ids with two keywords can be used in plot-related functions.
- profile_id
-
optional arguments:
-
-q, --quiet
Suppress verbosity. -
-i INTERVAL, --interval INTERVAL
Sampling period (in seconds), default 0.01. -
-p, --plot
Plot the memory profile.
-
mprof_plot
%mprof_plot [-t TITLE] [--groupby {0,1}] profile_ids [profile_ids ...]
Plot detailed memory profiler results. (line_magic)
-
positional arguments:
- profile_ids
Profile identifiers made by mprof_run. Supports regex.
- profile_ids
-
optional arguments:
-
-t TITLE, --title TITLE
String shown as plot title. -
--groupby <{0,1}>
Identifier number used to group the results, default 1.
-
mprof_barplot
%mprof_barplot [-t TITLE] [--variable {time,memory}] [--barmode {group,stack}] [--groupby {0,1}] profile_ids [profile_ids ...]
Plot only-memory or only-time results in a bar chart. (line_magic)
-
positional arguments:
- profile_ids
Profile labels made by mprof_run. Supports regex.
- profile_ids
-
optional arguments:
-
-t TITLE, --title TITLE
String shown as plot title. -
--variable <{time,memory}>
Variable to plot, default 'memory'. -
--barmode <{group,stack}>
Bar char mode, default 'group'. -
--groupby <{0,1}>
Identifier number used to group the results, default 1.
-
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the BSD 3-Clause License. See LICENSE for more information.
Acknowledgements
Metadata
Release files for memprofiler 0.1.9
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 | |
|---|---|---|---|---|
| memprofiler-0.1.9.tar.gz | 5.5 kB | Without provenance | Details |
Release files / memprofiler-0.1.9.tar.gz
| Download URL | memprofiler-0.1.9.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdd96d12fef66149b198cef9eda9b8bf0afd67de8d784b4d9fc0e3be36a97dfc
|
|
BLAKE2b-256 checksum How to use checksums |
c9fcef73a29c56226ad68c50901506b44960cd1b9cac39e4cea953c1eaa03ec2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Security for memprofiler 0.1.9
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.