Skip to content

Commit b3962a8

Browse files
committed
Remove ex ipygany that's not working anymore
1 parent 89aacca commit b3962a8

File tree

1 file changed

+2
-79
lines changed

1 file changed

+2
-79
lines changed

notebooks/06.More_widget_libraries/06.04-ipygany.ipynb

Lines changed: 2 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -144,90 +144,13 @@
144144
"* CubehelixDefault\n",
145145
"* Inferno"
146146
]
147-
},
148-
{
149-
"cell_type": "code",
150-
"execution_count": null,
151-
"id": "2e04b309",
152-
"metadata": {},
153-
"outputs": [],
154-
"source": [
155-
"colored_mesh.colormap = colormaps.Inferno"
156-
]
157-
},
158-
{
159-
"cell_type": "code",
160-
"execution_count": null,
161-
"id": "88e114a5",
162-
"metadata": {},
163-
"outputs": [],
164-
"source": [
165-
"from ipygany import TetraMesh,Threshold"
166-
]
167-
},
168-
{
169-
"cell_type": "code",
170-
"execution_count": null,
171-
"id": "4b82155b",
172-
"metadata": {},
173-
"outputs": [],
174-
"source": [
175-
"mesh2 = TetraMesh.from_vtk('piston.vtu')\n",
176-
"\n",
177-
"iso2 = IsoColor(mesh2, input=('RESU____DEPL', 'DX'), min=-1.3931281e-06, max=1.3929895e-06)\n",
178-
"\n",
179-
"scene2 = Scene([iso2])\n",
180-
"scene2"
181-
]
182-
},
183-
{
184-
"cell_type": "code",
185-
"execution_count": null,
186-
"id": "b69fe38d",
187-
"metadata": {},
188-
"outputs": [],
189-
"source": [
190-
"th = Threshold(iso2, input=('RESU____DEPL', 'DX'), min=-1.3931281e-06, max=1.0e-06)\n",
191-
"\n",
192-
"scene3 = Scene([th])\n",
193-
"\n",
194-
"scene3"
195-
]
196-
},
197-
{
198-
"cell_type": "code",
199-
"execution_count": null,
200-
"id": "0a4ab2a3",
201-
"metadata": {},
202-
"outputs": [],
203-
"source": [
204-
"th.max = 1.0e-09"
205-
]
206-
},
207-
{
208-
"cell_type": "markdown",
209-
"id": "d4805a04",
210-
"metadata": {},
211-
"source": [
212-
"# Exercise"
213-
]
214-
},
215-
{
216-
"cell_type": "markdown",
217-
"id": "530eb4ae",
218-
"metadata": {},
219-
"source": [
220-
"#### 1) Connect a slider to the `th` value.\n",
221-
"\n",
222-
"Tip: the default slider values don't offer fine enough control to change the threshold. Try to multiply the slider value by 1.0e-08 to have a better result."
223-
]
224147
}
225148
],
226149
"metadata": {
227150
"kernelspec": {
228-
"display_name": "widgets-tutorial",
151+
"display_name": "Python 3 (ipykernel)",
229152
"language": "python",
230-
"name": "widgets-tutorial"
153+
"name": "python3"
231154
},
232155
"language_info": {
233156
"codemirror_mode": {

0 commit comments

Comments
 (0)