latest changes

This commit is contained in:
Sebastian Wendel 2022-09-28 00:34:06 +02:00
parent 720d250ab9
commit d9ecf261da
No known key found for this signature in database
GPG key ID: 1422B7DF78144640
2 changed files with 33 additions and 7 deletions

View file

@ -2,6 +2,19 @@
## Commands
### Build a Jupiterhub Docker Container
```sh
nix build .#cyanovision-docker -o ./build/cyanovision.tgz
```
```sh
docker load < ./build/cyanovision.tgz
docker run --rm -it -p 8888:8888 -v $HOME:/mnt cyanovision
```
Now [access JupyterHub webinterface](http://127.0.0.1:8888/lab) to develop Notebooks.
### Run the Cyanovision UI
```sh
@ -10,5 +23,10 @@ nix run https://code.curious.bio/curious.bio/nix-cyanovision#.
## Links
* <https://nixos.org/download.html>
* <https://github.com/IoannouPanayiotis/Sensor-CDT-Team-Challenge-2021-2022>
* <https://nixos.org/download.html>
###
* <https://jupyter.org/hub>
* <https://jupyter-tutorial.readthedocs.io/>

View file

@ -26,7 +26,7 @@
iPython = pkgs.kernels.iPythonWith {
name = cyanovision.name;
packages = p: with p; [sympy numpy];
packages = cyanovision.pythonPackages ++ cyanovision.jupyterEnvironment;
ignoreCollisions = true;
};
@ -50,12 +50,18 @@
libsndfile
];
jupyterlabPackages = with pkgs; [
nodejs
npm
];
pythonPackages = with pkgs.python310Packages; [
matplotlib
numpy
pathlib2
pillow
pycocotools
sympy
tensorflow
tkinter
];
@ -149,12 +155,14 @@
packages.cyanovision-model = cyanovision.packages.cyanovision-model;
packages.cyanovision-dataset = cyanovision.packages.cyanovision-dataset;
packages.tflite-model-maker = cyanovision.packages.tflite-model-maker;
packages.python-venv = python-venv;
packages.docker =
packages.cyanovision-venv = python-venv;
packages.cyanovision-docker =
(machNix.mkDockerImage {
packagesExtra = cyanovision.packagesExtra;
requirements = cyanovision.pythonPackages;
# packagesExtra = pkgs.lib.mkMerge (
# cyanovision.packagesExtra
# cyanovision.jupyterlabPackages
# );
requirements = "jupyterlab";
_.pytest-cov.propagatedBuildInputs.mod = pySelf: self: oldVal: oldVal ++ [pySelf.tomli];
})
.override