File tree Expand file tree Collapse file tree
examples/simple-yjs-widget Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 " from ypywidgets.comm import CommWidget\n " ,
1212 " \n " ,
1313 " \n " ,
14- " class MySlider (CommWidget):\n " ,
14+ " class IntSlider (CommWidget):\n " ,
1515 " value = Reactive[int](50)\n " ,
1616 " min = Reactive[int](0)\n " ,
1717 " max = Reactive[int](100)\n " ,
3333 "metadata" : {},
3434 "outputs" : [],
3535 "source" : [
36- " w = MySlider ()\n " ,
36+ " w = IntSlider ()\n " ,
3737 " w"
3838 ]
3939 },
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
1111} from '@jupyterlab/application' ;
1212import { MapChange } from '@jupyter/ydoc' ;
1313
14- class MySlider {
14+ class IntSlider {
1515 constructor ( yModel : IJupyterYModel , node : HTMLElement ) {
1616 this . yModel = yModel ;
1717 this . node = node ;
@@ -51,7 +51,7 @@ const simple: JupyterFrontEndPlugin<void> = {
5151 autoStart : true ,
5252 requires : [ IJupyterYWidgetManager ] ,
5353 activate : ( _ : JupyterFrontEnd , wm : IJupyterYWidgetManager ) : void => {
54- wm . registerWidget ( 'MySlider ' , JupyterYModel , MySlider ) ;
54+ wm . registerWidget ( 'IntSlider ' , JupyterYModel , IntSlider ) ;
5555 }
5656} ;
5757
You can’t perform that action at this time.
0 commit comments