A repository for setting up Python development environments on your personal computer using Docker. This allows you to create environments tailored for Python web scraping or using advanced AI tools like Chat GPT.
Designed to work on a MacBook Air with the M2 chip.
git clone https://github.com/yumelab-imai/python_development_environment_with_docker.git
cd python_development_environment_with_docker/
docker-compose up -d --build
docker container ls
If successful, you should see an output similar to:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
123445 jupyterlab-test-img "jupyter-lab --ip 0.โฆ" 13 seconds ago Up 13 seconds 0.0.0.0:6666->6666/tcp dev-jupyterlab
docker-compose exec jupyterlab bash
python3 sample.py
How to setup Python with Docker
Module | Purpose |
---|---|
pandas | CSV Output |
requests | Fetching data |
BeautifulSoup | HTML Parsing |