A collection of IPython magic commands and other utilities.
- A line magic to automatically select the local CUDA device(s) with the most free memory.
- A cell magic to automatically capture
plt.plot(); plt.show()
calls and display them as an animation once the cell has finished executing.
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
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.
pytest
pre-commit run --all-files
Or pre-commit install
to run automatically on git commit
.
gh release create