Skip to content
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

Update custom widgets example #11

Open
rossant opened this issue Oct 5, 2014 · 4 comments
Open

Update custom widgets example #11

rossant opened this issue Oct 5, 2014 · 4 comments
Assignees
Labels

Comments

@rossant
Copy link
Contributor

rossant commented Oct 5, 2014

May need to tweak a few examples with custom widgets in the notebook to make them work with IPython 2.x (see this issue in IPython).

@rossant rossant added the erratum label Oct 5, 2014
@rossant
Copy link
Contributor Author

rossant commented Oct 12, 2014

Apparently, to work with IPython 2.x, widget.DOMWidgetView needs to be replaced by IPython.DOMWidgetView, and manager.WidgetManager needs to be replaced by IPython.WidgetManager.

@YouGovGit
Copy link

HI, I'm not having any luck getting this to run (using the code I downloaded from the book reference). I'm getting a wrappedError. I think it has something to do with the issue you mention here as this problem sees similar https://gitter.im/ipython/ipython/help/archives/2015/06/02

@YouGovGit
Copy link

I think something may have got lost in the update of the code in the book and download. I know you mention it above, but just to be clear, the line:
WidgetManager.register_widget_view should read:
IPython.WidgetManager.register_widget_view

Otherwise all good. (your book is a revelation so far - well worth the money)

@rossant
Copy link
Contributor Author

rossant commented Jul 21, 2015

Thanks for the tip! The book's code deserves an update with Jupyter 4.0, especially the widget part. I'm currently busy with the minibook's new edition, so maybe afterwards...!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants