Skip to content

Commit f5269c9

Browse files
authored
Merge pull request #4 from cvazquezlos/main
Fixed large time to create a Codespace
2 parents 7a2dd6f + a4ac9e9 commit f5269c9

File tree

6 files changed

+21
-80
lines changed

6 files changed

+21
-80
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/python
31
{
4-
"name": "Python 3",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
62
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
3+
"waitFor": "onCreateCommand",
74
"onCreateCommand": "pip3 install --user -r requirements.txt",
5+
"postCreateCommand": "",
86
"customizations": {
97
"vscode": {
108
"extensions": [
119
"ms-toolsai.jupyter",
12-
"ms-python.python"
10+
"ms-python.python",
11+
"ms-python.pylint"
1312
]
1413
}
1514
}
16-
17-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
18-
// "forwardPorts": [],
19-
20-
// Use 'postCreateCommand' to run commands after the container is created.
21-
// "postCreateCommand": "pip3 install --user -r requirements.txt",
22-
23-
}
15+
}
16+

.gitpod.Dockerfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitpod.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

assets/preview.png

-112 KB
Binary file not shown.

requirements.txt

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
# Base ----------------------------------------
2-
ipywidgets==7.7.1
3-
sqlalchemy==1.4.37
4-
pymysql==1.0.2
5-
pandas==1.4.2
6-
python-dotenv==0.20.0
7-
psycopg2-binary==2.9.3
8-
requests==2.27.1
9-
10-
numpy>=1.18.5
11-
opencv-python>=4.1.2
12-
matplotlib>=3.2.2
131
ipyleaflet>=0.14.0
14-
sympy>=1.10.1
15-
xgboost
16-
17-
# Machine learning ----------------------------
2+
ipywidgets>=7.7.1
3+
matplotlib>=3.7.0
4+
numpy>=1.24.2
5+
opencv-python>=4.1.2
6+
pandas>=1.5.3
7+
psycopg2-binary>=2.9.3
8+
pymysql>=1.0.2
9+
python-dotenv>=0.20.0
10+
requests>=2.27.1
1811
scikit-learn
12+
seaborn>=0.12.2
13+
sqlalchemy>=1.4.37
14+
sympy>=1.10.1
15+
xgboost

src/explore.ipynb

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Explore here\n",
8-
"\n",
9-
"It's recommended to use this notebook for exploration purposes.\n",
10-
"\n",
11-
"For example: \n",
12-
"\n",
13-
"1. You could import the CSV generated by python into your notebook and explore it.\n",
14-
"2. You could connect to your database using `pandas.read_sql` from this notebook and explore it."
7+
"# Explore here"
158
]
169
},
1710
{
@@ -20,26 +13,7 @@
2013
"metadata": {},
2114
"outputs": [],
2215
"source": [
23-
"# Example reading the SQL database from here\n",
24-
"\n",
25-
"from utils import db_connect\n",
26-
"import pandas as pd\n",
27-
"engine = db_connect()\n",
28-
"\n",
29-
"dataframe = pd.read_sql(\"Select * from books;\", engine)\n",
30-
"print(dataframe.describe())"
31-
]
32-
},
33-
{
34-
"cell_type": "code",
35-
"execution_count": null,
36-
"metadata": {},
37-
"outputs": [],
38-
"source": [
39-
"# Example importing the CSV here\n",
40-
"\n",
41-
"# dataframe = pd.read_csv('../path/to/file.csv')\n",
42-
"# dataframe.describe()"
16+
"# Your code here"
4317
]
4418
}
4519
],

0 commit comments

Comments
 (0)