A collection of IPython magic commands and other utilities
Project description
ipytoolbox
A collection of IPython magic commands and other utilities.
Features
%autocuda
- A line magic to automatically select the local CUDA device(s) with the most free memory.
%%animate
- A cell magic to automatically capture
plt.plot(); plt.show()calls and display them as an animation once the cell has finished executing.
Install
First make sure Python is installed, then run:
pip install ipytoolbox
Then you can use it in IPython or Jupyter Notebooks by
%load_ext ipytoolbox
Develop
First clone the repo and set it as working directory. Then install the package in development mode (preferably within its own virtual environment):
pip install -e ".[tests]"
If you have direnv installed, you can run direnv allow to automatically create and activate a Python virtual environment when you enter the directory.
Test
pytest
Lint
pre-commit run --all-files
Or pre-commit install to run automatically on git commit.
Publish
gh release create
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ipytoolbox-0.3.0.tar.gz.
File metadata
- Download URL: ipytoolbox-0.3.0.tar.gz
- Upload date:
- Size: 154.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d40d181db2d25a48020ac5e1ba7a891b64eb7e19ef99e57c5140b3ba0b1fc63
|
|
| MD5 |
f9418fc9c137261c1eeed8df254dad6b
|
|
| BLAKE2b-256 |
fe5276ffe30d3cda72360caa01ffcaf5a020e8dfc255025a195f77f7ec597a75
|
File details
Details for the file ipytoolbox-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ipytoolbox-0.3.0-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6937476049346304f5eabcc71c09535059b38e0ae5565b71f47f93677d8b180a
|
|
| MD5 |
d88ea4658c2c15d15b8312861cb22c43
|
|
| BLAKE2b-256 |
2167dead883eb3ddbc9434b2d0de65d175a34d4510be9cf92646bdb9573010b7
|