Skip to content

Commit 3781d4c

Browse files
committed
some tnning and cleanup for 1. and 3. scenario
1 parent 9a4b8bf commit 3781d4c

File tree

8 files changed

+645
-245
lines changed

8 files changed

+645
-245
lines changed

examples/01_users.ipynb

Lines changed: 388 additions & 77 deletions
Large diffs are not rendered by default.

examples/01_users_assets/users.csv

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
username,email
2-
agreen,agreen@example.com
3-
bsmith,bsmith@example.com
4-
cjones,cjones@example.com
5-
dwilliams,dwilliams@example.com
6-
ebrown,ebrown@example.com
7-
fdavis,fdavis@example.com
8-
gmiller,gmiller@example.com
9-
hwilson,hwilson@example.com
10-
imoore,imoore@example.com
11-
jtaylor,jtaylor@example.com
12-
kanderson,kanderson@example.com
13-
lthomas,lthomas@example.com
14-
mjackson,mjackson@example.com
15-
nwhite,nwhite@example.com
16-
oharris,oharris@example.com
17-
pmartin,pmartin@example.com
18-
qthompson,qthompson@example.com
19-
rgarcia,rgarcia@example.com
20-
smartinez,smartinez@example.com
21-
trobinson,trobinson@example.com
2+
jdoe,jdoe@example.com
3+
asmith,asmith@example.com
4+
bwilliams,bwilliams@example.com
5+
cjohnson,cjohnson@example.com
6+
omartin,omartin@example.com

examples/02_sync.ipynb

Lines changed: 14 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@
3131
"cell_type": "code",
3232
"execution_count": null,
3333
"id": "33ac4583",
34-
"metadata": {
35-
"vscode": {
36-
"languageId": "markdown"
37-
}
38-
},
34+
"metadata": {},
3935
"outputs": [],
4036
"source": [
4137
"!pip install mergin-client"
@@ -53,11 +49,7 @@
5349
"cell_type": "code",
5450
"execution_count": null,
5551
"id": "1bd4f48d",
56-
"metadata": {
57-
"vscode": {
58-
"languageId": "markdown"
59-
}
60-
},
52+
"metadata": {},
6153
"outputs": [],
6254
"source": [
6355
"LOGIN=\"...\"\n",
@@ -76,11 +68,7 @@
7668
"cell_type": "code",
7769
"execution_count": null,
7870
"id": "c332f11f",
79-
"metadata": {
80-
"vscode": {
81-
"languageId": "markdown"
82-
}
83-
},
71+
"metadata": {},
8472
"outputs": [],
8573
"source": [
8674
"import mergin\n",
@@ -96,18 +84,14 @@
9684
"id": "3b3b55cd",
9785
"metadata": {},
9886
"source": [
99-
"Now you can use the client to call the API. Let's try to clone the project available for this example (`lutraconsulting/Vienna trees project`) to your Mergin Maps project. You need to specify to which project our sample project will be cloned to (edit the `PROJECT` variable in the form `{WORKSPACE NAME}/{PROJECT NAME}` in Mergin Maps cloud)."
87+
"Now you can use the client to call the API. Let's try to clone the project available for this example (`lutraconsulting/Vienna trees example`) to your Mergin Maps project. You need to specify to which project our sample project will be cloned to (edit the `PROJECT` variable in the form `{WORKSPACE NAME}/{PROJECT NAME}` in Mergin Maps cloud)."
10088
]
10189
},
10290
{
10391
"cell_type": "code",
10492
"execution_count": null,
10593
"id": "70f17d60",
106-
"metadata": {
107-
"vscode": {
108-
"languageId": "markdown"
109-
}
110-
},
94+
"metadata": {},
11195
"outputs": [],
11296
"source": [
11397
"PROJECT=\".../...\"\n",
@@ -127,11 +111,7 @@
127111
"cell_type": "code",
128112
"execution_count": null,
129113
"id": "08fc0642",
130-
"metadata": {
131-
"vscode": {
132-
"languageId": "markdown"
133-
}
134-
},
114+
"metadata": {},
135115
"outputs": [],
136116
"source": [
137117
"# download project to local folder.\n",
@@ -152,11 +132,7 @@
152132
"cell_type": "code",
153133
"execution_count": null,
154134
"id": "23469139",
155-
"metadata": {
156-
"vscode": {
157-
"languageId": "markdown"
158-
}
159-
},
135+
"metadata": {},
160136
"outputs": [],
161137
"source": [
162138
"# Install geopandas to export csv to geopackage\n",
@@ -167,11 +143,7 @@
167143
"cell_type": "code",
168144
"execution_count": null,
169145
"id": "f3002ce3",
170-
"metadata": {
171-
"vscode": {
172-
"languageId": "markdown"
173-
}
174-
},
146+
"metadata": {},
175147
"outputs": [],
176148
"source": [
177149
"import pandas as pd\n",
@@ -201,13 +173,9 @@
201173
},
202174
{
203175
"cell_type": "code",
204-
"execution_count": 83,
176+
"execution_count": null,
205177
"id": "d1a67839",
206-
"metadata": {
207-
"vscode": {
208-
"languageId": "markdown"
209-
}
210-
},
178+
"metadata": {},
211179
"outputs": [
212180
{
213181
"name": "stdout",
@@ -232,13 +200,9 @@
232200
},
233201
{
234202
"cell_type": "code",
235-
"execution_count": 98,
203+
"execution_count": null,
236204
"id": "1a167b17",
237-
"metadata": {
238-
"vscode": {
239-
"languageId": "markdown"
240-
}
241-
},
205+
"metadata": {},
242206
"outputs": [],
243207
"source": [
244208
"client.push_project(LOCAL_FOLDER)"
@@ -254,13 +218,9 @@
254218
},
255219
{
256220
"cell_type": "code",
257-
"execution_count": 99,
221+
"execution_count": null,
258222
"id": "90e5e64a",
259-
"metadata": {
260-
"vscode": {
261-
"languageId": "markdown"
262-
}
263-
},
223+
"metadata": {},
264224
"outputs": [],
265225
"source": [
266226
"client.pull_project(LOCAL_FOLDER)"

0 commit comments

Comments
 (0)