Skip to content

Conversation

@pbugnion
Copy link
Member

@pbugnion pbugnion commented Aug 6, 2017

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.

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.

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`:
Copy link
Member

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
Copy link
Member

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

Copy link
Member Author

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.

@jasongrout
Copy link
Member

This looks great. Several comments inline, and I think it can be merged. Thanks!

pbugnion and others added 5 commits August 8, 2017 07:27
Some of the spaces in the headings were fancy unicode characters instead of actual spaces. This lead to issues with parsing markdown.
@jasongrout
Copy link
Member

Looks good! I tweaked the wording just a bit in the changelog. Thanks again!

@jasongrout jasongrout merged commit cdb088d into jupyter-widgets:master Aug 8, 2017
@github-actions github-actions bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Feb 11, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants