From a7a3854d53ff27510f4b18a13a8bb94a0a197006 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Wed, 5 Apr 2023 20:24:27 +0200 Subject: [PATCH] init commit --- .gitignore | 1 + requirements.txt | 105 +++++++++++++++++++++++++++++++++++++++++++++++ run.sh | 28 +++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 .gitignore create mode 100644 requirements.txt create mode 100755 run.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..21d0b89 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv/ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3c903cf --- /dev/null +++ b/requirements.txt @@ -0,0 +1,105 @@ +aiofiles==22.1.0 +aiosqlite==0.18.0 +anyio==3.6.2 +argon2-cffi==21.3.0 +argon2-cffi-bindings==21.2.0 +arrow==1.2.3 +asttokens==2.2.1 +attrs==22.2.0 +Babel==2.12.1 +backcall==0.2.0 +beautifulsoup4==4.12.1 +bleach==6.0.0 +certifi==2022.12.7 +cffi==1.15.1 +charset-normalizer==3.1.0 +colorama==0.4.6 +comm==0.1.3 +debugpy==1.6.6 +decorator==5.1.1 +defusedxml==0.7.1 +executing==1.2.0 +fastjsonschema==2.16.3 +fqdn==1.5.1 +gitdb==4.0.10 +GitPython==3.1.31 +idna==3.4 +ipykernel==6.22.0 +ipython==8.12.0 +ipython-genutils==0.2.0 +isoduration==20.11.0 +jedi==0.18.2 +Jinja2==3.1.2 +json5==0.9.11 +jsonpointer==2.3 +jsonschema==4.17.3 +jupyter-events==0.6.3 +jupyter-server-mathjax==0.2.6 +jupyter-ydoc==0.2.3 +jupyter_client==8.1.0 +jupyter_core==5.3.0 +jupyter_server==2.5.0 +jupyter_server_fileid==0.8.0 +jupyter_server_terminals==0.4.4 +jupyter_server_ydoc==0.8.0 +jupyterlab==3.6.3 +jupyterlab-git==0.41.0 +jupyterlab-pygments==0.2.2 +jupyterlab_server==2.22.0 +MarkupSafe==2.1.2 +matplotlib-inline==0.1.6 +mistune==2.0.5 +nbclassic==0.5.5 +nbclient==0.7.3 +nbconvert==7.3.0 +nbdime==3.1.1 +nbformat==5.8.0 +nest-asyncio==1.5.6 +notebook==6.5.3 +notebook_shim==0.2.2 +numpy==1.24.2 +packaging==23.0 +pandas==2.0.0 +pandocfilters==1.5.0 +parso==0.8.3 +pexpect==4.8.0 +pickleshare==0.7.5 +pip-autoremove==0.10.0 +platformdirs==3.2.0 +prometheus-client==0.16.0 +prompt-toolkit==3.0.38 +psutil==5.9.4 +ptyprocess==0.7.0 +pure-eval==0.2.2 +pyarrow==11.0.0 +pycparser==2.21 +Pygments==2.14.0 +pyrsistent==0.19.3 +python-dateutil==2.8.2 +python-json-logger==2.0.7 +pytz==2023.3 +PyYAML==6.0 +pyzmq==25.0.2 +requests==2.28.2 +rfc3339-validator==0.1.4 +rfc3986-validator==0.1.1 +Send2Trash==1.8.0 +six==1.16.0 +smmap==5.0.0 +sniffio==1.3.0 +soupsieve==2.4 +stack-data==0.6.2 +terminado==0.17.1 +tinycss2==1.2.1 +tomli==2.0.1 +tornado==6.2 +traitlets==5.9.0 +tzdata==2023.3 +uri-template==1.2.0 +urllib3==1.26.15 +wcwidth==0.2.6 +webcolors==1.13 +webencodings==0.5.1 +websocket-client==1.5.1 +y-py==0.5.9 +ypy-websocket==0.8.2 diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..b81bf91 --- /dev/null +++ b/run.sh @@ -0,0 +1,28 @@ +#!/bin/bash +envFolder=".venv" + +init_venv() { + if [ ! -d "$PWD/$envFolder" ]; then + echo "Initializing virtual environment..." + python3 -m venv "$PWD/$envFolder" + #update_pip + fi +} + +update_pip() { + if [ -f "$PWD/$envFolder/bin/pip" ]; then + echo "Updating pip..." + "$PWD/$envFolder/bin/python" -m pip install --upgrade pip >> /dev/null + fi + if [ -f "$PWD/requirements.txt" ]; then + echo "Installing modules..." + "$PWD/$envFolder/bin/python" -m pip install -r "$PWD/requirements.txt" >> /dev/null + else + echo "No requirements found, installing pip-autoremove..." + "$PWD/$envFolder/bin/python" -m pip install "pip-autoremove" >> /dev/null + "$PWD/$envFolder/bin/python" -m pip freeze > "$PWD/requirements.txt" + fi +} + +init_venv +jupyter lab \ No newline at end of file