Skip to content

Commit 1856342

Browse files
committed
Fix deprecated use
1 parent 7c642f0 commit 1856342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/superellipsoid.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@
114114
"outputs": [],
115115
"source": [
116116
"from pythreejs import *\n",
117-
"from ipydatawidgets import ConstrainedNDArrayWidget\n",
117+
"from ipydatawidgets import create_constrained_arraywidget \n",
118118
"from IPython.display import display\n",
119119
"\n",
120120
"view_width = 600\n",
121121
"view_height = 400\n",
122122
"\n",
123-
"coordinate_widget = ConstrainedNDArrayWidget(dtype='float32')(array=coords)\n",
123+
"coordinate_widget = create_constrained_arraywidget(dtype='float32')(array=coords)\n",
124124
"\n",
125125
"surf_g = BufferGeometry(attributes=dict(\n",
126126
" position=BufferAttribute(coordinate_widget),\n",

0 commit comments

Comments
 (0)