pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-nbconvert py-nbconvert: updated to 5.6.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d08b4fc54380
branches:  trunk
changeset: 338257:d08b4fc54380
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Aug 21 12:59:54 2019 +0000

description:
py-nbconvert: updated to 5.6.0

5.6.0:
Significant Changes

Jupter Client Pin
The jupyter_client dependency is now pinned to >5.3.1. This is done to support the Parallel NBConvert below, and future versions may require interface changes from that version.

Parallel NBConvert
NBConvert --execute can now be run in parallel via threads, multiprocessing, or async patterns! This means you can now parallelize nbconvert via a bash loop, or a python concurrency pattern and it 
should be able to execute those notebooks in parallel.

Kernels have varying support for safe concurrent execution. The ipython kernel (ipykernel version 1.5.2 and higher) should be safe to run concurrently using Python 3. However, the Python 2 ipykernel 
does not always provide safe concurrent execution and sometimes fails with a socket bind exception. Unlike ipykernel which is maintained by the project, other community-maintained kernels may have 
varying support for concurrent execution, and these kernels were not tested heavily.

Issues for nbconvert can be viewed here:
.. note: We'll keep an eye for issues related to this new capability and try to quickly patch any discovered issues post release. The improvement required touching three projects with separate 
releases, so if you do find an issue try upgrading dependencies and listing your dependencies for your environment when reporting.

Execute Loop Rewrite
This release completely rewrote the execution loop responsible for monitoring kernel messages until cell execution is completed. This removes an error where kernel messages could be dropped if too 
many were posted too quickly. Furthermore, the change means that messages are not buffered. Now, messages can be logged immediately rather than waiting for the cell to terminate.

Comprehensive notes

New Features
- Make a default global location for custom user templates
- Parallel execution improvements
- Added store_history option to preprocess_cell and run_cell
- Simplify the function signature for preprocess()
- Set flag to not always stop kernel execution on errors
- setup_preprocessor passes kwargs to start_new_kernel

Fixing Problems
- Very fast stream outputs no longer drop some messages
- LaTeX errors now properly raise exceptions
- Improve template whitespacing
- Fixes for character in LaTeX exports and filters
- Mistune pinned in preparation for 2.0 release
- Require mock only on Python 2
- Fix selection of mimetype when converting to HTML
- Correct a few typos
- Update export_from_notebook names
- Dedenting html in ExtractOutputPreprocessor
- Fix backwards incompatibility with markdown2html
- Fixed html image tagging
- Remove unnecessary css

Testing, Docs, and Builds
- Pip-install nbconvert on readthedocs.org
- Fix various doc build issues
- Add issue templates
- Added instructions for bumping the version forward when releasing
- Fix Testing on Windows
- Refactored test_run_notebooks
- Fixed documentation typos

diffstat:

 www/py-nbconvert/Makefile |  14 ++++++++------
 www/py-nbconvert/PLIST    |   6 +++++-
 www/py-nbconvert/distinfo |  10 +++++-----
 3 files changed, 18 insertions(+), 12 deletions(-)

diffs (83 lines):

diff -r 8efad4efe3db -r d08b4fc54380 www/py-nbconvert/Makefile
--- a/www/py-nbconvert/Makefile Wed Aug 21 12:57:52 2019 +0000
+++ b/www/py-nbconvert/Makefile Wed Aug 21 12:59:54 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2019/07/22 08:42:50 nia Exp $
+# $NetBSD: Makefile,v 1.7 2019/08/21 12:59:54 adam Exp $
 
