-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
previously was a plain require, which doesn't actually register anything.
- Loading branch information
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,10 +51,8 @@ require([ | |
"use strict"; | ||
|
||
// BEGIN HARDCODED WIDGETS HACK | ||
// Don't include in above require call, avoiding r.js | ||
// and crash on import failure. | ||
require(['nbextensions/widgets/notebook/js/extension'], function(){}, function(err) { | ||
console.error('ipywidgets package not installed. Widgets are not available.'); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
takluyver
Member
|
||
utils.load_extension('widgets/notebook/js/extension').catch(function () { | ||
console.warn('ipywidgets package not installed. Widgets are not available.'); | ||
}); | ||
// END HARDCODED WIDGETS HACK | ||
|
||
|
@minrk I don't understand why this didn't work,
utils.load_extension
calls require internally. Is it just the not needednbextensions/
prefix?