In top-level directory, mlc
.
mamba
and conda
from miniforge
.We have found that the miniforge
versions of mamba
and conda
work better than those you get from the anaconda
graphical
installer. You can make any of them work, but this seems
smoothest to us.
https://github.com/conda-forge/miniforge
mamba env create -f environment_unix.yml
conda activate mlc
src
, or set PYTHONPATH
There are two ways to make the code accessible and to reload it on each run:
into the mlc
environment
pip install -e .
PYTHONPATH
Either on-the-fly for each run, for example:
PYTHONPATH="./src:$PYTHONPATH" pytest
or once per terminal session:
export PYTHONPATH="./src:$PYTHONPATH"
before running tests.
pytest
The -s
option tells pytest
to display print
output.
pytest -s
dot -Tpng mnist-cnn.dot -o mnist-cnn.dot.png