-
Create
python -m venv path\to\env
-
Activate
path\to\env\Scripts\activate.bat
-
Deactivate
path\to\env\Scripts\deactivate.bat
pip install jupyter-lab
-
generate config file
jupyter notebook –generate-config
-
uncomment / modify in %USERPROFILE%/.jupyter/jupyter_notebook_config.py
#c.NotebookApp.notebook_dir = ''
pip install ipykernel
-
add environment to use it in Jupyter
python -m ipykernel install --user --name=display_name
-
list existing env
jupyter kernelspec list
-
remove env
jupyter kernelspec uninstall myenv
Make it run on Docker:
from Dockerfile directory run: (do not forget the dot at the end)
docker build --tag myfirstflaskapi:v0 .
Check images installed
docker images
Run it: (bind port 80 to 8000 in container)
docker run -d -p 80:8000 myfirstflaskapi:v0
check in browser
localhost/predictln/?x=8.65
-
clean docker images/volumes... (all but the ones running)
docker system prune -a