[ANN] ipywidgets 6.0 release

138 views
Skip to first unread message

Jason Grout

unread,
Mar 1, 2017, 11:23:01 AM3/1/17
to Project Jupyter

We are pleased to announce the release of ipywidgets 6.0, Jupyter interactive widget library. Jupyter interactive widgets enable building simple GUIs in the Jupyter notebook.

See https://blog.jupyter.org/2017/03/01/ipywidgets-6-release/ for a nicely formatted version of these release notes with links.

ipywidgets 6.0 is a major release of the project. In this release, we closed 197 issues and 309 pull requests with 732 commits.

Installation
============
Using conda:

conda install ipywidgets -c conda-forge

(The OS X conda package will be available in a few hours.)

Using pip:

pip install ipywidgets
jupyter nbextension enable --py --sys-prefix widgetsnbextension

What's new in ipywidgets 6.0?
=============================

Custom widget styling
---------------------
In addition to the existing Widget.layout attribute, which enables the specification of layout-related css properties for the top-most DOM element of a widget, we added a new Widget.style attribute. This attribute enables custom styling of various widget types (such as Button.style.button_color).

The top-level styling properties that were deprecated in ipywidgets 5.0 have been removed.

Using widgets outside of the notebook
-------------------------------------
Another change in 6.0 is the ability to render Jupyter interactive widgets outside of the notebook:

* Widgets can be rendered in Sphinx documentation, either with the jupyter-sphinx extension or the nbsphinx notebook converter.
* Widgets now render on nbviewer.
* Jupyter interactive widgets can be embedded into static web sites, such as http://jupyter.org/widgets.

Custom widget libraries built upon ipywidgets 6.0 can also take advantage of these features.

This feature required the formal specification of a mime type for Jupyter interactive widgets, which is now contained in the new jupyter-widgets-schema npm package.

Redesign of the core widgets
----------------------------
The widgets provided with the base Jupyter widget libraries have gone through a major re-design.

We also migrated from the less CSS preprocessor to the use of css variables. In addition to the main benefits of adopting web standards, we take advantage of css variables defined in JupyterLab to style the interactive widgets consistent with the environment.

Migration to Typescript
-----------------------
The jupyter-js-widgets JavaScript package, which is the front-end component of ipywidgets, has been completely refactored and migrated to the Typescript programming language. We also adopted the PhosphorJS JavaScript framework, which is at the foundation of the JupyterLab project, for better layout capability and integration with JupyterLab.

Credits
=======
This release has been a team effort of a large number of contributors. We would like to thank the following 31 people who contributed, and especially the 14 people who contributed for the first time in this release.

Contributors to this release (alphabetical order):

Afshin Darian (first contribution)
Adam Chainz (first contribution)
Benjamin Ragan-Kelley
Brian Granger
Cameron Oelsen (first contribution)
Carol Willing
Dave Willmer
denfromufa
Giles Weaver (first contribution)
Gino Bustelo
Grant Nestor (first contribution)
Jason Grout
Javier Pedemonte
Jeff (first contribution)
Jeroen Demeyer
Jonathan Frederic
Justin McCandless (first contribution)
Ludwig Schmidt-Hackenberg (first contribution)
Maarten Breddels (first contribution)
Martin Renou (first contribution)
Matthew Craig
Matthias Bussonnier
Michael Pacer (first contribution)
Oliver Evans (first contribution)
Paul Ivanov
Philipp Rudiger (first contribution)
Srinivas Kumar Sunkara (first contribution)
Steven Silvester
stonebig (first contribution)
Thomas Kluyver
Sylvain Corlay
Yoshiki Vázquez Baez

Thanks,

Jason

Matt Craig

unread,
Mar 1, 2017, 6:26:21 PM3/1/17
to Project Jupyter, ja...@jasongrout.org
Excellent, congrats on the release!

Matt

Carlos Córdoba

unread,
Mar 3, 2017, 9:05:47 AM3/3/17
to jup...@googlegroups.com
Hi,

Congratulations on the release, very nice job on making ipywidgets to work on nbviewer and sphinx!!

However, I'm seeing an error when exploring some examples on the ipywidgets repo. For example:

http://nbviewer.jupyter.org/github/ipython/ipywidgets/blob/master/docs/source/examples/Factoring.ipynb

shows this error for me on Firefox and Chrome on Linux:



Cheers,
Carlos

El 01/03/17 a las 18:26, Matt Craig escribió:
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/685c473a-0a42-4df5-a8dc-40694f1fb047%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Grout

unread,
Mar 3, 2017, 10:02:58 AM3/3/17
to jup...@googlegroups.com
That version number indicates the upgrade didn't go through fully. Can you check the versions of ipywidgets and widgetsnbextension that you have installed?

Carlos Córdoba

unread,
Mar 3, 2017, 10:14:13 AM3/3/17
to jup...@googlegroups.com
I don't have ipywidgets installed locally. Is that really needed just to look at notebook in nbviewer?

El 03/03/17 a las 10:02, Jason Grout escribió:

Jason Grout

unread,
Mar 3, 2017, 10:58:14 AM3/3/17
to jup...@googlegroups.com
Oh, we're talking about nbviewer, like the exact link you're pointing out above? Okay, then that's this issue: https://github.com/ipython/ipywidgets/issues/986. Basically, the output widget isn't implemented yet for the static web page widget renderer, so interacts won't display their output. Of course, the output wouldn't update anyway from nbviewer since the widget isn't hooked up to a kernel.

It also looks like nbviewer should be upgraded to the most recent release. It looks like it's running one of the prereleases (but that won't affect this issue - the output still won't show in the released version).

It should work fine from your local install inside a real notebook, though.

Jason


Carlos Córdoba

unread,
Mar 3, 2017, 11:06:51 AM3/3/17
to jup...@googlegroups.com
Yeah, I was talking about nbviewer. Thanks for the explanation Jason.


Cheers,
Carlos

El 03/03/17 a las 10:57, Jason Grout escribió:

Jason Grout

unread,
Mar 3, 2017, 1:32:02 PM3/3/17
to jup...@googlegroups.com
As a follow-up, I see that OS X packages have now been posted to conda-forge.

Damián Avila

unread,
Mar 7, 2017, 7:49:20 PM3/7/17
to jup...@googlegroups.com
This is a huge achievement!

Congrats on the release and thanks to all who contributed.

Cheers.

To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/685c473a-0a42-4df5-a8dc-40694f1fb047%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/c587b314-a50f-bc79-586f-95f86c0fe51d%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/ff67d85c-88d9-ada9-1939-6bf07316cc45%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/edc62d31-bd76-829d-ded6-070241dc3ca7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Damián Avila
Reply all
Reply to author
Forward
0 new messages