1.9 KiB
Installing
Python package
To install Concrete Numpy from PyPi, run the following:
pip install concrete-numpy
{% hint style='info' %}
Note that concrete-numpy has pygraphviz as an optional dependency to draw graphs.
{% endhint %}
{% hint style='info' %}
pygraphviz requires graphviz packages being installed on your OS, see https://pygraphviz.github.io/documentation/stable/install.html
{% endhint %}
{% hint style='tip' %}
graphviz packages are binary packages that won't automatically be installed by pip.
Do check https://pygraphviz.github.io/documentation/stable/install.html for instructions on how to install graphviz for pygraphviz.
{% endhint %}
You can install the extra python dependencies for drawing with:
pip install concrete-numpy[full]
# you may need to force reinstallation
pip install --force-reinstall concrete-numpy[full]
Docker image
You can also get the concrete-numpy docker image by either pulling the latest docker image or a specific version:
docker pull zamafhe/concrete-numpy:latest
# or
docker pull zamafhe/concrete-numpy:v0.2.0
The image can be used with docker volumes, see the docker documentation here.
You can then use this image with the following command:
docker run --rm -it -p 8888:8888 zamafhe/concrete-numpy:v0.2.0
or with local volume to save notebooks on host:
docker run --rm -it -p 8888:8888 -v /host/path:/data zamafhe/concrete-numpy:v0.2.0
This will launch a Concrete Numpy enabled jupyter server in the docker, that you can access from your browser.
Alternatively, you can just open a shell in the docker with or without volumes:
docker run --rm -it zamafhe/concrete-numpy:v0.2.0 /bin/bash