Skip to content

Commit f6ef08e

Browse files
authored
Merge pull request #202 from marimeireles/fix-ipygany-and-outline
Fix ipygany and outline
2 parents 2f2280a + 31b04bd commit f6ef08e

File tree

4 files changed

+6
-83
lines changed

4 files changed

+6
-83
lines changed

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818
- jupyterlab=3.4
1919
- mpl-interactions=0.22.0
2020
- numpy
21-
- orjson=3.7.7 # Added 2022 for one of the ipygany examples
21+
- orjson=3.7.7 # Added 2022 for one of the ipycanvas examples
2222
- pandas
2323
- pip
2424
- python=3.9

install_check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'voila',
2424
'pyvista',
2525
'mpl_interactions',
26-
'orjson', # For one of the example in ipygany
26+
'orjson', # For one of the example in ipycanvas
2727
]
2828

2929
import_result = {p: False for p in requirements}

notebooks/06.More_widget_libraries/06.04-ipygany.ipynb

+2-79
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": {

outline.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
5. Start 2:10 More about how to build complex libraries (Itay)
2121
- Considerations when designing more complex widget applications (15 min)
2222
6. Start 2:25 More widget libraries (Mariana, Itay)
23-
- High level presentation of multiple interactive widgets libraries (ipcanvas, ipycytoscape, ipydatagrid, ipygany, astrowidgets etc) (55 min)
23+
- High level presentation of multiple interactive widgets libraries (ipcanvas, ipycytoscape, ipydatagrid, ipygany, etc) (50 min)
2424
- Break (10 min)
2525
7. Start 3:30 Widgets outside the context of the notebook (Mariana)
26-
- Voila, jupyterlite (10 min)
26+
- Voila, jupyterlite (15 min)
2727
8. Start 3:40 ipywidgets 8 (Itay)
2828
- New features (5 min)
2929
- Highlights of transition (5 min)

0 commit comments

Comments
 (0)