Skip to content

Commit

Permalink
Merge pull request #378 from vidartf/ipyw8
Browse files Browse the repository at this point in the history
Ipywidgets 8 support
  • Loading branch information
vidartf authored Aug 12, 2022
2 parents 60db030 + a7f9cca commit 2d18cd4
Show file tree
Hide file tree
Showing 70 changed files with 1,766 additions and 1,648 deletions.
728 changes: 347 additions & 381 deletions examples/Animation.ipynb

Large diffs are not rendered by default.

348 changes: 198 additions & 150 deletions examples/Geometries.ipynb

Large diffs are not rendered by default.

182 changes: 104 additions & 78 deletions examples/Renderer.ipynb

Large diffs are not rendered by default.

37 changes: 24 additions & 13 deletions examples/Textures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@
"version_minor": 0
},
"text/plain": [
"Preview(child=ImageTexture(imageUri='img/checkerboard.png', offset=(0.0, 0.0), repeat=(1.0, 1.0), version=1), …"
"ImageTexture(imageUri='img/checkerboard.png', offset=(0.0, 0.0), repeat=(1.0, 1.0), version=1)"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "display_data"
"output_type": "execute_result"
}
],
"source": [
Expand All @@ -84,11 +85,12 @@
"version_minor": 0
},
"text/plain": [
"Preview(child=ImageTexture(imageUri='img/earth.jpg', offset=(0.0, 0.0), repeat=(1.0, 1.0), version=1), shadowM…"
"ImageTexture(imageUri='img/earth.jpg', offset=(0.0, 0.0), repeat=(1.0, 1.0), version=1)"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "display_data"
"output_type": "execute_result"
}
],
"source": [
Expand Down Expand Up @@ -154,14 +156,16 @@
"version_minor": 0
},
"text/plain": [
"Preview(child=DataTexture(data=array([[[0., 0., 0.],\n",
"DataTexture(data=array([[[0., 0., 0.],\n",
" [0., 0., 0.],\n",
" [0., 0., 0.],\n",
" [0., …"
" [0., 0., 0.],\n",
""
]
},
"execution_count": 7,
"metadata": {},
"output_type": "display_data"
"output_type": "execute_result"
}
],
"source": [
Expand All @@ -176,12 +180,19 @@
"source": [
"data_tex.data = gen_checkers(arr_w, arr_h, 8, 2)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -195,7 +206,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.6"
"version": "3.9.7"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down Expand Up @@ -236,7 +247,7 @@
},
"pythree_example_model_004": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
Expand All @@ -263,7 +274,7 @@
},
"pythree_example_model_007": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
Expand Down Expand Up @@ -320,7 +331,7 @@
},
"pythree_example_model_011": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
Expand All @@ -340,5 +351,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
Loading

0 comments on commit 2d18cd4

Please sign in to comment.