Hello community,
here is the log from the commit of package python-jupyter_ipywidgets for
openSUSE:Factory checked in at 2017-11-29 10:54:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_ipywidgets (Old)
and /work/SRC/openSUSE:Factory/.python-jupyter_ipywidgets.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter_ipywidgets"
Wed Nov 29 10:54:20 2017 rev:9 rq:546207 version:7.0.5
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jupyter_ipywidgets/python-jupyter_ipywidgets-doc.changes
2017-11-20 17:06:56.718419174 +0100
+++
/work/SRC/openSUSE:Factory/.python-jupyter_ipywidgets.new/python-jupyter_ipywidgets-doc.changes
2017-11-29 10:54:29.120676703 +0100
@@ -1,0 +2,6 @@
+Wed Nov 22 22:50:14 UTC 2017 - [email protected]
+
+- update to version 7.0.5:
+ * No changelog
+
+-------------------------------------------------------------------
python-jupyter_ipywidgets.changes: same change
Old:
----
ipywidgets-7.0.4.tar.gz
New:
----
ipywidgets-7.0.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyter_ipywidgets-doc.spec ++++++
--- /var/tmp/diff_new_pack.5ZI7vZ/_old 2017-11-29 10:54:32.916538988 +0100
+++ /var/tmp/diff_new_pack.5ZI7vZ/_new 2017-11-29 10:54:32.920538843 +0100
@@ -28,7 +28,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jupyter_ipywidgets-doc
-Version: 7.0.4
+Version: 7.0.5
Release: 0
Summary: Documentation for python-jupyter_ipywidgets
License: BSD-3-Clause
python-jupyter_ipywidgets.spec: same change
++++++ ipywidgets-7.0.4.tar.gz -> ipywidgets-7.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ipywidgets-7.0.4/PKG-INFO
new/ipywidgets-7.0.5/PKG-INFO
--- old/ipywidgets-7.0.4/PKG-INFO 2017-11-09 20:30:42.000000000 +0100
+++ new/ipywidgets-7.0.5/PKG-INFO 2017-11-17 02:38:23.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: ipywidgets
-Version: 7.0.4
+Version: 7.0.5
Summary: IPython HTML widgets for Jupyter
Home-page: http://ipython.org
Author: IPython Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ipywidgets-7.0.4/README.md
new/ipywidgets-7.0.5/README.md
--- old/ipywidgets-7.0.4/README.md 2017-10-18 23:17:31.000000000 +0200
+++ new/ipywidgets-7.0.5/README.md 2017-11-17 00:06:09.000000000 +0100
@@ -82,7 +82,9 @@
### Installing from git
-If you want to install ipywidgets from git, **you will need
[npm](https://www.npmjs.com/) version 3.x or later** (check you version by
running `npm -v` from a terminal). Installing from git is more complicated and
requires a developer install, see the [developer
install](docs/source/dev_install.md) instructions.
+If you want to install ipywidgets from git, **you will need the
+[yarn](https://yarnpkg.com/) package manager version 1.2.1 or later**.
+Installing from git is more complicated and requires a developer install, see
the [developer install](docs/source/dev_install.md) instructions.
To install the latest master version from the root directory of the source
code, run ``dev-install.sh``. To only build the Python package enter ``pip
install -e .``.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ipywidgets-7.0.4/docs/source/dev_install.md
new/ipywidgets-7.0.5/docs/source/dev_install.md
--- old/ipywidgets-7.0.4/docs/source/dev_install.md 2017-10-18
23:17:31.000000000 +0200
+++ new/ipywidgets-7.0.5/docs/source/dev_install.md 2017-11-17
00:06:09.000000000 +0100
@@ -6,11 +6,7 @@
To install ipywidgets from git, you will need:
-- [npm](https://www.npmjs.com/) **version 3.x or later**
- + Check your version by running `npm -v` from a terminal.
- + *Note: If you install using sudo, you need to make sure that npm is also
- available in the PATH used with sudo.*
-
+- [yarn](https://yarnpkg.com/) package manager ** version 1.2.1 or later **
- the latest [Jupyter notebook development
release](https://github.com/jupyter/notebook)
+ Everything in the ipywidgets repository is developed using Jupyter
@@ -37,10 +33,10 @@
To build and test changes, run the following commands in the ipywidgets
repository root directory, empty your browser's cache, and refresh the page.
- npm run clean
- npm run build
+ yarn run clean
+ yarn run build
-If your changes are confined to one package (for example, just in the
widgetsnbextension package), then it may be sufficient to just run `npm run
build` in that specific directory.
+If your changes are confined to one package (for example, just in the
widgetsnbextension package), then it may be sufficient to just run `yarn run
build` in that specific directory.
Tips and troubleshooting
------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ipywidgets-7.0.4/docs/source/dev_release.md
new/ipywidgets-7.0.5/docs/source/dev_release.md
--- old/ipywidgets-7.0.4/docs/source/dev_release.md 2017-10-18
23:17:31.000000000 +0200
+++ new/ipywidgets-7.0.5/docs/source/dev_release.md 2017-11-17
00:06:09.000000000 +0100
@@ -12,8 +12,8 @@
git pull origin master
git reset --hard origin/master
git clean -fdx
-npm install
-npm run publish
+yarn
+yarn run publish
```
Lerna will prompt you for version numbers for each of the changed npm
packages. Lerna will then change the versions appropriately (including the
interdependency versions), commit, tag, and publish the new packages to npm.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ipywidgets-7.0.4/docs/source/dev_testing.md
new/ipywidgets-7.0.5/docs/source/dev_testing.md
--- old/ipywidgets-7.0.4/docs/source/dev_testing.md 2017-10-18
23:17:31.000000000 +0200
+++ new/ipywidgets-7.0.5/docs/source/dev_testing.md 2017-11-17
00:06:09.000000000 +0100
@@ -5,8 +5,8 @@
nosetests --with-coverage --cover-package=ipywidgets ipywidgets
-To run the Javascript tests:
+To run the Javascript tests in each package directory:
- npm run test
+ yarn test
This will run the test suite using `karma` with 'debug' level logging.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' "old/ipywidgets-7.0.4/docs/source/examples/Using
Interact.ipynb" "new/ipywidgets-7.0.5/docs/source/examples/Using Interact.ipynb"
--- "old/ipywidgets-7.0.4/docs/source/examples/Using Interact.ipynb"
2017-11-09 19:43:56.000000000 +0100
+++ "new/ipywidgets-7.0.5/docs/source/examples/Using Interact.ipynb"
2017-11-16 17:23:28.000000000 +0100
@@ -898,6 +898,94 @@
"cell_type": "markdown",
"metadata": {},
"source": [
+ "### `interactive_output`\n",
+ "\n",
+ "`interactive_output` provides additional flexibility: you can control how
the UI elements are laid out.\n",
+ "\n",
+ "Unlike `interact`, `interactive`, and `interact_manual`,
`interactive_output` does not generate a user interface for the widgets. This
is powerful, because it means you can create a widget, put it in a box, and
then pass the widget to `interactive_output`, and have control over the widget
and its layout."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 29,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "e6e8696551f64c45a73ef7cb61af3c08",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/html": [
+ "<p>Failed to display Jupyter Widget of type <code>VBox</code>.</p>\n",
+ "<p>\n",
+ " If you're reading this message in Jupyter Notebook or JupyterLab, it
may mean\n",
+ " that the widgets JavaScript is still loading. If this message
persists, it\n",
+ " likely means that the widgets JavaScript library is either not
installed or\n",
+ " not enabled. See the <a
href=\"https://ipywidgets.readthedocs.io/en/stable/user_install.html\">Jupyter\n",
+ " Widgets Documentation</a> for setup instructions.\n",
+ "</p>\n",
+ "<p>\n",
+ " If you're reading this message in another notebook frontend (for
example, a static\n",
+ " rendering on GitHub or <a
href=\"https://nbviewer.jupyter.org/\">NBViewer</a>),\n",
+ " it may mean that your frontend doesn't currently support widgets.\n",
+ "</p>\n"
+ ],
+ "text/plain": [
+ "VBox(children=(HBox(children=(IntSlider(value=0), IntSlider(value=0),
IntSlider(value=0))),))"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "597c952b0a5b43248e25011e2d6bbfed",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/html": [
+ "<p>Failed to display Jupyter Widget of type
<code>Output</code>.</p>\n",
+ "<p>\n",
+ " If you're reading this message in Jupyter Notebook or JupyterLab, it
may mean\n",
+ " that the widgets JavaScript is still loading. If this message
persists, it\n",
+ " likely means that the widgets JavaScript library is either not
installed or\n",
+ " not enabled. See the <a
href=\"https://ipywidgets.readthedocs.io/en/stable/user_install.html\">Jupyter\n",
+ " Widgets Documentation</a> for setup instructions.\n",
+ "</p>\n",
+ "<p>\n",
+ " If you're reading this message in another notebook frontend (for
example, a static\n",
+ " rendering on GitHub or <a
href=\"https://nbviewer.jupyter.org/\">NBViewer</a>),\n",
+ " it may mean that your frontend doesn't currently support widgets.\n",
+ "</p>\n"
+ ],
+ "text/plain": [
+ "Output()"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "a = widgets.IntSlider()\n",
+ "b = widgets.IntSlider()\n",
+ "c = widgets.IntSlider()\n",
+ "ui = widgets.HBox([a, b, c])\n",
+ "def f(a, b, c):\n",
+ " print((a, b, c))\n",
+ "\n",
+ "out = widgets.interactive_output(f, {'a': a, 'b': b, 'c': c})\n",
+ "\n",
+ "display(ui, out)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
"## Arguments that are dependent on each other"
]
},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' "old/ipywidgets-7.0.4/docs/source/examples/Widget
Asynchronous.ipynb" "new/ipywidgets-7.0.5/docs/source/examples/Widget
Asynchronous.ipynb"
--- "old/ipywidgets-7.0.4/docs/source/examples/Widget Asynchronous.ipynb"
2017-11-09 19:43:56.000000000 +0100
+++ "new/ipywidgets-7.0.5/docs/source/examples/Widget Asynchronous.ipynb"
2017-11-16 17:23:28.000000000 +0100
@@ -282,6 +282,75 @@
},
{
"cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### Interacting with output widgets from background threads\n",
+ "\n",
+ "Output widgets capture output based on the thread in which they were
invoked.\n",
+ "In other words, in the thread where the output is invoked, there is a
context\n",
+ "manager which starts and then stops the output capturing. If you call
`display`\n",
+ "in a thread other than the thread containing the context manager, you
cannot\n",
+ "rely on those `display` calls being captured by the context manager.\n",
+ "\n",
+ "Instead, we can pass an `Output` widget to the function executing in a
thread,\n",
+ "and use the `Output`'s `append_display_data()`, `append_stdout()`, or\n",
+ "`append_stderr()` methods to append displayable output (such as from
`HTML()`),\n",
+ "standard output (such as from `print()`), or standard error to the
`Output`\n",
+ "widget."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "'Display in main thread'"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "32e8e3b06ec44fabb832283d779fda97",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ "A Jupyter Widget"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "import threading\n",
+ "from IPython.display import display, HTML\n",
+ "import ipywidgets as widgets\n",
+ "\n",
+ "def thread_func(something, out):\n",
+ " for i in range(1, 10):\n",
+ " out.append_stdout('{} {} {}'.format(i, '**'*i, something))\n",
+ " out.append_display_data(HTML(\"<h3>All done!</h3>\"))\n",
+ "\n",
+ "display('Display in main thread')\n",
+ "out = widgets.Output()\n",
+ "# Now the key: the container is displayed (while empty) in the main
thread\n",
+ "display(out)\n",
+ "\n",
+ "thread = threading.Thread(\n",
+ " target=thread_func,\n",
+ " args=(\"whatever\", out))\n",
+ "thread.start()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
"metadata": {
"nbsphinx": "hidden"
},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ipywidgets-7.0.4/ipywidgets/_version.py
new/ipywidgets-7.0.5/ipywidgets/_version.py
--- old/ipywidgets-7.0.4/ipywidgets/_version.py 2017-11-09 20:30:36.000000000
+0100
+++ new/ipywidgets-7.0.5/ipywidgets/_version.py 2017-11-17 02:38:13.000000000
+0100
@@ -1,7 +1,7 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
-version_info = (7, 0, 4, 'final', 0)
+version_info = (7, 0, 5, 'final', 0)
_specifier_ = {'alpha': 'a', 'beta': 'b', 'candidate': 'rc', 'final': ''}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ipywidgets-7.0.4/ipywidgets/widgets/widget.py
new/ipywidgets-7.0.5/ipywidgets/widgets/widget.py
--- old/ipywidgets-7.0.4/ipywidgets/widgets/widget.py 2017-11-02
04:59:36.000000000 +0100
+++ new/ipywidgets-7.0.5/ipywidgets/widgets/widget.py 2017-11-16
17:23:28.000000000 +0100
@@ -757,14 +757,14 @@
_FALLBACK_HTML_TEMPLATE = """\
<p>Failed to display Jupyter Widget of type <code>{widget_type}</code>.</p>
<p>
- If you're reading this message in Jupyter Notebook or JupyterLab, it may mean
+ If you're reading this message in the Jupyter Notebook or JupyterLab
Notebook, it may mean
that the widgets JavaScript is still loading. If this message persists, it
likely means that the widgets JavaScript library is either not installed or
not enabled. See the <a
href="https://ipywidgets.readthedocs.io/en/stable/user_install.html">Jupyter
Widgets Documentation</a> for setup instructions.
</p>
<p>
- If you're reading this message in another notebook frontend (for example, a
static
+ If you're reading this message in another frontend (for example, a static
rendering on GitHub or <a href="https://nbviewer.jupyter.org/">NBViewer</a>),
it may mean that your frontend doesn't currently support widgets.
</p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ipywidgets-7.0.4/package.json
new/ipywidgets-7.0.5/package.json
--- old/ipywidgets-7.0.4/package.json 2017-11-07 08:01:00.000000000 +0100
+++ new/ipywidgets-7.0.5/package.json 2017-11-17 00:06:09.000000000 +0100
@@ -1,7 +1,6 @@
{
"private": true,
"scripts": {
- "install": "lerna bootstrap --hoist",
"clean": "lerna run clean",
"build:examples": "lerna run build --scope \"@jupyter-widgets/example-*\"
--include-filtered-dependencies",
"build": "lerna run build --ignore \"@jupyter-widgets/example-*\"",
@@ -9,9 +8,14 @@
"update:dependency": "node scripts/update-dependency.js",
"integrity": "node scripts/package-integrity.js",
"updated": "lerna updated",
- "publish": "npm run clean && npm run build && lerna publish -m \"Publish
npm packages\""
+ "publish": "yarn run clean && yarn run build && lerna publish -m \"Publish
npm packages\""
},
"devDependencies": {
- "lerna": "^2.0.0"
- }
+ "lerna": "^2.5.0"
+ },
+ "workspaces": [
+ "packages/*",
+ "widgetsnbextension",
+ "examples/*"
+ ]
}