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
Close
Hashes for df_jupyter_magic-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 014ce48cfd90ebfdcd2b7b5deffe853a51b56b65470a0363ac0f38a0922a9dd0 |
|
MD5 | 4687c7a37171dcd372953439344a16c6 |
|
BLAKE2b-256 | a062a0192347eb59ffc0ca4658db8517a996cda38e6b14e15904c57911eb9e8c |