-DISTNAME=      nbconvert-5.5.0
+DISTNAME=      nbconvert-5.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=n/nbconvert/}
@@ -13,17 +13,19 @@
 DEPENDS+=      ${PYPKGPREFIX}-bleach-[0-9]*:../../www/py-bleach
 DEPENDS+=      ${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml
 DEPENDS+=      ${PYPKGPREFIX}-entrypoints>=0.2.2:../../devel/py-entrypoints
-DEPENDS+=      ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2
-DEPENDS+=      ${PYPKGPREFIX}-jupyter_client>=4.2:../../devel/py-jupyter_client
+DEPENDS+=      ${PYPKGPREFIX}-ipykernel-[0-9]*:../../devel/py-ipykernel
+DEPENDS+=      ${PYPKGPREFIX}-ipywidgets>=7:../../www/py-ipywidgets
+DEPENDS+=      ${PYPKGPREFIX}-jinja2>=2.4:../../textproc/py-jinja2
+DEPENDS+=      ${PYPKGPREFIX}-jupyter_client>=5.3.1:../../devel/py-jupyter_client
 DEPENDS+=      ${PYPKGPREFIX}-jupyter_core-[0-9]*:../../devel/py-jupyter_core
-DEPENDS+=      ${PYPKGPREFIX}-mistune>=0.7.4:../../textproc/py-mistune
+DEPENDS+=      ${PYPKGPREFIX}-mistune>=0.8.1:../../textproc/py-mistune
 DEPENDS+=      ${PYPKGPREFIX}-nbformat>=4.4:../../www/py-nbformat
 DEPENDS+=      ${PYPKGPREFIX}-pandocfilters>=1.4.1:../../textproc/py-pandocfilters
 DEPENDS+=      ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
 DEPENDS+=      ${PYPKGPREFIX}-testpath-[0-9]*:../../devel/py-testpath
 DEPENDS+=      ${PYPKGPREFIX}-tornado>=4.0:../../www/py-tornado
 DEPENDS+=      ${PYPKGPREFIX}-traitlets>=4.2:../../devel/py-traitlets
-TEST_DEPENDS+= ${PYPKGPREFIX}-ipykernel-[0-9]*:../../devel/py-ipykernel
+TEST_DEPENDS+= ${PYPKGPREFIX}-pebble-[0-9]*:../../devel/py-pebble
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 TEST_DEPENDS+= ${PYPKGPREFIX}-testpath-[0-9]*:../../devel/py-testpath
diff -r 8efad4efe3db -r d08b4fc54380 www/py-nbconvert/PLIST
--- a/www/py-nbconvert/PLIST    Wed Aug 21 12:57:52 2019 +0000
+++ b/www/py-nbconvert/PLIST    Wed Aug 21 12:59:54 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2019/06/14 14:49:12 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2019/08/21 12:59:54 adam Exp $
 bin/jupyter-nbconvert-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_FILE}/PKG-INFO
 ${PYSITELIB}/${EGG_FILE}/SOURCES.txt
@@ -252,6 +252,7 @@
 ${PYSITELIB}/nbconvert/preprocessors/tests/fake_kernelmanager.py
 ${PYSITELIB}/nbconvert/preprocessors/tests/fake_kernelmanager.pyc
 ${PYSITELIB}/nbconvert/preprocessors/tests/fake_kernelmanager.pyo
+${PYSITELIB}/nbconvert/preprocessors/tests/files/Check History in Memory.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Clear Output.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Disable Stdin.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Empty Cell.ipynb
@@ -261,11 +262,14 @@
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Interrupt-IPY6.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Interrupt.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/JupyterWidgets.ipynb
+${PYSITELIB}/nbconvert/preprocessors/tests/files/Parallel Execute A.ipynb
+${PYSITELIB}/nbconvert/preprocessors/tests/files/Parallel Execute B.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/SVG.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Skip Exceptions with Cell Tags-IPY6.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Skip Exceptions with Cell Tags.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Skip Exceptions-IPY6.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Skip Exceptions.ipynb
+${PYSITELIB}/nbconvert/preprocessors/tests/files/Sleep One.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/Unicode.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/UnicodePy3.ipynb
 ${PYSITELIB}/nbconvert/preprocessors/tests/files/python.png
diff -r 8efad4efe3db -r d08b4fc54380 www/py-nbconvert/distinfo
--- a/www/py-nbconvert/distinfo Wed Aug 21 12:57:52 2019 +0000
+++ b/www/py-nbconvert/distinfo Wed Aug 21 12:59:54 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2019/06/14 14:49:12 adam Exp $
+$NetBSD: distinfo,v 1.6 2019/08/21 12:59:54 adam Exp $
 
-SHA1 (nbconvert-5.5.0.tar.gz) = e5b7648d82b1146f877faf9a86dbec6f537afaf9
-RMD160 (nbconvert-5.5.0.tar.gz) = 9bbc61ecc4d33c03ebaa0c5b552af9b8d86afeec
-SHA512 (nbconvert-5.5.0.tar.gz) = 4d10cbd6d6854d7672537cfb2e0a79854be1ed4adf96f805b1a0ec0dde0e149ed465a26ceec8d7c325f7011c30ff646054585b65d1e83540622e25a96cc207bf
-Size (nbconvert-5.5.0.tar.gz) = 583216 bytes
+SHA1 (nbconvert-5.6.0.tar.gz) = c7ae18f254cd951717fea55af64470f5a2c4fdf5
+RMD160 (nbconvert-5.6.0.tar.gz) = b606cdafa196e8d084d23acbbc4b7fc253205eeb
+SHA512 (nbconvert-5.6.0.tar.gz) = e9315376204e124a7274b4d9d44a787cfd98f26465177afbb47e030bde6e65aa65d536337832136506e920f73b5cf8471830fc5e17bad19411ad4052a11b0850
+Size (nbconvert-5.6.0.tar.gz) = 701743 bytes



Home | Main Index | Thread Index | Old Index