update,
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
[[source]]
|
||||
url = "https://pypi.org/simple"
|
||||
verify_ssl = true
|
||||
name = "pypi"
|
||||
|
||||
[packages]
|
||||
jupyter = "*"
|
||||
notebook = "*"
|
||||
pandas = "*"
|
||||
quandl = "*"
|
||||
seaborn = "*"
|
||||
sklearn = "*"
|
||||
scikit-learn = "*"
|
||||
pydot = "*"
|
||||
bokeh = "*"
|
||||
jupyter-bokeh = "*"
|
||||
shap = "*"
|
||||
ipywidgets = "*"
|
||||
widgetsnbextension = "*"
|
||||
pandas-profiling = "*"
|
||||
|
||||
[dev-packages]
|
||||
|
||||
[requires]
|
||||
python_version = "3"
|
1740
Man1130/task1/Man1130-python-comission/tryout/jupyter-shap-helloworld/Pipfile.lock
generated
Normal file
1740
Man1130/task1/Man1130-python-comission/tryout/jupyter-shap-helloworld/Pipfile.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
python -m pip install --upgrade pip
|
||||
|
||||
python -m pip install pipenv
|
||||
|
||||
pipenv sync
|
||||
|
||||
python -m pipenv install shap
|
||||
python -m pipenv install ipywidgets widgetsnbextension pandas-profiling
|
||||
|
||||
|
||||
pipenv run \
|
||||
jupyter-notebook \
|
||||
--allow-root \
|
||||
--ip=0.0.0.0
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
pipenv install jupyter
|
||||
pipenv install jupyter notebook
|
||||
|
||||
pipenv install pandas
|
||||
pipenv install quandl
|
||||
|
||||
pipenv install seaborn
|
||||
pipenv install scikit-learn
|
||||
|
||||
# jupyter-notebook
|
||||
|
@@ -0,0 +1,23 @@
|
||||
### to spin up dev environment
|
||||
|
||||
```
|
||||
./start_docker.sh
|
||||
|
||||
// inside docker
|
||||
|
||||
./dev.sh
|
||||
|
||||
open host browser:
|
||||
http://127.0.0.1:8888/?token=98ab80de026fe83fd8e03c8e344b31e7575ec4a084c59f21
|
||||
|
||||
```
|
||||
|
||||
### to develop
|
||||
|
||||
start from fresh python docker image
|
||||
|
||||
```
|
||||
./start_docker.sh
|
||||
|
||||
./init.sh
|
||||
```
|
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
docker run -it \
|
||||
-v $PWD:/app \
|
||||
-w /app \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v ~/.ssh/id_rsa:/home/node/.ssh/id_rsa:ro \
|
||||
-v ~/.ssh/known_host:/home/node/.ssh/known_hosts:ro \
|
||||
-p 8888:8888 \
|
||||
--rm \
|
||||
python:3.10 \
|
||||
bash
|
||||
|
||||
# -u 1000:1000 \
|
||||
# -e XDG_CACHE_HOME=/app/.cache \
|
||||
|
Reference in New Issue
Block a user