- 
                Notifications
    
You must be signed in to change notification settings  - Fork 963
 
Migration guide for custom widget libraries #1594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration guide for custom widget libraries #1594
Conversation
This guide is very much based on the migration for jupyter-gmaps. It'll be useful to migrate other widget libraries and see what's fallen through the cracks.
        
          
                docs/source/migration_guides.md
              
                Outdated
          
        
      | 
               | 
          ||
| Next, we should update the JavaScript dependencies. The most important change | ||
| for widget developers is that the JavaScript package for jupyter-widgets has | ||
| been split between `@jupyter-widgets/base` and `@jupyter-widgets/control`: | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
controls (with an s)
| `@jupyter-widgets/controls` if you think you have a dependency on it (e.g. if | ||
| you create widgets that inherit from `VBox` or `HBox` or another user-facing widget). | ||
| 
               | 
          ||
| ### Updating Webpack configuration | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One other thing is that the requirejs configuration in the classic notebook extension should no longer have a jupyter-js-widgets entry - see the change at bqplot/bqplot@7afcb19#diff-c0ff43d45628755eae045a0eec2fc1bdL21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a note for removing the entry in the requirejs config.
I have also added a reference to the PRs in bqplot that are relevant to the migration.
| 
           This looks great. Several comments inline, and I think it can be merged. Thanks!  | 
    
Some of the spaces in the headings were fancy unicode characters instead of actual spaces. This lead to issues with parsing markdown.
| 
           Looks good! I tweaked the wording just a bit in the changelog. Thanks again!  | 
    
Several developers of custom widget libraries have expressed concerns about the migration to jupyter-widgets 7. This aims to provide a step-by-step guide to the migration for custom widget developers.
At the moment, this is strongly based on the migration for
jupyter-gmaps, but I want to try and migrate other libraries to validate it (and figure out what's missing).I included this as a new top-level entry in the user guide, but this could also go somewhere else if more appropriate.