/python-code

All python code developed from learning and studies

Primary LanguagePython

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