Jupyter工具包【单个单元格时间与内存消耗】
Project description
Jupyter Memory Monitor
一个简单的Jupyter笔记本内存监控工具,可以实时显示每个单元格执行后的内存和时间使用情况。
功能特点
- 实时监控内存使用情况
- 自动显示每个单元格执行后的内存占用
- 显示系统总内存使用率
- 轻量级,无需额外配置
安装
pip install jupyter-memory-monitor
快速开始
在Jupyter笔记本中导入并初始化:
import jupyter_memory_monitor
jupyter_memory_monitor.init()
初始化后,每次执行单元格都会在输出区域看到类似下面的信息:
内存使用情况: 当前使用: 256.45 MB 使用率: 12.3% 单元格运行时间: 1.23秒
依赖要求
- Python >= 3.6
- IPython >= 7.0.0
- psutil >= 5.0.0
许可证
本项目采用 MIT 许可证
贡献指南
欢迎提交 Issue 和 Pull Request!
更新日志
0.2.2
- 增加单元格执行时间显示
0.1.0
- 首次发布
- 实现基本的内存监控功能
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
yjxj_jupyter-0.3.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file yjxj_jupyter-0.3.0.tar.gz
.
File metadata
- Download URL: yjxj_jupyter-0.3.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd0f7dfb2809f3c23f6d09407ecf5a3913c72e3bc6daad327ba337408afa62ad |
|
MD5 | a5d27c8a7d6de252580d197460b3476f |
|
BLAKE2b-256 | c2ce440702cdf9c198e1e2d2ea2e0d8c04b363bb68d6e59ca7391d8c3731f3b9 |
File details
Details for the file yjxj_jupyter-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: yjxj_jupyter-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e886f30fb55baa6f3f4ddf22266eca8ccd68b3eb18a58322f18837d53f3d7d |
|
MD5 | 7e4bbcd9047ea601c2c9779dea2a592e |
|
BLAKE2b-256 | abbf0f11f41c71f1c3280fd6b17ab34a5add68d4a607c462bdddd92872c6701b |