Skip to content

Commit aba1ab5

Browse files
committed
clean starting point
1 parent 88e2a11 commit aba1ab5

File tree

4 files changed

+48
-186
lines changed

4 files changed

+48
-186
lines changed

content/compas-getting-started.ipynb

Lines changed: 14 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -30,58 +30,15 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": 8,
33+
"execution_count": null,
3434
"metadata": {
3535
"trusted": true
3636
},
37-
"outputs": [
38-
{
39-
"name": "stdout",
40-
"output_type": "stream",
41-
"text": [
42-
"Requirement already satisfied: jsonschema in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (4.22.0)\n",
43-
"Requirement already satisfied: networkx in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (3.3)\n",
44-
"Requirement already satisfied: numpy in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (1.26.4)\n",
45-
"Requirement already satisfied: scipy in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (1.14.0)\n",
46-
"Requirement already satisfied: pythreejs in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (2.4.2)\n",
47-
"Requirement already satisfied: attrs>=22.2.0 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from jsonschema) (23.2.0)\n",
48-
"Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from jsonschema) (2023.12.1)\n",
49-
"Requirement already satisfied: referencing>=0.28.4 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from jsonschema) (0.35.1)\n",
50-
"Requirement already satisfied: rpds-py>=0.7.1 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from jsonschema) (0.18.1)\n",
51-
"Requirement already satisfied: ipywidgets>=7.2.1 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from pythreejs) (8.1.2)\n",
52-
"Requirement already satisfied: ipydatawidgets>=1.1.1 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from pythreejs) (4.3.5)\n",
53-
"Requirement already satisfied: traitlets in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from pythreejs) (5.14.2)\n",
54-
"Requirement already satisfied: traittypes>=0.2.0 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipydatawidgets>=1.1.1->pythreejs) (0.2.1)\n",
55-
"Requirement already satisfied: comm>=0.1.3 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipywidgets>=7.2.1->pythreejs) (0.2.2)\n",
56-
"Requirement already satisfied: ipython>=6.1.0 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipywidgets>=7.2.1->pythreejs) (8.18.0)\n",
57-
"Requirement already satisfied: widgetsnbextension~=4.0.10 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipywidgets>=7.2.1->pythreejs) (4.0.10)\n",
58-
"Requirement already satisfied: jupyterlab-widgets~=3.0.10 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipywidgets>=7.2.1->pythreejs) (3.0.10)\n",
59-
"Requirement already satisfied: decorator in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (5.1.1)\n",
60-
"Requirement already satisfied: jedi>=0.16 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (0.19.1)\n",
61-
"Requirement already satisfied: matplotlib-inline in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (0.1.7)\n",
62-
"Requirement already satisfied: prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (3.0.36)\n",
63-
"Requirement already satisfied: pygments>=2.4.0 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (2.17.2)\n",
64-
"Requirement already satisfied: stack-data in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (0.6.3)\n",
65-
"Requirement already satisfied: pexpect>4.3 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (4.9.0)\n",
66-
"Requirement already satisfied: parso<0.9.0,>=0.8.3 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from jedi>=0.16->ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (0.8.4)\n",
67-
"Requirement already satisfied: ptyprocess>=0.5 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from pexpect>4.3->ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (0.7.0)\n",
68-
"Requirement already satisfied: wcwidth in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30->ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (0.2.13)\n",
69-
"Requirement already satisfied: executing>=1.2.0 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from stack-data->ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (2.0.1)\n",
70-
"Requirement already satisfied: asttokens>=2.1.0 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from stack-data->ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (2.4.1)\n",
71-
"Requirement already satisfied: pure-eval in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from stack-data->ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (0.2.2)\n",
72-
"Requirement already satisfied: six>=1.12.0 in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (from asttokens>=2.1.0->stack-data->ipython>=6.1.0->ipywidgets>=7.2.1->pythreejs) (1.16.0)\n",
73-
"Note: you may need to restart the kernel to use updated packages.\n",
74-
"zsh:1: 2.0.0b4 not found\n",
75-
"Note: you may need to restart the kernel to use updated packages.\n",
76-
"Requirement already satisfied: compas_notebook in /Users/vanmelet/opt/miniconda3/envs/compas2/lib/python3.12/site-packages (0.5.0)\n",
77-
"Note: you may need to restart the kernel to use updated packages.\n"
78-
]
79-
}
80-
],
37+
"outputs": [],
8138
"source": [
82-
"%pip install jsonschema networkx numpy scipy pythreejs\n",
83-
"%pip install compas>=2.4 --no-deps\n",
84-
"%pip install compas_notebook>=0.8 --no-deps"
39+
"%pip install -q scipy pythreejs\n",
40+
"%pip install -q compas --no-deps\n",
41+
"%pip install -q compas_notebook --no-deps"
8542
]
8643
},
8744
{
@@ -93,22 +50,11 @@
9350
},
9451
{
9552
"cell_type": "code",
96-
"execution_count": 9,
53+
"execution_count": null,
9754
"metadata": {
9855
"trusted": true
9956
},
100-
"outputs": [
101-
{
102-
"data": {
103-
"text/plain": [
104-
"'2.4.1-975dc973'"
105-
]
106-
},
107-
"execution_count": 9,
108-
"metadata": {},
109-
"output_type": "execute_result"
110-
}
111-
],
57+
"outputs": [],
11258
"source": [
11359
"import compas\n",
11460
"compas.__version__"
@@ -137,7 +83,7 @@
13783
},
13884
{
13985
"cell_type": "code",
140-
"execution_count": 10,
86+
"execution_count": null,
14187
"metadata": {
14288
"trusted": true
14389
},
@@ -155,7 +101,7 @@
155101
},
156102
{
157103
"cell_type": "code",
158-
"execution_count": 11,
104+
"execution_count": null,
159105
"metadata": {
160106
"trusted": true
161107
},
@@ -175,35 +121,11 @@
175121
},
176122
{
177123
"cell_type": "code",
178-
"execution_count": 12,
179-
"metadata": {},
180-
"outputs": [
181-
{
182-
"name": "stdout",
183-
"output_type": "stream",
184-
"text": [
185-
"<Mesh with 386 vertices, 384 faces, 768 edges>\n"
186-
]
187-
}
188-
],
189-
"source": [
190-
"print(ball)"
191-
]
192-
},
193-
{
194-
"cell_type": "markdown",
195-
"metadata": {},
196-
"source": [
197-
"Convert the ball to an OBJ file."
198-
]
199-
},
200-
{
201-
"cell_type": "code",
202-
"execution_count": 13,
124+
"execution_count": null,
203125
"metadata": {},
204126
"outputs": [],
205127
"source": [
206-
"ball.to_obj('ball.obj')"
128+
"print(ball)"
207129
]
208130
},
209131
{
@@ -222,24 +144,9 @@
222144
},
223145
{
224146
"cell_type": "code",
225-
"execution_count": 14,
147+
"execution_count": null,
226148
"metadata": {},
227-
"outputs": [
228-
{
229-
"data": {
230-
"application/vnd.jupyter.widget-view+json": {
231-
"model_id": "b97db715db6c4771a7474078f9797e44",
232-
"version_major": 2,
233-
"version_minor": 0
234-
},
235-
"text/plain": [
236-
"VBox(children=(HBox(children=(Button(icon='search-plus', layout=Layout(height='32px', width='48px'), style=But…"
237-
]
238-
},
239-
"metadata": {},
240-
"output_type": "display_data"
241-
}
242-
],
149+
"outputs": [],
243150
"source": [
244151
"from compas_notebook.viewer import Viewer\n",
245152
"from compas_notebook.config import Config\n",
@@ -270,7 +177,7 @@
270177
"name": "python",
271178
"nbconvert_exporter": "python",
272179
"pygments_lexer": "ipython3",
273-
"version": "3.12.1"
180+
"version": "3.12.9"
274181
}
275182
},
276183
"nbformat": 4,

content/obb.ipynb

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
},
99
"outputs": [],
1010
"source": [
11-
"%pip install scipy pythreejs\n",
12-
"%pip install compas --no-deps\n",
13-
"%pip install compas_notebook --no-deps"
11+
"%pip install -q scipy pythreejs\n",
12+
"%pip install -q compas --no-deps\n",
13+
"%pip install -q compas_notebook --no-deps"
1414
]
1515
},
1616
{
1717
"cell_type": "code",
18-
"execution_count": 16,
18+
"execution_count": null,
1919
"metadata": {
2020
"trusted": true
2121
},
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 24,
29+
"execution_count": null,
3030
"metadata": {
3131
"trusted": true
3232
},
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"cell_type": "code",
44-
"execution_count": 41,
44+
"execution_count": null,
4545
"metadata": {
4646
"trusted": true
4747
},
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "code",
56-
"execution_count": 42,
56+
"execution_count": null,
5757
"metadata": {
5858
"trusted": true
5959
},
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 55,
67+
"execution_count": null,
6868
"metadata": {
6969
"trusted": true
7070
},
@@ -76,7 +76,7 @@
7676
},
7777
{
7878
"cell_type": "code",
79-
"execution_count": 56,
79+
"execution_count": null,
8080
"metadata": {
8181
"trusted": true
8282
},
@@ -87,26 +87,11 @@
8787
},
8888
{
8989
"cell_type": "code",
90-
"execution_count": 57,
90+
"execution_count": null,
9191
"metadata": {
9292
"trusted": true
9393
},
94-
"outputs": [
95-
{
96-
"data": {
97-
"application/vnd.jupyter.widget-view+json": {
98-
"model_id": "5b260ba040fb4e608bde32b548e79a41",
99-
"version_major": 2,
100-
"version_minor": 0
101-
},
102-
"text/plain": [
103-
"VBox(children=(HBox(children=(Button(icon='search-plus', layout=Layout(height='32px', width='48px'), style=But…"
104-
]
105-
},
106-
"metadata": {},
107-
"output_type": "display_data"
108-
}
109-
],
94+
"outputs": [],
11095
"source": [
11196
"viewer = Viewer()\n",
11297
"viewer.scene.add(cloud, pointsize=0.3)\n",

content/point-in-box.ipynb

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"metadata": {
77
"trusted": true
88
},
99
"outputs": [],
1010
"source": [
11-
"%pip install scipy pythreejs\n",
12-
"%pip install compas --no-deps\n",
13-
"%pip install compas_notebook --no-deps"
11+
"%pip install -q scipy pythreejs\n",
12+
"%pip install -q compas --no-deps\n",
13+
"%pip install -q compas_notebook --no-deps"
1414
]
1515
},
1616
{
1717
"cell_type": "code",
18-
"execution_count": 2,
18+
"execution_count": null,
1919
"metadata": {
2020
"trusted": true
2121
},
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 3,
29+
"execution_count": null,
3030
"metadata": {
3131
"trusted": true
3232
},
@@ -42,7 +42,7 @@
4242
},
4343
{
4444
"cell_type": "code",
45-
"execution_count": 4,
45+
"execution_count": null,
4646
"metadata": {
4747
"trusted": true
4848
},
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "code",
56-
"execution_count": 5,
56+
"execution_count": null,
5757
"metadata": {
5858
"trusted": true
5959
},
@@ -66,7 +66,7 @@
6666
},
6767
{
6868
"cell_type": "code",
69-
"execution_count": 6,
69+
"execution_count": null,
7070
"metadata": {
7171
"trusted": true
7272
},
@@ -80,26 +80,11 @@
8080
},
8181
{
8282
"cell_type": "code",
83-
"execution_count": 7,
83+
"execution_count": null,
8484
"metadata": {
8585
"trusted": true
8686
},
87-
"outputs": [
88-
{
89-
"data": {
90-
"application/vnd.jupyter.widget-view+json": {
91-
"model_id": "a782d104dafa4283b5d4683af92dfade",
92-
"version_major": 2,
93-
"version_minor": 0
94-
},
95-
"text/plain": [
96-
"VBox(children=(HBox(children=(Button(icon='search-plus', layout=Layout(height='32px', width='48px'), style=But…"
97-
]
98-
},
99-
"metadata": {},
100-
"output_type": "display_data"
101-
}
102-
],
87+
"outputs": [],
10388
"source": [
10489
"viewer = Viewer()\n",
10590
"viewer.scene.add(box.to_mesh(), show_faces=False, show_lines=True, linewidth=5)\n",

0 commit comments

Comments
 (0)