Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariusgiger/data-science-template
Skeleton repository for data science tasks.
https://github.com/mariusgiger/data-science-template
Last synced: 12 days ago
JSON representation
Skeleton repository for data science tasks.
- Host: GitHub
- URL: https://github.com/mariusgiger/data-science-template
- Owner: mariusgiger
- Created: 2020-02-18T13:00:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-24T17:20:26.000Z (over 2 years ago)
- Last Synced: 2024-11-09T05:38:08.338Z (2 months ago)
- Language: Jupyter Notebook
- Size: 1.12 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Data science template
Repository holding template structure for data science.
## TL;DR
```
curl -s -L https://raw.githubusercontent.com/mariusgiger/data-science-template/master/setup.sh | bash
```## Work
run the following command:
```{.sh}
./start.sh
```This will enter the virtual environment and start `jupyter`. Stop it by pressing `Ctrl-c`.
You can enter the virtual env manually by running:
```{.sh}
source bin/activate
```You can then install dependencies:
```{.sh}
pip install
```Freeze the current dependencies:
```{.sh}
pip freeze > requirements.txt
```Upgrade all packages:
```
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
pip freeze > requirements.txt
```Install `jupyter` extensions:
```
pip install -U jupyter_contrib_nbextensions
jupyter contrib nbextension install --sys-prefix
jupyter nbextension enable code_prettify/autopep8
```Leave the virtual env using the following command:
```{.sh}
deactivate
```## Troubleshooting
To fix a broken environment, run the following commands
```
rm -rf .Python bin/python* lib/python*/* include/python*
pip3 install -U virtualenv
virtualenv -p python3 .
source ./bin/activate
python3 -m pip install --upgrade pip
pip install -r requirements.txt
pip install -U jupyter_contrib_nbextensionsjupyter contrib nbextension install --sys-prefix
jupyter nbextension enable code_prettify/autopep8
ipython kernel install --user --name $project_name --display-name "Python ($project_name)"
```## Useful Links
- https://medium.com/@eleroy/jupyter-notebook-in-a-virtual-environment-virtualenv-8f3c3448247