Created
July 17, 2020 13:18
-
-
Save laszlocsontos/82a395aa3b59122296f7c18ce8a93170 to your computer and use it in GitHub Desktop.
Initializes a virtual Python environment with Jupyter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
env_name="venv" | |
python3 -m venv ${env_name} | |
source ${env_name}/bin/activate | |
if [ ! -f requirements.txt ]; then | |
pip install numpy pandas matplotlib scipy scikit-learn jupyter jupyter-datatables | |
pip freeze > requirements.txt | |
else | |
pip install -r requirements.txt | |
fi | |
python -m ipykernel install --prefix ./${env_name} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment