Add has_ipynb_widgets() function.