Magic commands to get file usage from python function shutil.disk_usage().
Project description
df_jupyter_magic
%df
magic commands to get file usage within JupyterLab notebook. This package utilizes python function shutil.disk_usage()
.
Requirements
- JupyterLab >= 3.0
- Python >= 3.6
Install
To install this package, execute:
pip install df-jupyter-magic
Uninstall
To remove the package, execute:
pip uninstall df-jupyter-magic
How to Use
You must first import the package by running following command:
import df_jupyter_magic
Then, you may use one of the following commands:
%df
returns a human readable string in GB. Input is the path to the disk/partition.%df --raw
returns a raw data object.%df --on
returns rsults in a string in GB after every subsequent cell run.%df --off
turns offon
.%df -p /
sets the path to the partition to check.%df -v
prints off additional text for debugging.
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 df_jupyter_magic-0.0.21.tar.gz
.
File metadata
- Download URL: df_jupyter_magic-0.0.21.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.1 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8adc8cc27aceff14301e778af70bbf5eeba9bea771d17fd20ebbf1a8738a7772 |
|
MD5 | cd3f26eca8f6903c9161566dffda4ccf |
|
BLAKE2b-256 | 37169cc9b2fe4e5a44e97d0fbcabf826346e274570808f98ff8c8a5547ca34e0 |
File details
Details for the file df_jupyter_magic-0.0.21-py3-none-any.whl
.
File metadata
- Download URL: df_jupyter_magic-0.0.21-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.1 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 014ce48cfd90ebfdcd2b7b5deffe853a51b56b65470a0363ac0f38a0922a9dd0 |
|
MD5 | 4687c7a37171dcd372953439344a16c6 |
|
BLAKE2b-256 | a062a0192347eb59ffc0ca4658db8517a996cda38e6b14e15904c57911eb9e8c |