The blocks-extras
repository contains a variety of useful extensions to
Blocks. The goal of this repository is for people to share useful extensions,
bricks, and other code snippets that are perhaps not general enough to go into
the core Blocks repository.
Clone to a directory of your choice.
$ git clone [email protected]:mila-udem/blocks-extras.git
Because of limitations in pip it is important that you install blocks-extras
the same way that you installed Blocks. So, if you installed Blocks in editible mode,
use the command:
$ pip install -e .
And if you installed Blocks in the normal mode (so using pip install
without -e
)
then run this from the directory you just cloned instead:
$ pip install .
Note that you might have problems with namespace packages if you try to install using
python setup.py develop
.
blocks-extras
is a namespace package, which means that everything can be
imported from blocks.extras
. For example, you can use:
from blocks.extras.extensions.plotting import Plot