Skip to main content

A collection of IPython magic commands and other utilities

Project description

ipytoolbox

A collection of IPython magic commands and other utilities.

Features

  • %autocuda - automatically select a CUDA device with the most free memory

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipytoolbox-0.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

ipytoolbox-0.1.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page