Hello community,
here is the log from the commit of package python-nbclient for openSUSE:Factory
checked in at 2020-11-29 12:30:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbclient (Old)
and /work/SRC/openSUSE:Factory/.python-nbclient.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nbclient"
Sun Nov 29 12:30:30 2020 rev:6 rq:851357 version:0.5.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbclient/python-nbclient.changes
2020-10-06 17:16:23.225799497 +0200
+++
/work/SRC/openSUSE:Factory/.python-nbclient.new.5913/python-nbclient.changes
2020-11-29 12:30:47.574145678 +0100
@@ -1,0 +2,7 @@
+Thu Nov 26 17:49:54 UTC 2020 - Arun Persaud <[email protected]>
+
+- update to version 0.5.1:
+ * Update kernel client class JIT if it's the synchronous version
+ * Several documentation fixes / improvements
+
+-------------------------------------------------------------------
Old:
----
nbclient-0.5.0.tar.gz
New:
----
nbclient-0.5.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nbclient.spec ++++++
--- /var/tmp/diff_new_pack.GBJ6TO/_old 2020-11-29 12:30:48.242146354 +0100
+++ /var/tmp/diff_new_pack.GBJ6TO/_new 2020-11-29 12:30:48.246146357 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-nbclient
-Version: 0.5.0
+Version: 0.5.1
Release: 0
Summary: A client library for executing notebooks
License: BSD-3-Clause
++++++ nbclient-0.5.0.tar.gz -> nbclient-0.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/.bumpversion.cfg
new/nbclient-0.5.1/.bumpversion.cfg
--- old/nbclient-0.5.0/.bumpversion.cfg 2020-08-27 17:44:23.000000000 +0200
+++ new/nbclient-0.5.1/.bumpversion.cfg 2020-10-15 19:12:18.000000000 +0200
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 0.5.0
+current_version = 0.5.1
commit = True
tag = True
tag_name = {new_version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/CHANGELOG.md
new/nbclient-0.5.1/CHANGELOG.md
--- old/nbclient-0.5.0/CHANGELOG.md 2020-05-25 19:04:46.000000000 +0200
+++ new/nbclient-0.5.1/CHANGELOG.md 2020-09-11 23:53:48.000000000 +0200
@@ -1,3 +1,3 @@
# Change Log
-See the [nbclient
documentation](https://nbclient.readthedocs.io/changelog.html)
\ No newline at end of file
+See the Change Log in the [nbclient
documentation](https://nbclient.readthedocs.io/en/latest/changelog.html).
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/PKG-INFO new/nbclient-0.5.1/PKG-INFO
--- old/nbclient-0.5.0/PKG-INFO 2020-08-27 17:44:43.555480700 +0200
+++ new/nbclient-0.5.1/PKG-INFO 2020-10-15 19:12:28.064823000 +0200
@@ -1,7 +1,7 @@
Metadata-Version: 2.1
Name: nbclient
-Version: 0.5.0
-Summary: A client library for executing notebooks. Formally nbconvert's
ExecutePreprocessor.
+Version: 0.5.1
+Summary: A client library for executing notebooks. Formerly nbconvert's
ExecutePreprocessor.
Home-page: https://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
@@ -22,30 +22,50 @@
# nbclient
- A client library for executing notebooks. Formerly nbconvert's
ExecutePreprocessor.
+ **NBClient**, a client library for programmatic notebook execution, is
a tool for running Jupyter Notebooks in
+ different execution contexts. NBClient was spun out of
[nbconvert](https://nbconvert.readthedocs.io/en/latest/)'s
+ former `ExecutePreprocessor`.
- **NBClient** is a tool for executing Jupyter Notebooks.
+ **NBClient** lets you **execute** notebooks.
- NBClient lets you:
+ ## Interactive Demo
- - **execute** notebooks
+ To demo **NBClient** interactively, click this Binder badge to start
the demo:
- Similar in nature to jupyter_client, as the jupyter_client is to the
jupyter
- protocol nbclient is to notebooks allowing for execution contexts to
be run.
+
[](https://mybinder.org/v2/gh/jupyter/nbclient/master?filepath=binder%2Frun_nbclient.ipynb)
- ## Origins
+ ## Installation
+
+ In a terminal, run:
+
+ python3 -m pip install nbclient
+
+ ## Documentation
+
+ See [ReadTheDocs](https://nbclient.readthedocs.io/en/latest/) for more
in-depth details about the project and the
+ [API
Reference](https://nbclient.readthedocs.io/en/latest/reference/index.html).
- This library used to be part of
[nbconvert](https://nbconvert.readthedocs.io/en/latest/) and was extracted into
its own library for easier updating and importing by downstream libraries and
applications.
## Python Version Support
- This library currently supports python 3.6+ versions. As minor python
- versions are officially sunset by the python org nbclient will
similarly
+ This library currently supports Python 3.6+ versions. As minor Python
+ versions are officially sunset by the Python org, nbclient will
similarly
drop support in the future.
- ## Documentation
+ ## Origins
- See [readthedocs](https://nbclient.readthedocs.io/en/latest/) for more
in-depth details about the project and API capabilities.
+ This library used to be part of the
[nbconvert](https://nbconvert.readthedocs.io/en/latest/) project. NBClient
+ extracted nbconvert's `ExecutePreprocessor`into its own library for
easier updating and importing by
+ downstream libraries and applications.
+
+ ## Relationship to JupyterClient
+
+ NBClient and JupyterClient are distinct projects.
+
+ `jupyter_client` is a client library for the jupyter protocol.
Specifically, `jupyter_client` provides the Python API
+ for starting, managing and communicating with Jupyter kernels.
+
+ While, nbclient allows notebooks to be run in different execution
contexts.
Keywords: jupyter,pipeline,notebook,executor
Platform: Linux
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/README.md new/nbclient-0.5.1/README.md
--- old/nbclient-0.5.0/README.md 2020-06-04 18:39:03.000000000 +0200
+++ new/nbclient-0.5.1/README.md 2020-09-11 23:53:48.000000000 +0200
@@ -10,27 +10,47 @@
# nbclient
-A client library for executing notebooks. Formerly nbconvert's
ExecutePreprocessor.
+**NBClient**, a client library for programmatic notebook execution, is a tool
for running Jupyter Notebooks in
+different execution contexts. NBClient was spun out of
[nbconvert](https://nbconvert.readthedocs.io/en/latest/)'s
+former `ExecutePreprocessor`.
-**NBClient** is a tool for executing Jupyter Notebooks.
+**NBClient** lets you **execute** notebooks.
-NBClient lets you:
+## Interactive Demo
-- **execute** notebooks
+To demo **NBClient** interactively, click this Binder badge to start the demo:
-Similar in nature to jupyter_client, as the jupyter_client is to the jupyter
-protocol nbclient is to notebooks allowing for execution contexts to be run.
+[](https://mybinder.org/v2/gh/jupyter/nbclient/master?filepath=binder%2Frun_nbclient.ipynb)
-## Origins
+## Installation
+
+In a terminal, run:
+
+ python3 -m pip install nbclient
+
+## Documentation
+
+See [ReadTheDocs](https://nbclient.readthedocs.io/en/latest/) for more
in-depth details about the project and the
+[API
Reference](https://nbclient.readthedocs.io/en/latest/reference/index.html).
-This library used to be part of
[nbconvert](https://nbconvert.readthedocs.io/en/latest/) and was extracted into
its own library for easier updating and importing by downstream libraries and
applications.
## Python Version Support
-This library currently supports python 3.6+ versions. As minor python
-versions are officially sunset by the python org nbclient will similarly
+This library currently supports Python 3.6+ versions. As minor Python
+versions are officially sunset by the Python org, nbclient will similarly
drop support in the future.
-## Documentation
+## Origins
-See [readthedocs](https://nbclient.readthedocs.io/en/latest/) for more
in-depth details about the project and API capabilities.
+This library used to be part of the
[nbconvert](https://nbconvert.readthedocs.io/en/latest/) project. NBClient
+extracted nbconvert's `ExecutePreprocessor`into its own library for easier
updating and importing by
+downstream libraries and applications.
+
+## Relationship to JupyterClient
+
+NBClient and JupyterClient are distinct projects.
+
+`jupyter_client` is a client library for the jupyter protocol. Specifically,
`jupyter_client` provides the Python API
+for starting, managing and communicating with Jupyter kernels.
+
+While, nbclient allows notebooks to be run in different execution contexts.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/RELEASING.md
new/nbclient-0.5.1/RELEASING.md
--- old/nbclient-0.5.0/RELEASING.md 2020-05-27 22:03:54.000000000 +0200
+++ new/nbclient-0.5.1/RELEASING.md 2020-10-15 19:11:00.000000000 +0200
@@ -2,7 +2,7 @@
## Prerequisites
-- First check that the CHANGELOG is up to date for the next release version
+- First check that the CHANGELOG (see `docs/changelog.md`) is up to date for
the next release version
- Ensure dev requirements are installed `pip install -r requirements-dev.txt`
## Push to GitHub
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/docs/changelog.md
new/nbclient-0.5.1/docs/changelog.md
--- old/nbclient-0.5.0/docs/changelog.md 2020-08-27 17:43:50.000000000
+0200
+++ new/nbclient-0.5.1/docs/changelog.md 2020-10-15 19:11:27.000000000
+0200
@@ -1,5 +1,10 @@
# Changelog
+## 0.5.1
+
+- Update kernel client class JIT if it's the synchronous version
+- Several documentation fixes / improvements
+
## 0.5.0
- Move `language_info` retrieval before cell execution
[#102](https://github.com/jupyter/nbclient/pull/102)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/docs/client.rst
new/nbclient-0.5.1/docs/client.rst
--- old/nbclient-0.5.0/docs/client.rst 2020-07-10 08:03:45.000000000 +0200
+++ new/nbclient-0.5.1/docs/client.rst 2020-10-15 19:08:22.000000000 +0200
@@ -36,8 +36,7 @@
**Load**: Assuming that ``notebook_filename`` contains the path to a notebook,
we can load it with::
- with open(notebook_filename) as f:
- nb = nbformat.read(f, as_version=4)
+ nb = nbformat.read(notebook_filename, as_version=4)
**Configure**: Next, we configure the notebook execution mode::
@@ -109,8 +108,7 @@
the error and the original error name and message are also printed.
After an error, we can still save the notebook as before::
- with open('executed_notebook.ipynb', mode='w', encoding='utf-8') as f:
- nbformat.write(nb, f)
+ nbformat.write(nb, 'executed_notebook.ipynb')
The saved notebook contains the output up until the failing cell,
and includes a full stack-trace and error (which can help debugging).
@@ -119,19 +117,17 @@
~~~~~~~~~~~~~~~
A useful pattern to execute notebooks while handling errors is the following::
- from nbconvert.preprocessors import CellExecutionError
+ from nbclient.exceptions import CellExecutionError
try:
- out = ep.preprocess(nb, {'metadata': {'path': run_path}})
+ client.execute()
except CellExecutionError:
- out = None
msg = 'Error executing the notebook "%s".\n\n' % notebook_filename
msg += 'See notebook "%s" for the traceback.' % notebook_filename_out
print(msg)
raise
finally:
- with open(notebook_filename_out, mode='w', encoding='utf-8') as f:
- nbformat.write(nb, f)
+ nbformat.write(nb, notebook_filename_out)
This will save the executed notebook regardless of execution errors.
In case of errors, however, an additional message is printed and the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/docs/conf.py
new/nbclient-0.5.1/docs/conf.py
--- old/nbclient-0.5.0/docs/conf.py 2020-07-10 08:03:45.000000000 +0200
+++ new/nbclient-0.5.1/docs/conf.py 2020-09-11 23:53:48.000000000 +0200
@@ -54,8 +54,8 @@
# General information about the project.
project = 'nbclient'
-copyright = '2020, jupyter team'
-author = 'jupyter team'
+copyright = '2020, Project Jupyter'
+author = 'Project Jupyter'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/docs/index.rst
new/nbclient-0.5.1/docs/index.rst
--- old/nbclient-0.5.0/docs/index.rst 2020-07-10 08:03:45.000000000 +0200
+++ new/nbclient-0.5.1/docs/index.rst 2020-10-15 19:08:22.000000000 +0200
@@ -13,14 +13,14 @@
---
-**NBClient** is a tool for executing Jupyter Notebooks.
+**NBClient**, a client library for programmatic notebook execution, is a tool
for running Jupyter Notebooks in
+different execution contexts. NBClient was spun out of `nbconvert
<https://nbconvert.readthedocs.io/en/latest/>`_'s
+former ``ExecutePreprocessor``.
-NBClient lets you:
+**NBClient** lets you **execute** notebooks.
-* **execute** notebooks
-
-Similar in nature to jupyter_client, as the jupyter_client is to the jupyter
-protocol nbclient is to notebooks allowing for execution contexts to be run.
+Demo
+----
To demo **NBClient** interactively, click the Binder link below:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/nbclient/_version.py
new/nbclient-0.5.1/nbclient/_version.py
--- old/nbclient-0.5.0/nbclient/_version.py 2020-08-27 17:44:23.000000000
+0200
+++ new/nbclient-0.5.1/nbclient/_version.py 2020-10-15 19:12:18.000000000
+0200
@@ -1 +1 @@
-version = '0.5.0'
+version = '0.5.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/nbclient/client.py
new/nbclient-0.5.1/nbclient/client.py
--- old/nbclient-0.5.0/nbclient/client.py 2020-08-27 17:41:22.000000000
+0200
+++ new/nbclient-0.5.1/nbclient/client.py 2020-10-15 19:08:22.000000000
+0200
@@ -66,7 +66,7 @@
is raised.
Returning ``None`` or ``-1`` will disable the timeout for the cell.
- Not setting ``timeout_func`` will cause the preprocessor to
+ Not setting ``timeout_func`` will cause the client to
default to using the ``timeout`` trait for all cells. The
``timeout_func`` trait overrides ``timeout`` if it is not ``None``.
"""
@@ -339,7 +339,12 @@
self.km = self.kernel_manager_class(config=self.config)
else:
self.km = self.kernel_manager_class(kernel_name=self.kernel_name,
config=self.config)
- self.km.client_class = 'jupyter_client.asynchronous.AsyncKernelClient'
+
+ # If the current kernel manager is still using the default
(synchronous) KernelClient class,
+ # switch to the async version since that's what NBClient prefers.
+ if self.km.client_class == 'jupyter_client.client.KernelClient':
+ self.km.client_class =
'jupyter_client.asynchronous.AsyncKernelClient'
+
return self.km
async def _async_cleanup_kernel(self) -> None:
@@ -1074,7 +1079,7 @@
km : AsyncKernelManager, optional
If supplied, the specified kernel manager will be used for code
execution.
kwargs :
- Any other options for ExecutePreprocessor, e.g. timeout, kernel_name
+ Any other options for NotebookClient, e.g. timeout, kernel_name
"""
resources = {}
if cwd is not None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/nbclient/tests/base.py
new/nbclient-0.5.1/nbclient/tests/base.py
--- old/nbclient-0.5.0/nbclient/tests/base.py 2020-05-25 19:04:46.000000000
+0200
+++ new/nbclient-0.5.1/nbclient/tests/base.py 2020-10-15 19:08:22.000000000
+0200
@@ -4,10 +4,9 @@
class NBClientTestsBase(unittest.TestCase):
- """Contains test functions preprocessor tests"""
def build_notebook(self, with_json_outputs=False):
- """Build a notebook in memory for use with preprocessor tests"""
+ """Build a notebook in memory for use with NotebookClient tests"""
outputs = [
nbformat.new_output("stream", name="stdout", text="a"),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/nbclient/util.py
new/nbclient-0.5.1/nbclient/util.py
--- old/nbclient-0.5.0/nbclient/util.py 2020-07-10 08:03:45.000000000 +0200
+++ new/nbclient-0.5.1/nbclient/util.py 2020-10-15 19:08:22.000000000 +0200
@@ -23,7 +23,7 @@
"""If tornado is imported, add the patched asyncio.Future to its tuple of
acceptable Futures"""
# original from vaex/asyncio.py
if 'tornado' in sys.modules:
- import tornado.concurrent
+ import tornado.concurrent # type: ignore
if asyncio.Future not in tornado.concurrent.FUTURES:
tornado.concurrent.FUTURES = \
tornado.concurrent.FUTURES + (asyncio.Future, ) # type: ignore
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/nbclient.egg-info/PKG-INFO
new/nbclient-0.5.1/nbclient.egg-info/PKG-INFO
--- old/nbclient-0.5.0/nbclient.egg-info/PKG-INFO 2020-08-27
17:44:43.000000000 +0200
+++ new/nbclient-0.5.1/nbclient.egg-info/PKG-INFO 2020-10-15
19:12:27.000000000 +0200
@@ -1,7 +1,7 @@
Metadata-Version: 2.1
Name: nbclient
-Version: 0.5.0
-Summary: A client library for executing notebooks. Formally nbconvert's
ExecutePreprocessor.
+Version: 0.5.1
+Summary: A client library for executing notebooks. Formerly nbconvert's
ExecutePreprocessor.
Home-page: https://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
@@ -22,30 +22,50 @@
# nbclient
- A client library for executing notebooks. Formerly nbconvert's
ExecutePreprocessor.
+ **NBClient**, a client library for programmatic notebook execution, is
a tool for running Jupyter Notebooks in
+ different execution contexts. NBClient was spun out of
[nbconvert](https://nbconvert.readthedocs.io/en/latest/)'s
+ former `ExecutePreprocessor`.
- **NBClient** is a tool for executing Jupyter Notebooks.
+ **NBClient** lets you **execute** notebooks.
- NBClient lets you:
+ ## Interactive Demo
- - **execute** notebooks
+ To demo **NBClient** interactively, click this Binder badge to start
the demo:
- Similar in nature to jupyter_client, as the jupyter_client is to the
jupyter
- protocol nbclient is to notebooks allowing for execution contexts to
be run.
+
[](https://mybinder.org/v2/gh/jupyter/nbclient/master?filepath=binder%2Frun_nbclient.ipynb)
- ## Origins
+ ## Installation
+
+ In a terminal, run:
+
+ python3 -m pip install nbclient
+
+ ## Documentation
+
+ See [ReadTheDocs](https://nbclient.readthedocs.io/en/latest/) for more
in-depth details about the project and the
+ [API
Reference](https://nbclient.readthedocs.io/en/latest/reference/index.html).
- This library used to be part of
[nbconvert](https://nbconvert.readthedocs.io/en/latest/) and was extracted into
its own library for easier updating and importing by downstream libraries and
applications.
## Python Version Support
- This library currently supports python 3.6+ versions. As minor python
- versions are officially sunset by the python org nbclient will
similarly
+ This library currently supports Python 3.6+ versions. As minor Python
+ versions are officially sunset by the Python org, nbclient will
similarly
drop support in the future.
- ## Documentation
+ ## Origins
- See [readthedocs](https://nbclient.readthedocs.io/en/latest/) for more
in-depth details about the project and API capabilities.
+ This library used to be part of the
[nbconvert](https://nbconvert.readthedocs.io/en/latest/) project. NBClient
+ extracted nbconvert's `ExecutePreprocessor`into its own library for
easier updating and importing by
+ downstream libraries and applications.
+
+ ## Relationship to JupyterClient
+
+ NBClient and JupyterClient are distinct projects.
+
+ `jupyter_client` is a client library for the jupyter protocol.
Specifically, `jupyter_client` provides the Python API
+ for starting, managing and communicating with Jupyter kernels.
+
+ While, nbclient allows notebooks to be run in different execution
contexts.
Keywords: jupyter,pipeline,notebook,executor
Platform: Linux
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.0/setup.py new/nbclient-0.5.1/setup.py
--- old/nbclient-0.5.0/setup.py 2020-05-25 19:04:46.000000000 +0200
+++ new/nbclient-0.5.1/setup.py 2020-10-15 19:08:22.000000000 +0200
@@ -47,7 +47,7 @@
author='Jupyter Development Team',
author_email='[email protected]',
url='https://jupyter.org',
- description="A client library for executing notebooks. Formally
nbconvert's ExecutePreprocessor.",
+ description="A client library for executing notebooks. Formerly
nbconvert's ExecutePreprocessor.",
long_description=long_description,
long_description_content_type='text/markdown',
packages=['nbclient'],
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]