Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ RUN apt-get install -y \
libffi-dev \
python3-dev \
python3-pip \
curl
curl \
gcc

# Change Aliases
RUN cd "$(dirname $(which python3))" \
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ Make sure to wait at least 30 seconds before launching any service !


# Development
1. After making your changes, run `docker-compose build -f dev-docker-compose.yml`
1. After making your changes, run `docker-compose -f dev-docker-compose.yml build`

*(N.B. : the build process may be long, due to the build of jupyterlab after installing extensions)*


# Commande pour executer un notebook rapidement terminal jupyterlab
`docker exec jupyterlab bash /scripts/run_notebook.sh /home/notebooks/Data_SIMA/P.O.C/immats_03_21.ipynb`

`docker exec jupyterlab bash /scripts/run_notebook.sh /home/notebooks/Data_SIMA/P.O.C/immats_2018.ipynb`

`docker exec jupyterlab bash /scripts/run_notebook.sh /home/notebooks/Data_SIMA/P.O.C/immats_2019.ipynb`

`docker exec jupyterlab bash /scripts/run_notebook.sh /home/notebooks/Data_SIMA/P.O.C/immats_2020.ipynb`
18 changes: 0 additions & 18 deletions datafuel.docker-compose.yml

This file was deleted.

10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ version: '3'
services:
jupyterlab:
image: datafuel/jupyterlab
container_name: jupyterlab
environment:
- TOKEN=$TOKEN
command: "jupyter lab --ip=0.0.0.0 --port=8888 --allow-root --NotebookApp.token=$TOKEN"
volumes:
- ./notebooks:/home/notebooks
- ./scripts:/scripts
ports:
- 8888:8888
- 8888:8888

networks:
default:
external:
name: datafuel-local-network

6 changes: 0 additions & 6 deletions notebooks/.ipynb_checkpoints/Untitled-checkpoint.ipynb

This file was deleted.

32 changes: 0 additions & 32 deletions notebooks/Untitled.ipynb

This file was deleted.

6 changes: 5 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ requests
Scrapy
jupyterlab
ipydeps
xeus-python
xeus-python
xlrd
openpyxl
SQLAlchemy
psycopg2-binary
2 changes: 2 additions & 0 deletions scripts/run_notebook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NOTEBOOK=$1
jupyter nbconvert --to notebook --execute $NOTEBOOK