latest changes
This commit is contained in:
parent
720d250ab9
commit
d9ecf261da
20
README.md
20
README.md
|
@ -2,6 +2,19 @@
|
||||||
|
|
||||||
## Commands
|
## 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
|
### Run the Cyanovision UI
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@ -10,5 +23,10 @@ nix run https://code.curious.bio/curious.bio/nix-cyanovision#.
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
* <https://nixos.org/download.html>
|
|
||||||
* <https://github.com/IoannouPanayiotis/Sensor-CDT-Team-Challenge-2021-2022>
|
* <https://github.com/IoannouPanayiotis/Sensor-CDT-Team-Challenge-2021-2022>
|
||||||
|
* <https://nixos.org/download.html>
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
* <https://jupyter.org/hub>
|
||||||
|
* <https://jupyter-tutorial.readthedocs.io/>
|
||||||
|
|
20
flake.nix
20
flake.nix
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
iPython = pkgs.kernels.iPythonWith {
|
iPython = pkgs.kernels.iPythonWith {
|
||||||
name = cyanovision.name;
|
name = cyanovision.name;
|
||||||
packages = p: with p; [sympy numpy];
|
packages = cyanovision.pythonPackages ++ cyanovision.jupyterEnvironment;
|
||||||
ignoreCollisions = true;
|
ignoreCollisions = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,12 +50,18 @@
|
||||||
libsndfile
|
libsndfile
|
||||||
];
|
];
|
||||||
|
|
||||||
|
jupyterlabPackages = with pkgs; [
|
||||||
|
nodejs
|
||||||
|
npm
|
||||||
|
];
|
||||||
|
|
||||||
pythonPackages = with pkgs.python310Packages; [
|
pythonPackages = with pkgs.python310Packages; [
|
||||||
matplotlib
|
matplotlib
|
||||||
numpy
|
numpy
|
||||||
pathlib2
|
pathlib2
|
||||||
pillow
|
pillow
|
||||||
pycocotools
|
pycocotools
|
||||||
|
sympy
|
||||||
tensorflow
|
tensorflow
|
||||||
tkinter
|
tkinter
|
||||||
];
|
];
|
||||||
|
@ -149,12 +155,14 @@
|
||||||
packages.cyanovision-model = cyanovision.packages.cyanovision-model;
|
packages.cyanovision-model = cyanovision.packages.cyanovision-model;
|
||||||
packages.cyanovision-dataset = cyanovision.packages.cyanovision-dataset;
|
packages.cyanovision-dataset = cyanovision.packages.cyanovision-dataset;
|
||||||
packages.tflite-model-maker = cyanovision.packages.tflite-model-maker;
|
packages.tflite-model-maker = cyanovision.packages.tflite-model-maker;
|
||||||
packages.python-venv = python-venv;
|
packages.cyanovision-venv = python-venv;
|
||||||
|
packages.cyanovision-docker =
|
||||||
packages.docker =
|
|
||||||
(machNix.mkDockerImage {
|
(machNix.mkDockerImage {
|
||||||
packagesExtra = cyanovision.packagesExtra;
|
# packagesExtra = pkgs.lib.mkMerge (
|
||||||
requirements = cyanovision.pythonPackages;
|
# cyanovision.packagesExtra
|
||||||
|
# cyanovision.jupyterlabPackages
|
||||||
|
# );
|
||||||
|
requirements = "jupyterlab";
|
||||||
_.pytest-cov.propagatedBuildInputs.mod = pySelf: self: oldVal: oldVal ++ [pySelf.tomli];
|
_.pytest-cov.propagatedBuildInputs.mod = pySelf: self: oldVal: oldVal ++ [pySelf.tomli];
|
||||||
})
|
})
|
||||||
.override
|
.override
|
||||||
|
|
Loading…
Reference in a new issue