Add sphinx compatibility with ipywidgets
Add compatibility of sphinx conversion with ipywidgets. Note, the sphinx version dependency is now >=1.8
.
Additionally, the code base has been formatted by black, and some minor bugs/warnings have been fixed.