lazy load widgets

Allow warnign to appear in notebook at the time widets get imported
fix test
Merge pull request #7120 from Carreau/fix-widget-load

lazy load widgets