Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1 KB

File metadata and controls

25 lines (14 loc) · 1 KB

Read in book format

Samples in this repo

  • See up to date list here.

Python shell tricks

  • Placing cursor to previous line and enter will copy the line to a new line.

Dockerfile

For better environment isolation we should use docker instead of virtual environment, it will be more portable and shareable. Different dockerfiles are defined in the different folder for the different studies.

  • DockerfileForEnv -> jbcodeforce/python with pandas, numpy, flask. Server as base image

    docker build -f DockerfileForEnv -t jbcodeforce/python .

    Start the container with startPythonDocker.sh, it mounts current folder into /app within the container and open a bash session.

  • Dockerfile for Flask app: Flask/Dockerfile