In [3]:
import os,sys
sys.path.insert(0, os.path.abspath('..'))
from hublib.ui import HideCodeButton, RunAllButton
In [4]:
RunAllButton()
In [5]:
RunAllButton(label="Run Cells", icon='fa-play-circle-o', style='danger', tooltip='Run All Cells')
In [6]:
HideCodeButton()
In [7]:
def mycb():
print("My Callback function was called.")
hb = HideCodeButton(style='warning', cb=mycb)
hb
In [8]:
from ipywidgets import HBox, Button
HBox([Button(description='Foo'), hb.w])