Commit 61f08dc4 authored by MichaelAng's avatar MichaelAng

[ban265] cleaned up skelly

parent f4a312b5
FROM quay.io/jupyter/datascience-notebook:2024-01-15
FROM python:3.12.1-bullseye
WORKDIR /src
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY / ./
ENTRYPOINT ["python", "main.py"]
\ No newline at end of file
DOCKER_BASE_CMD := docker run --rm -it -w /src \
-v $(PWD):/src
.PHONY: build
build:
docker build -f Dockerfile -t ban265 .
.PHONY: exec
exec:
$(DOCKER_BASE_CMD) \
--entrypoint /bin/bash \
ban265
.PHONY: run
run:
$(DOCKER_BASE_CMD) \
ban265
.PHONY: fmt
fmt:
$(DOCKER_BASE_CMD) \
--entrypoint /bin/bash \
ban265 \
-c 'black .'
.PHONY: jupyter
jupyter:
docker run -it --rm \
-p 8888:8888 \
-v "${PWD}":/home/jovyan/work \
quay.io/jupyter/datascience-notebook:2024-01-15
\ No newline at end of file
# Quick Start
```
docker run -it --rm -p 8888:8888 -v "${PWD}":/home/jovyan/work quay.io/jupyter/datascience-notebook:2024-01-15
```
# Installation
1. Start Docker
2. Clone the repository to your local machine
## Usage
1. Navigate to the project directory
2. Run the following commands
```
make build
make run
```
# Source Stack
https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html
\ No newline at end of file
## Exec
1. Navigate to the project directory
2. Run the following commands
```
make exec
```
## Format
1. Navigate to the project directory
2. Run the following commands
```
make fmt
```
## Usage jupyter
This is an alternative data analytics tool
1. Navigate to the project directory
2. Run the following commands
```
make jupyter
```
## Cited Source
1. https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html
2. https://pandas.pydata.org/docs/
3. https://numpy.org/doc/stable/
4. https://matplotlib.org/stable/index.html
5. https://scikit-learn.org/stable/user_guide.html
\ No newline at end of file
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "3e220b9e-90bc-45d9-9894-93e20fd3bff2",
"metadata": {},
"outputs": [],
"source": [
"print('Hello World')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
import numpy as np
import pandas as pd
s = pd.Series(np.random.randn(5), index=["a", "b", "c", "d", "e"])
print(s)
black==24.1.1
matplotlib==3.8.2
numpy==1.26.3
pandas==2.2.0
scikit-learn==1.4.0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment