diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-11-28 19:07:59 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-11-28 19:07:59 +0100 |
commit | cbeabd5c64564203a3bfd6f716d26ad31d773aeb (patch) | |
tree | c03099002583d829feed10935723af897d59a8bc | |
parent | sci-libs/lapacke-reference: Drop old (diff) | |
parent | Drop patches/jupyter_core-4.0.4-tests-dotipython.patch (diff) | |
download | sci-cbeabd5c64564203a3bfd6f716d26ad31d773aeb.tar.gz sci-cbeabd5c64564203a3bfd6f716d26ad31d773aeb.tar.bz2 sci-cbeabd5c64564203a3bfd6f716d26ad31d773aeb.zip |
Merge remote-tracking branch 'github/master'
* github/master:
Drop patches/jupyter_core-4.0.4-tests-dotipython.patch
dev-python/nbconvert: Drop old patch
dev-python/jupyter: Moved to tree
dev-python/ipython: Moved to tree
dev-python/jupyter_core: Moved to tree; Drop old
dev-python/jupyter_console: Moved to tree
dev-python/jupyter_client: Moved to tree; Drop old
dev-python/notebook: Drop old
dev-python/ipykernel: Moved to tree; Drop old
dev-python/testpath: Moved to tree
dev-python/traitlets: Moved to tree
dev-python/ipython_genutils: Moved to tree
dev-python/ipyparallel: Moved to tree
dev-python/qtconsole: Moved to tree
dev-python/pickleshare: Moved to tree
dev-python/ipywidgets: Drop old
dev-python/nbconvert: Moved to tree
dev-python/nbformat: Moved to tree
69 files changed, 67 insertions, 6684 deletions
diff --git a/dev-python/ipykernel/ChangeLog b/dev-python/ipykernel/ChangeLog index 238b6b36e..36b937708 100644 --- a/dev-python/ipykernel/ChangeLog +++ b/dev-python/ipykernel/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -ipykernel-4.0.3.ebuild, -ipykernel-4.1.1.ebuild, -ipykernel-4.2.0.ebuild: + dev-python/ipykernel: Moved to tree; Drop old + *ipykernel-4.2.0 (27 Nov 2015) 27 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> diff --git a/dev-python/ipykernel/Manifest b/dev-python/ipykernel/Manifest deleted file mode 100644 index 58730cb58..000000000 --- a/dev-python/ipykernel/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST ipykernel-4.0.3.tar.gz 72024 SHA256 a4d7d2d35a0af432c8391872cb4dae727d77031212f32ca858b5c84cd0ea821f SHA512 ebd0fe26f840adeaf50b7c30a9658de6cda3c03411bf693e2195481c734b9d96606e5744fa65c309845eb127fe88c3216bd12f441e577ffc42646673cfc68a83 WHIRLPOOL b4a8de808d866e3e5a450d342e76e961ad33bfbd6e5034315244d342992904f9204f6bb711bc1c8d31ea36b9682e606aa70446122857166c97b486a90df123ee -DIST ipykernel-4.1.1.tar.gz 80461 SHA256 d8c5555386d0f18f1336dea9800f9f0fe96dcecc9757c0f980e11fdfadb661ff SHA512 1ffd6f566ed75a9558eaa772c2572e427332204b32b8020aa9a6845d76d8a42847fc8e18d19f4cd840a069d51f91b01c3fe6e6ad2e4e127a4fe2aef2725a3866 WHIRLPOOL 64373a9af6f50e970273238cda2abcbeea12fdda51d33df95dcd9ad788e9f0f5682eed0c7cb77f35858005e748e1177715cdaac2797ef052d1f761a171014bbc -DIST ipykernel-4.2.0.tar.gz 80543 SHA256 723b3d4baac20f0c9cd91fc75c3e813636ecb6c6e303fb34d628c3df078985a7 SHA512 32d3d3e594031c16b3ae4736f72e168263d44be15e1a546b4f69614bef30d80ff44db00699be086897c1c384b71600f3cd7bd702b45136f51aab526c2c018f25 WHIRLPOOL e1f335dd68068e338998ac7198db43cee6d06ce19f6f6a40c7da5509beb16fed24b86eb89dcab468fc344d8d4fd090963f74f46aa119013591abf4d3463bccfa diff --git a/dev-python/ipykernel/ipykernel-4.0.3.ebuild b/dev-python/ipykernel/ipykernel-4.0.3.ebuild deleted file mode 100644 index 35af94f98..000000000 --- a/dev-python/ipykernel/ipykernel-4.0.3.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="IPython Kernel for Jupyter" -HOMEPAGE="https://github.com/ipython/ipykernel" - -if [ ${PV} == "9999" ] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/ipython/${PN}.git git://github.com/ipython/${PN}.git" -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="BSD" -SLOT="0" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}]" - #dev-python/jupyter_client[${PYTHON_USEDEP}] - #>=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] -DEPEND="${RDEPEND} - test? ( - dev-python/coverage[${PYTHON_USEDEP}] - >=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - ) - " - -python_test() { - nosetests --with-coverage --cover-package ipykernel ipykernel || die -} diff --git a/dev-python/ipykernel/ipykernel-4.1.1.ebuild b/dev-python/ipykernel/ipykernel-4.1.1.ebuild deleted file mode 100644 index e8cf09641..000000000 --- a/dev-python/ipykernel/ipykernel-4.1.1.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="IPython Kernel for Jupyter" -HOMEPAGE="https://github.com/ipython/ipykernel" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}]" - #dev-python/jupyter_client[${PYTHON_USEDEP}] - #>=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] -DEPEND="${RDEPEND} - test? ( - dev-python/coverage[${PYTHON_USEDEP}] - >=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - ) - " - -python_test() { - nosetests --with-coverage --cover-package ipykernel ipykernel || die -} diff --git a/dev-python/ipykernel/ipykernel-4.2.0.ebuild b/dev-python/ipykernel/ipykernel-4.2.0.ebuild deleted file mode 100644 index e8cf09641..000000000 --- a/dev-python/ipykernel/ipykernel-4.2.0.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="IPython Kernel for Jupyter" -HOMEPAGE="https://github.com/ipython/ipykernel" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}]" - #dev-python/jupyter_client[${PYTHON_USEDEP}] - #>=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] -DEPEND="${RDEPEND} - test? ( - dev-python/coverage[${PYTHON_USEDEP}] - >=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - ) - " - -python_test() { - nosetests --with-coverage --cover-package ipykernel ipykernel || die -} diff --git a/dev-python/ipyparallel/ChangeLog b/dev-python/ipyparallel/ChangeLog index 6ed91b8ec..516a2932f 100644 --- a/dev-python/ipyparallel/ChangeLog +++ b/dev-python/ipyparallel/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -ipyparallel-4.0.0-r1.ebuild, -ipyparallel-4.0.2-r1.ebuild, + -ipyparallel-4.1.0.ebuild: + dev-python/ipyparallel: Moved to tree + *ipyparallel-4.0.2-r1 (27 Sep 2015) 27 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> diff --git a/dev-python/ipyparallel/Manifest b/dev-python/ipyparallel/Manifest deleted file mode 100644 index 707fe9ada..000000000 --- a/dev-python/ipyparallel/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST ipyparallel-4.0.0.tar.gz 2270657 SHA256 cf4aae8d5c84becbe5bbda7791017f242efc2e017e9a9d54ac1ee4d73c707618 SHA512 6f2672b1f65a4487e619745c78a88621aa15b2cb08995dfb81584c9c05e96441b6b55e990edd495c6b26d939f9c237efd876e2ff65c1d9ba29fa62559ac9b1e7 WHIRLPOOL 41402dbfc4c1d57ba32433ff15d88d12a1df30c0891aa85d249cc119a8bba4b39415bc1e32215c63d982c18a5d6e6badbcd95654311d254aa3ab5d1b2198a962 -DIST ipyparallel-4.0.2.tar.gz 2270476 SHA256 6b9e09ca441a45e055b97cb8e3e1dd30de85b935fae3aa0d97f138352fd3089b SHA512 a2edd8d821a6a902fc07e3f883f9dec99d3b51681e968c81163ae1ef5cf1c0ae9fc564cc0378e10b06da9cb822b58dab6bdba65ce441ce77908bdf3d0c500b16 WHIRLPOOL c7020d40cc708d9e9bc0b741c96cb5c79487ec881fc473bdc4eabd77051821a4ed377c2c24dc8a9e5255de2f4d70bd17f7ea62c5f9aff39340da17620be4741f -DIST ipyparallel-4.1.0.tar.gz 2271608 SHA256 c943f6b3bbabb9332336d15474969e2a7a73d5b583f9786f7b357c75e4b1709a SHA512 19fff1ea57d9fcaec6525ce6e0c72ab63ab1245e32e485174a0691d2b48d8d2512af4055b77df82c7b30a8c071e1b6c5900d37e992f82f1597492e220e83d36f WHIRLPOOL ead35bc2166af0b221e730550689b09b7bf04148abcd754039f1c511acaa182ba50b593372f3e8bc627ae40a6117f9209cac476c1905bdc780f53de10666ffe1 diff --git a/dev-python/ipyparallel/ipyparallel-4.0.0-r1.ebuild b/dev-python/ipyparallel/ipyparallel-4.0.0-r1.ebuild deleted file mode 100644 index c38288936..000000000 --- a/dev-python/ipyparallel/ipyparallel-4.0.0-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Interactive Parallel Computing with IPython" -HOMEPAGE="http://ipython.org/" - -if [ ${PV} == "9999" ] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/ipython/${PN}.git git://github.com/ipython/${PN}.git" -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~amd64" -fi - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -RDEPEND=" - dev-python/ipython_genutils[${PYTHON_USEDEP}] - dev-python/decorator[${PYTHON_USEDEP}] - >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - >=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] - dev-python/jupyter_client[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - iptest --coverage xml ipyparallel.tests || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/ipyparallel/ipyparallel-4.0.2-r1.ebuild b/dev-python/ipyparallel/ipyparallel-4.0.2-r1.ebuild deleted file mode 100644 index be83c50bd..000000000 --- a/dev-python/ipyparallel/ipyparallel-4.0.2-r1.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Interactive Parallel Computing with IPython" -HOMEPAGE="http://ipython.org/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc test" - -RDEPEND=" - dev-python/ipython_genutils[${PYTHON_USEDEP}] - dev-python/decorator[${PYTHON_USEDEP}] - >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - !<dev-python/ipython-4.0.0[smp] - >=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] - dev-python/jupyter_client[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - iptest --coverage xml ipyparallel.tests || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/ipyparallel/ipyparallel-4.1.0.ebuild b/dev-python/ipyparallel/ipyparallel-4.1.0.ebuild deleted file mode 100644 index be83c50bd..000000000 --- a/dev-python/ipyparallel/ipyparallel-4.1.0.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Interactive Parallel Computing with IPython" -HOMEPAGE="http://ipython.org/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc test" - -RDEPEND=" - dev-python/ipython_genutils[${PYTHON_USEDEP}] - dev-python/decorator[${PYTHON_USEDEP}] - >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - !<dev-python/ipython-4.0.0[smp] - >=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] - dev-python/jupyter_client[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - iptest --coverage xml ipyparallel.tests || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/ipython/ChangeLog b/dev-python/ipython/ChangeLog deleted file mode 100644 index 37c5859d2..000000000 --- a/dev-python/ipython/ChangeLog +++ /dev/null @@ -1,50 +0,0 @@ -# ChangeLog for dev-python/ipython -# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Id$ - - 22 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> - ipython-4.0.0-r2.ebuild: - dev-python/ipython: Add ~x86 to KEYWORDS, fixes #561032 - - 17 Sep 2015; François Bissey <francois.bissey@canterbury.ac.nz> - ipython-4.0.0-r2.ebuild: - dev-python/ipython: Solve circular dependency between ipython and ipyparallel - when smp is enabled. - - 16 Sep 2015; suhr <null@null> - ipython-4.0.0-r2.ebuild: - dev-python/ipython: separate wxwidgets dependency from ipywidgets - - 02 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> - ipython-4.0.0-r1.ebuild: - dev-python/ipython: Fix #480; add testpath to dependencies - - 02 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> - ipython-4.0.0-r1.ebuild: - dev-python/ipython: Move setuptools from CDEPEND to DEPEND - - 02 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> - ipython-4.0.0-r1.ebuild: - dev-python/ipython: Re-Fix #474; notebook use flag requires use wxwidgets - - 01 Sep 2015; Sean Vig <sean.v.775@gmail.com> - dev-python/ipython: remove mathjax references - -*ipython-4.0.0-r1 (01 Sep 2015) - - 01 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> - +ipython-4.0.0-r1.ebuild, -ipython-4.0.0.ebuild: - dev-python/ipython: Fix #474 - - 25 Aug 2015; Marius Brehler <marbre@linux.sungazer.de> ipython-4.0.0.ebuild, - metadata.xml: - dev-python/ipython: Drop octave useflag - - 25 Aug 2015; Marius Brehler <marbre@linux.sungazer.de> ipython-4.0.0.ebuild: - dev-python/ipython: Provide qt4 console via dev-python/qtconsole - -*ipython-4.0.0 (13 Aug 2015) - - 13 Aug 2015; Marius Brehler <marbre@linux.sungazer.de> - +files/2.1.0-substitute-files.patch, +ipython-4.0.0.ebuild, +metadata.xml: - dev-python/ipython: Version bumped ebuild; Imported from tree diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest deleted file mode 100644 index 0754b07aa..000000000 --- a/dev-python/ipython/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST ipython-4.0.0.tar.gz 6205133 SHA256 2fd276c407fb0b29e5d4884a7029a2c27fef0a06fd7a34924cce69b7cc43f4da SHA512 406e8e7779d9d8998f0621e58466ba185d89ef1639de6241f292f43410242d8eeab1d722496f82bf5d48e31584751efdc1a4177ea9e4ceb1ecb8d5acdf390ee7 WHIRLPOOL aff3f46964afd8841c00bb370b13da8acded0a1c44bfeb5543d3643fc7eb5554b4c7a4465148ef66bf33690dafa978ad9d350582971d3cd0c97cdef380df2631 diff --git a/dev-python/ipython/files/2.1.0-substitute-files.patch b/dev-python/ipython/files/2.1.0-substitute-files.patch deleted file mode 100644 index 659df3922..000000000 --- a/dev-python/ipython/files/2.1.0-substitute-files.patch +++ /dev/null @@ -1,27 +0,0 @@ -substitute the insource files with these messages -diff --git a/IPython/extensions/octavemagic.py b/IPython/extensions/octavemagic.py -new file mode 100644 -index 0000000..dc93fe4 ---- /dev/null -+++ b/IPython/extensions/octavemagic.py -@@ -0,0 +1,7 @@ -+import warnings -+ -+def load_ipython_extension(ip): -+ msg = ("The octavemagic extension has been moved to oct2py. " -+ "After installing oct2py, you can load octavemagic with the " -+ "following command: '%load_ext oct2py.ipython'.") -+ warnings.warn(msg, Warning, stacklevel=2) -diff --git a/IPython/extensions/rmagic.py b/IPython/extensions/rmagic.py -new file mode 100644 -index 0000000..739e491 ---- /dev/null -+++ b/IPython/extensions/rmagic.py -@@ -0,0 +1,7 @@ -+import warnings -+ -+def load_ipython_extension(ip): -+ msg = ("The rmagic extension has been moved to rpy2. " -+ "After installing rpy2, you can load rmagic with the " -+ "following command: '%load_ext rpy2.ipython'.") -+ warnings.warn(msg, Warning, stacklevel=2) diff --git a/dev-python/ipython/ipython-4.0.0-r2.ebuild b/dev-python/ipython/ipython-4.0.0-r2.ebuild deleted file mode 100644 index 076965cf4..000000000 --- a/dev-python/ipython/ipython-4.0.0-r2.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE='readline,sqlite,threads(+)' - -inherit distutils-r1 eutils virtualx - -DESCRIPTION="Advanced interactive shell for Python" -HOMEPAGE="http://ipython.org/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc examples matplotlib mongodb notebook nbconvert qt4 +smp test wxwidgets" - -REQUIRED_USE=" - test? ( doc matplotlib mongodb notebook nbconvert qt4 wxwidgets ) - doc? ( mongodb )" - -CDEPEND=" - dev-python/decorator[${PYTHON_USEDEP}] - dev-python/pexpect[${PYTHON_USEDEP}] - dev-python/pickleshare[${PYTHON_USEDEP}] - dev-python/pyparsing[${PYTHON_USEDEP}] - dev-python/simplegeneric[${PYTHON_USEDEP}] - dev-python/traitlets[${PYTHON_USEDEP}] - matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) - mongodb? ( <dev-python/pymongo-3[${PYTHON_USEDEP}] ) - wxwidgets? ( $(python_gen_cond_dep 'dev-python/wxpython:*[${PYTHON_USEDEP}]' python2_7) )" - -RDEPEND="${CDEPEND} - notebook? ( - dev-python/notebook[${PYTHON_USEDEP}] - dev-python/ipywidgets[${PYTHON_USEDEP}] - ) - nbconvert? ( dev-python/nbconvert[${PYTHON_USEDEP}] ) - qt4? ( dev-python/qtconsole )" -DEPEND="${CDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - app-text/dvipng - dev-python/jinja[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] - >=www-servers/tornado-4.0[${PYTHON_USEDEP}] - dev-python/testpath[${PYTHON_USEDEP}] - ) - doc? ( - dev-python/cython[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7) - >=dev-python/jsonschema-2.0[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] - dev-python/numpydoc[${PYTHON_USEDEP}] - dev-python/rpy[${PYTHON_USEDEP}] - >=dev-python/sphinx-1.1[${PYTHON_USEDEP}] - >=www-servers/tornado-4.0[${PYTHON_USEDEP}] - )" - -PDEPEND=" - smp? ( dev-python/ipyparallel[${PYTHON_USEDEP}] )" - -PATCHES=( - "${FILESDIR}"/2.1.0-substitute-files.patch - ) - -DISTUTILS_IN_SOURCE_BUILD=1 - -python_prepare_all() { - # Remove out of date insource files - rm IPython/extensions/rmagic.py || die - - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html_noapi -} - -python_test() { - distutils_install_for_testing - # https://github.com/ipython/ipython/issues/8639 - # Failure of some modules only in python3.4 - local fail - run_tests() { - pushd ${TEST_DIR} > /dev/null - "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1 - popd > /dev/null - } - VIRTUALX_COMMAND=run_tests virtualmake - [[ ${fail} ]] && die "Tests fail with ${EPYTHON}" -} - -python_install() { - distutils-r1_python_install - - # Create ipythonX.Y symlinks. - # TODO: - # 1. do we want them for pypy? No. pypy has no numpy - # 2. handle it in the eclass instead (use _python_ln_rel). - # With pypy not an option the dosym becomes unconditional - dosym ../lib/python-exec/${EPYTHON}/ipython \ - /usr/bin/ipython${EPYTHON#python} -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/build/html/. ) - use examples && local EXAMPLES=( examples/. ) - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "sympyprinting" dev-python/sympy - optfeature "cythonmagic" dev-python/cython - optfeature "%lprun magic command" dev-python/line_profiler - optfeature "%mprun magic command" dev-python/memory_profiler - if use nbconvert; then - if ! has_version app-text/pandoc ; then - einfo "Node.js will be used to convert notebooks to other formats" - einfo "like HTML. Support for that is still experimental. If you" - einfo "encounter any problems, please use app-text/pandoc instead." - fi - fi -} diff --git a/dev-python/ipython/metadata.xml b/dev-python/ipython/metadata.xml deleted file mode 100644 index 75c2dffb9..000000000 --- a/dev-python/ipython/metadata.xml +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>python</herd> - <longdescription lang="en"> - IPython provides a replacement for the interactive Python interpreter with - extra functionality. Main features: - * Comprehensive object introspection. - * Input history, persistent across sessions. - * Caching of output results during a session with automatically generated - references. - * Readline based name completion. - * Extensible system of 'magic' commands for controlling the environment and - performing many tasks related either to IPython or the operating system. - * Configuration system with easy switching between different setups (simpler - than changing $PYTHONSTARTUP environment variables every time). - * Session logging and reloading. - * Extensible syntax processing for special purpose situations. - * Access to the system shell with user-extensible alias system. - * Easily embeddable in other Python programs. - * Integrated access to the pdb debugger and the Python profiler. -</longdescription> - <longdescription lang="ja"> -対話的に利用する場合にPythonインタープリタから、より機能が豊富なIPythonへ置き換>える事ができます。 - -主機能: -* 内包的オブジェクトの分析。 -* 入力ヒストリーはセッションを越えて記憶し続けます。 -* 出力は自動作成されるリファレンスのセッション間はキャッシュします。 -* Readlineを利用した名前補完。 -* 環境管理とIPythonまたはOSのどちらかに関係するタスク実行のためのmagic - コマンドを拡張可能なシステム。 -* 異なるセットアップを簡単に交換できるコンフィグレーション・システム。 - (毎回起動時に、$PYTHONSTARTUP環境変数を指定するよりも簡単です。) -* セッション・ロギングとセッション・リローディング。 -* 特別な状況時のための拡張可能な構文解析。 -* ユーザー定義できるエイリアス・システムでシステム・シェルにアクセス。 -* 他のPython言語プログラムを組み込むのが簡単。 -* pdbデバッガとprofilerへの統合アクセス。 -</longdescription> - <use> - <flag name="matplotlib">Add support for <pkg>dev-python/matplotlib</pkg></flag> - <flag name="mongodb">Enable support for MongoDB via <pkg>dev-python/pymongo</pkg></flag> - <flag name="notebook">Install requirements for the web notebook based on <pkg>www-servers/tornado</pkg></flag> - <flag name="nbconvert">Enable support for converting notebooks to various formats using <pkg>app-text/pandoc</pkg></flag> - </use> - <upstream> - <remote-id type="pypi">ipython</remote-id> - <remote-id type="github">ipython/ipython</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/ipython_genutils/ChangeLog b/dev-python/ipython_genutils/ChangeLog index d2bb0d3ef..8b03b2af9 100644 --- a/dev-python/ipython_genutils/ChangeLog +++ b/dev-python/ipython_genutils/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -ipython_genutils-0.1.0.ebuild: + dev-python/ipython_genutils: Moved to tree + 21 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> ipython_genutils-9999.ebuild: dev-python/ipython_genutils: Add ~x86 to KEYWORDS diff --git a/dev-python/ipython_genutils/Manifest b/dev-python/ipython_genutils/Manifest deleted file mode 100644 index 2fed2a29b..000000000 --- a/dev-python/ipython_genutils/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST ipython_genutils-0.1.0.tar.gz 22255 SHA256 3a0624a251a26463c9dfa0ffa635ec51c4265380980d9a50d65611c3c2bd82a6 SHA512 714f850783d5e3c042da409217c0e213cbce249a42fd689c3559745861a991fecb5dbf98a012a4186053d9bb7ca4d52dad742b676eeb5163bc4dfbf256181081 WHIRLPOOL 2696d088cd1f1a8faeb8fa847da8b41205b7823eae02813f2fa8769c392918b0d990007f451bb77704d732b7e700ef02b39144dc0a42db14c6399c076e5db91c diff --git a/dev-python/ipython_genutils/ipython_genutils-0.1.0.ebuild b/dev-python/ipython_genutils/ipython_genutils-0.1.0.ebuild deleted file mode 100644 index 07d3b68e2..000000000 --- a/dev-python/ipython_genutils/ipython_genutils-0.1.0.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -DESCRIPTION="Vestigial utilities from IPython" -HOMEPAGE="https://github.com/ipython/ipython_genutils" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -DEPEND=" - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - ) - " - -python_test() { - nosetests --with-coverage --cover-package=ipython_genutils ipython_genutils || die -} diff --git a/dev-python/ipywidgets/ChangeLog b/dev-python/ipywidgets/ChangeLog index 59829f9df..44ea2e285 100644 --- a/dev-python/ipywidgets/ChangeLog +++ b/dev-python/ipywidgets/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> + -ipywidgets-4.0.2-r1.ebuild, -ipywidgets-4.0.3.ebuild, + -ipywidgets-4.1.0.ebuild: + dev-python/ipywidgets: Drop old + *ipywidgets-4.1.0 (21 Oct 2015) 21 Oct 2015; Marius Brehler <marbre@linux.sungazer.de> diff --git a/dev-python/ipywidgets/Manifest b/dev-python/ipywidgets/Manifest index 84ccde1a3..4905000a4 100644 --- a/dev-python/ipywidgets/Manifest +++ b/dev-python/ipywidgets/Manifest @@ -1,4 +1 @@ -DIST ipywidgets-4.0.2.tar.gz 310309 SHA256 ae6208c6d5b89fd41e159814d25955ee9bf153013a1d538e5ac238aa556bdca9 SHA512 0131207a493bcd9eec8f0f19bbf8961187b3b4f7f9a15f8a353002ba20b9a81c70f0a28e707b4f5c0a144e13247e67a44f32da2d981b1d2f773c5e956d746797 WHIRLPOOL b81f2f3043f4f588717cba56be010e289ab51302fd06170f1ae2b387839c6b610d2b40740ad10515191816e722c1afae9fd301168c2554792f9c527aa170664e -DIST ipywidgets-4.0.3.tar.gz 313200 SHA256 2703239500817e43feb0907a7e0f76c79b8a9ccdcae5973e80f02cb2206fcfcd SHA512 23265def6edb6387ed5d508eab884d0fb8aaeab2f5f3f5961ed645245327907980601083b92cf83e99d2cfe319bb9d6fb0af93097739370e14280bf18b6b4f85 WHIRLPOOL e9c0417addea19ef1407ff81a1fe76c416e281950574366014e140c36a656430303ff373d74b73e4390aa659ce2960ce4eb245bb8224e03de7c9844c7b8128fa -DIST ipywidgets-4.1.0.tar.gz 319423 SHA256 df1b409e216e5c5d25f7db4c4fb6b6aab0cf83f03b2d81d6ade0a79182021589 SHA512 b8a41e7dd8e1a6331de0660845cfd9dd632f7f257ecde572d639606fbe7c6344c419ae146655c11e6d94dee72f63826fef8b98790f2ece2e326e89bbff5183a3 WHIRLPOOL 9934f1be45b8083fb27b5d4eaf1daa4e5390238c5c0a845a9eadaa5596b49debc2e8e99d5bbd62296217b41bda4b85d8219c61c586665dd3cb0f03fb55d84f8c DIST ipywidgets-4.1.1.tar.gz 321646 SHA256 ceeb325e45ade9537c2d115fed9d522e5c6e90bb161592e2f0807375dc661028 SHA512 53b18ae432f72d3305333e92f488f62bb36f83d37fab59e4d103fb77a7ee266d03b96e6de4ffcc2a0f67d6fd892ed1d984c0b188d6cbd527ff3e950e885a5fe4 WHIRLPOOL e1ccb54416bd48fa451cd84f818595dcbe907a3bda79935d884b6f1f226167559cc24f1390d35f8b9a1e3a9af07da5c755c05e93729e27573d030d7ba2def3c3 diff --git a/dev-python/ipywidgets/ipywidgets-4.0.2-r1.ebuild b/dev-python/ipywidgets/ipywidgets-4.0.2-r1.ebuild deleted file mode 100644 index 6b1396616..000000000 --- a/dev-python/ipywidgets/ipywidgets-4.0.2-r1.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="IPython HTML widgets for Jupyter" -HOMEPAGE="http://ipython.org/" - -if [ ${PV} == "9999" ] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/ipython/${PN}.git git://github.com/ipython/${PN}.git" -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="BSD" -SLOT="0" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - test? ( - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - www-client/casperjs - ) - " - -python_test() { - nosetests --with-coverage --cover-package=ipywidgets ipywidgets || die - - "${PYTHON}" -m ipywidgets.jstest || die -} diff --git a/dev-python/ipywidgets/ipywidgets-4.0.3.ebuild b/dev-python/ipywidgets/ipywidgets-4.0.3.ebuild deleted file mode 100644 index 1535d5c9e..000000000 --- a/dev-python/ipywidgets/ipywidgets-4.0.3.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="IPython HTML widgets for Jupyter" -HOMEPAGE="http://ipython.org/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - test? ( - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - www-client/casperjs - ) - " - -python_test() { - nosetests --with-coverage --cover-package=ipywidgets ipywidgets || die - - "${PYTHON}" -m ipywidgets.jstest || die -} diff --git a/dev-python/ipywidgets/ipywidgets-4.1.0.ebuild b/dev-python/ipywidgets/ipywidgets-4.1.0.ebuild deleted file mode 100644 index 1535d5c9e..000000000 --- a/dev-python/ipywidgets/ipywidgets-4.1.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="IPython HTML widgets for Jupyter" -HOMEPAGE="http://ipython.org/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - test? ( - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - www-client/casperjs - ) - " - -python_test() { - nosetests --with-coverage --cover-package=ipywidgets ipywidgets || die - - "${PYTHON}" -m ipywidgets.jstest || die -} diff --git a/dev-python/jupyter/ChangeLog b/dev-python/jupyter/ChangeLog deleted file mode 100644 index a81b063c8..000000000 --- a/dev-python/jupyter/ChangeLog +++ /dev/null @@ -1,9 +0,0 @@ -# ChangeLog for dev-python/jupyter -# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Id$ - -*jupyter-1.0.0 (02 Sep 2015) - - 02 Sep 2015; Sean Vig <sean.v.775@gmail.com> +jupyter-1.0.0.ebuild, - +metadata.xml: - dev-python/jupyter: Initial commit diff --git a/dev-python/jupyter/Manifest b/dev-python/jupyter/Manifest deleted file mode 100644 index 4ba519e93..000000000 --- a/dev-python/jupyter/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST jupyter-1.0.0.tar.gz 12916 SHA256 d9dc4b3318f310e34c82951ea5d6683f67bed7def4b259fafbfe4f1beb1d8e5f SHA512 1f0bc83f7a127c98ccf4b3868814116aa272ea5d0baac52d7a022305af7e2da28ca2b90fa3554ff085d8df3eb6d8b8cde80bf02b8e66064c59900b926d73c520 WHIRLPOOL c648e494556f6d5d3a42594bb4c2fd5701b2f993cf467d6011f67141de2e80d6cccf1adfcfcda6445d8325604e67d6af4465b6e2d79443de67512a2a29360855 diff --git a/dev-python/jupyter/jupyter-1.0.0.ebuild b/dev-python/jupyter/jupyter-1.0.0.ebuild deleted file mode 100644 index 7dfd0060b..000000000 --- a/dev-python/jupyter/jupyter-1.0.0.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -DESCRIPTION="Jupyter metapackage. Install all the Jupyter components in one go" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -IUSE="doc" - -RDEPEND=" - dev-python/notebook[${PYTHON_USEDEP}] - dev-python/qtconsole[${PYTHON_USEDEP}] - dev-python/jupyter_console[${PYTHON_USEDEP}] - dev-python/nbconvert[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - dev-python/ipywidgets[${PYTHON_USEDEP}]" -DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_install_all() { - use doc && HTML_DOCS=( "${S}"/docs/build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/jupyter/metadata.xml b/dev-python/jupyter/metadata.xml deleted file mode 100644 index 00118fe11..000000000 --- a/dev-python/jupyter/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>sci</herd> - <longdescription> -Install the Jupyter system, including the notebook, qtconsole, and the IPython kernel. - </longdescription> - <upstream> - <remote-id type="pypi">jupyter</remote-id> - <remote-id type="github">jupyter/jupyter</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/jupyter_client/ChangeLog b/dev-python/jupyter_client/ChangeLog index 514e85b7f..af7abecc1 100644 --- a/dev-python/jupyter_client/ChangeLog +++ b/dev-python/jupyter_client/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -jupyter_client-4.0.0.ebuild, -jupyter_client-4.1.1.ebuild: + dev-python/jupyter_client: Moved to tree; Drop old + *jupyter_client-4.1.1 (11 Oct 2015) 11 Oct 2015; Sean Vig <sean.v.775@gmail.com> +jupyter_client-4.1.1.ebuild: diff --git a/dev-python/jupyter_client/Manifest b/dev-python/jupyter_client/Manifest deleted file mode 100644 index 8ce850c6f..000000000 --- a/dev-python/jupyter_client/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST jupyter_client-4.0.0.tar.gz 249339 SHA256 a39a4181ea2021daf6e821acae836999ef6e0fefe603813a7a7d4658d2ffa2ac SHA512 460fb992e6ce9767a89f839eafb1fd8a0039b4b6f3735728149c35c340fd2f3ec68feefd648226217fabed2db883e34d995dfe3254db1c41100f5b6232762ddb WHIRLPOOL e556ead2df89203c6b28f3fe6877928a72466eed796ac3e5017303cb35e8148fa8ad88aad12de05d887ee99b359459b974bca44f9d23fda25111c4e56d2abebb -DIST jupyter_client-4.1.1.tar.gz 250227 SHA256 ff1ef5c6c3031a62db46ec6329867b4cb1595e6102a7819b3b5252b0c524bdb8 SHA512 08104fef5fd2522944ac5f1b2140a8267ffd97b0dba518f9fa792c08102ff8dbc4def592150433dfd893aed3596876ff254c9ea17b9b2e7a9622f773bd9d2606 WHIRLPOOL d7164a07a43c5d6cd78b30bedb6ec8e8bc367cca4ddf920fee27edc9337d6f1124ae840546d90d47ad1c0a84bd1677e452925c022cebfa5556c499f7fa8ee18d diff --git a/dev-python/jupyter_client/jupyter_client-4.0.0.ebuild b/dev-python/jupyter_client/jupyter_client-4.0.0.ebuild deleted file mode 100644 index 1ff954901..000000000 --- a/dev-python/jupyter_client/jupyter_client-4.0.0.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Jupyter protocol implementation and client libraries" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}] - dev-python/jupyter_core[${PYTHON_USEDEP}] - >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - dev-python/ipykernel[${PYTHON_USEDEP}] - ) - " - -python_test() { - nosetests --with-coverage jupyter_client || die -} diff --git a/dev-python/jupyter_client/jupyter_client-4.1.1.ebuild b/dev-python/jupyter_client/jupyter_client-4.1.1.ebuild deleted file mode 100644 index 89862c0fb..000000000 --- a/dev-python/jupyter_client/jupyter_client-4.1.1.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Jupyter protocol implementation and client libraries" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}] - dev-python/jupyter_core[${PYTHON_USEDEP}] - >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - dev-python/ipykernel[${PYTHON_USEDEP}] - ) - " - -python_test() { - nosetests --with-coverage jupyter_client || die -} diff --git a/dev-python/jupyter_console/ChangeLog b/dev-python/jupyter_console/ChangeLog index 9ae64c4d2..c3d446958 100644 --- a/dev-python/jupyter_console/ChangeLog +++ b/dev-python/jupyter_console/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -jupyter_console-4.0.3.ebuild: + dev-python/jupyter_console: Moved to tree + *jupyter_console-4.0.3 (11 Oct 2015) 11 Oct 2015; Sean Vig <sean.v.775@gmail.com> +jupyter_console-4.0.3.ebuild, diff --git a/dev-python/jupyter_console/Manifest b/dev-python/jupyter_console/Manifest deleted file mode 100644 index bb6efd81b..000000000 --- a/dev-python/jupyter_console/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST jupyter_console-4.0.3.tar.gz 22090 SHA256 555be6963a8f6431fbe1d424c7ffefee90824758058e4c9a2ab3aa045948eb85 SHA512 da9c311d881bbf61fbcea3c79e4dbdbe00f0f713772d0da4d30e0dec36ff5a6c5cbff3b996770f532c1e9c61ade1b1bf7a6f1ed28188ffd6900f6cc2ce7c0665 WHIRLPOOL 37139a87b182b9100284766ffb6e0b4c4e44b9bc2261a2d466920b0a23cf62d55f6a68cfb77da67a2eb3c316582fa7afaddcce69074b7597122e1c858c9a6c26 diff --git a/dev-python/jupyter_console/jupyter_console-4.0.3.ebuild b/dev-python/jupyter_console/jupyter_console-4.0.3.ebuild deleted file mode 100644 index 0086a624d..000000000 --- a/dev-python/jupyter_console/jupyter_console-4.0.3.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -DESCRIPTION="A terminal-based console frontend for Jupyter kernels" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -RDEPEND=" - dev-python/ipython[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - dev-python/jupyter_client[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - dev-python/pexpect[${PYTHON_USEDEP}] - >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - nosetests --with-coverage --cover-package=jupyter_console jupyter_console || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/jupyter_core/ChangeLog b/dev-python/jupyter_core/ChangeLog index c9aaae2d7..2fb28e059 100644 --- a/dev-python/jupyter_core/ChangeLog +++ b/dev-python/jupyter_core/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -files/jupyter_core-4.0.4-add-test-files.patch, -jupyter_core-4.0.4-r1.ebuild, + -jupyter_core-4.0.6.ebuild: + dev-python/jupyter_core: Moved to tree; Drop old + 21 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> jupyter_core-9999.ebuild: dev-python/jupyter_core: Add ~x86 to KEYWORDS diff --git a/dev-python/jupyter_core/Manifest b/dev-python/jupyter_core/Manifest deleted file mode 100644 index 9e272379d..000000000 --- a/dev-python/jupyter_core/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST jupyter_core-4.0.4-tests-dotipython.patch 187493 SHA256 1415960373e0aa8abb7964faef50418f505aac6f500d8ad69b7cbfaee79d07ca SHA512 da7bf60e91cf0a936c1a83de369ebe58cf6e619b03136a14ee65698f4d1a4eec0301774cd480711aae1478259538d16d8f0023cc0a38e21be30f81841971844e WHIRLPOOL facc13e5ec1ce44029ae71a8d745398d448007cc2fb21e4db9fff2a301dc6f19c800807a5ee26b211084f3aedecb5239d14233bbb1133e4aa9419e02608b55c3 -DIST jupyter_core-4.0.4.tar.gz 21434 SHA256 fcf45478025f34174943993947f51a41ad871ac998a14bf1cb87d8eb61e75c6d SHA512 474f0fd3f5a169ce95af3f9ed839b95ce27943e9284e8cc1ad5c25e3d1e3770065cb066b177657e375ddb92d829375e8235adfc0a54a4e38445bc925f84490ef WHIRLPOOL 453ef6f65e3dd368519aa9313cbeb809ec7a519d02169a36a3c14663e9ae685d5bdbf1637991bf2bcdaa10037fed567bb34c4ed764ccbeb31ceb91d33dbfcfa6 -DIST jupyter_core-4.0.6.tar.gz 55060 SHA256 96a68a3b1d018ff7776270b26b7cb0cfd7a18a53ef2061421daff435707d198c SHA512 e6d7a0293ce6cdd3202b354aae62900683eb0474590980bf3d9c6f89b4b16182e7caee0e42c3feb3de5851535a01394b20725d9428eb105dbc2c34d90e0d398b WHIRLPOOL c1370d386c63665db1a47f1df0e3942c713b4f9e71ad5a2bd8c83bcf1b5dfe937fdadcd606335a989514499b9e6446d92a0bb250b9e972181b12d0d9423ee80a diff --git a/dev-python/jupyter_core/files/jupyter_core-4.0.4-add-test-files.patch b/dev-python/jupyter_core/files/jupyter_core-4.0.4-add-test-files.patch deleted file mode 100644 index d7b448cc0..000000000 --- a/dev-python/jupyter_core/files/jupyter_core-4.0.4-add-test-files.patch +++ /dev/null @@ -1,50 +0,0 @@ -Patch to fix testing. Fixes -https://github.com/gentoo-science/sci/issues/479 - -Upstream issue: -https://github.com/jupyter/jupyter_core/issues/50 - -From 38b01f31f4793f4ccd427f0dee095bcb2a99b3c9 Mon Sep 17 00:00:00 2001 -From: Min RK <benjaminrk@gmail.com> -Date: Tue, 1 Sep 2015 09:28:17 +0200 -Subject: [PATCH] add test files to package data - ---- - setup.py | 14 ++++++++++++++ - 1 file changed, 14 insertions(+) - -diff --git a/setup.py b/setup.py -index 0653dbd..f155663 100644 ---- a/setup.py -+++ b/setup.py -@@ -31,6 +31,19 @@ version_ns = {} - with open(pjoin(here, 'jupyter_core', 'version.py')) as f: - exec(f.read(), {}, version_ns) - -+def find_package_data(): -+ """Find package data (testing support files)""" -+ package_data = {} -+ package_data['jupyter_core.tests'] = test_files = [] -+ test_dir = pjoin('jupyter_core', 'tests') -+ prefix_len = len(test_dir) + len(os.sep) -+ for parent, dirs, files in os.walk(test_dir): -+ if files: -+ test_files.append(pjoin(parent[prefix_len:], '*.*')) -+ -+ return package_data -+ -+package_data = find_package_data() - - setup_args = dict( - name = 'jupyter_core', -@@ -38,6 +51,7 @@ setup_args = dict( - packages = ['jupyter_core', - 'jupyter_core.utils', - 'jupyter_core.tests'], -+ package_data = package_data, - scripts = glob(pjoin('scripts', '*')), - description = "Jupyter core package. A base package on which Jupyter projects rely.", - long_description = """There is no reason to install this package on its own.""", --- -2.4.6 - diff --git a/dev-python/jupyter_core/jupyter_core-4.0.4-r1.ebuild b/dev-python/jupyter_core/jupyter_core-4.0.4-r1.ebuild deleted file mode 100644 index 3df560fd1..000000000 --- a/dev-python/jupyter_core/jupyter_core-4.0.4-r1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) - -inherit distutils-r1 - -DESCRIPTION="Core common functionality of Jupyter projects" -HOMEPAGE="http://jupyter.org" -SRC_URI=" - mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - https://raw.githubusercontent.com/gentoo-science/sci/master/patches/${P}-tests-dotipython.patch" -KEYWORDS="~amd64" - -LICENSE="BSD" -SLOT="0" -IUSE="test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - test? ( dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-cov[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] ) - " - -PATCHES=( - "${FILESDIR}"/${P}-add-test-files.patch - "${DISTDIR}"/${P}-tests-dotipython.patch -) - -python_test() { - distutils_install_for_testing - cd "${TEST_DIR}"/lib || die - py.test jupyter_core || die -} diff --git a/dev-python/jupyter_core/jupyter_core-4.0.6.ebuild b/dev-python/jupyter_core/jupyter_core-4.0.6.ebuild deleted file mode 100644 index 97392a8a5..000000000 --- a/dev-python/jupyter_core/jupyter_core-4.0.6.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -DESCRIPTION="Core common functionality of Jupyter projects" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -RDEPEND=" - dev-python/traitlets[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-cov[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - distutils_install_for_testing - cd "${TEST_DIR}"/lib || die - py.test jupyter_core || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/nbconvert/ChangeLog b/dev-python/nbconvert/ChangeLog index ca549aa0f..5893b221c 100644 --- a/dev-python/nbconvert/ChangeLog +++ b/dev-python/nbconvert/ChangeLog @@ -2,6 +2,14 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> + -files/nbconvert-4.0.0-pandoc-highlighting.patch: + dev-python/nbconvert: Drop old patch + + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -nbconvert-4.0.0-r1.ebuild, -nbconvert-4.1.0.ebuild: + dev-python/nbconvert: Moved to tree + 22 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> nbconvert-9999.ebuild: dev-python/nbconvert: Add ~x86 to KEYWORDS, fixes #561032 diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest deleted file mode 100644 index e1ad5fef7..000000000 --- a/dev-python/nbconvert/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST nbconvert-4.0.0.tar.gz 260424 SHA256 472ad15d1a71f1ef00c4094c11bb93638858fc89fb2c5838b3aa6b67d981b437 SHA512 0f495d75121815282ffe9f67ebf0818ca09790e2d8745e04635c368932d11db07a07d91410b81366a29d3d17ffb98b1ac1bbae18268d448ba494ca2685ec85e6 WHIRLPOOL 1de760f6fc5392fa0dd50834fbf8417c5c3389f904724ba3c4d68df24e44ed84789256193c2fb625527caec2f45893f521e9f86de64a8e3686beef6fb824386e -DIST nbconvert-4.1.0.tar.gz 263948 SHA256 e0296e45293dd127d028f678e3b6aba3f1db3283a134178bdb49eea402d4cf1c SHA512 9761cf8cdf206bd8f27c666d7b520cbd7d805353cf46b212b46ee6053b47ec6728a5926dfe59acef109c8770580c41d51aa5b943a27e72bccecc68a7d7b68bfb WHIRLPOOL 9cc27a45b00ee9914674cd14a279be1691eb8a8538803bdda127513f56dd0ce53b10745f305f8fb82abd2d19efe7c1b0284bf05f8088360d2def6c97db0c1c6e diff --git a/dev-python/nbconvert/files/nbconvert-4.0.0-pandoc-highlighting.patch b/dev-python/nbconvert/files/nbconvert-4.0.0-pandoc-highlighting.patch deleted file mode 100644 index 793856a83..000000000 --- a/dev-python/nbconvert/files/nbconvert-4.0.0-pandoc-highlighting.patch +++ /dev/null @@ -1,37 +0,0 @@ -commit 983473d2e5f71ebef07dab51ae497596af5bc9ac -Author: James Hetherington <jamespjh@googlemail.com> -Date: Mon Aug 31 18:06:46 2015 +0100 - - Add highlighting commands from more recent pandoc - -diff --git a/nbconvert/templates/latex/base.tplx b/nbconvert/templates/latex/base.tplx -index 7d45c5d..a1568c5 100644 ---- a/nbconvert/templates/latex/base.tplx -+++ b/nbconvert/templates/latex/base.tplx -@@ -84,6 +84,26 @@ This template does not define a docclass, the inheriting class must define this. - \newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}} - \newcommand{\NormalTok}[1]{{#1}} - -+ % Additional commands for more recent versions of Pandoc -+ \newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{{#1}}} -+ \newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}} -+ \newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}} -+ \newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{{#1}}} -+ \newcommand{\ImportTok}[1]{{#1}} -+ \newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{{#1}}}} -+ \newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}} -+ \newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}} -+ \newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{{#1}}} -+ \newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}} -+ \newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{{#1}}} -+ \newcommand{\BuiltInTok}[1]{{#1}} -+ \newcommand{\ExtensionTok}[1]{{#1}} -+ \newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{{#1}}} -+ \newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{{#1}}} -+ \newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}} -+ \newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}} -+ -+ - % Define a nice break command that doesn't care if a line doesn't already - % exist. - \def\br{\hspace*{\fill} \\* } diff --git a/dev-python/nbconvert/nbconvert-4.0.0-r1.ebuild b/dev-python/nbconvert/nbconvert-4.0.0-r1.ebuild deleted file mode 100644 index ddbb31e64..000000000 --- a/dev-python/nbconvert/nbconvert-4.0.0-r1.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -MY_PN="nbconvert" - -DESCRIPTION="Converting Jupyter Notebooks" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -PATCHES=( - "${FILESDIR}/${P}"-docs-Makefile.patch - "${FILESDIR}/${P}"-pandoc-highlighting.patch -) - -RDEPEND=" - dev-python/jupyter_core[${PYTHON_USEDEP}] - dev-python/nbformat[${PYTHON_USEDEP}] - dev-python/mistune[${PYTHON_USEDEP}] - dev-python/jinja[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] - dev-python/traitlets[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( - dev-python/ipython[${PYTHON_USEDEP}] - dev-python/jupyter_client[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] - app-text/pandoc - ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - distutils_install_for_testing - cd "${TEST_DIR}"/lib || die - nosetests --with-coverage --cover-package=nbconvert nbconvert || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} - -pkg_postinst() { - if ! has_version app-text/pandoc ; then - einfo "Pandoc is required for converting to formats other than Python," - einfo "HTML, and Markdown. If you need this functionality, install" - einfo "app-text/pandoc." - fi -} diff --git a/dev-python/nbconvert/nbconvert-4.1.0.ebuild b/dev-python/nbconvert/nbconvert-4.1.0.ebuild deleted file mode 100644 index 0eab8bc2a..000000000 --- a/dev-python/nbconvert/nbconvert-4.1.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -MY_PN="nbconvert" - -DESCRIPTION="Converting Jupyter Notebooks" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -PATCHES=( - "${FILESDIR}"/${PN}-4.0.0-docs-Makefile.patch -) - -RDEPEND=" - dev-python/jupyter_core[${PYTHON_USEDEP}] - dev-python/nbformat[${PYTHON_USEDEP}] - dev-python/mistune[${PYTHON_USEDEP}] - dev-python/jinja[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] - dev-python/traitlets[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( - dev-python/ipython[${PYTHON_USEDEP}] - dev-python/jupyter_client[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] - app-text/pandoc - ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - distutils_install_for_testing - cd "${TEST_DIR}"/lib || die - nosetests --with-coverage --cover-package=nbconvert nbconvert || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} - -pkg_postinst() { - if ! has_version app-text/pandoc ; then - einfo "Pandoc is required for converting to formats other than Python," - einfo "HTML, and Markdown. If you need this functionality, install" - einfo "app-text/pandoc." - fi -} diff --git a/dev-python/nbformat/ChangeLog b/dev-python/nbformat/ChangeLog index 934c6c23a..0374cbb0a 100644 --- a/dev-python/nbformat/ChangeLog +++ b/dev-python/nbformat/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -nbformat-4.0.0.ebuild, -nbformat-4.0.1.ebuild: + dev-python/nbformat: Moved to tree + *nbformat-4.0.1 (06 Oct 2015) 06 Oct 2015; Marius Brehler <marbre@linux.sungazer.de> +nbformat-4.0.1.ebuild: diff --git a/dev-python/nbformat/Manifest b/dev-python/nbformat/Manifest deleted file mode 100644 index 847b7d3b2..000000000 --- a/dev-python/nbformat/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST nbformat-4.0.0.tar.gz 106427 SHA256 daf9b990e96863d120aff123361156a316757757b81a8070eb6945e4a9774b2d SHA512 60d690ecd8ab9d5712a1dfc26cbf8aded22000f167afe581842720905b8a97ce71bebeb9e0133be5eadc0975563a9dcf6d9302075308461fd2b3e087b3ff94fa WHIRLPOOL 9210fc1278153d65610d396e0b889111ad083ef2667a05fb4faec268ee64762530ebeb60543f1b493eb25c52d7641cba6c620863780c0bb995537efef2f4bc74 -DIST nbformat-4.0.1.tar.gz 105767 SHA256 5261c957589b9dfcd387c338d59375162ba9ca82c69e378961a1f4e641285db5 SHA512 f73e8cffc61825aa8b7b0ef3b842cba51baf2cdf0c5d0035e2e7cb51f71c6c819f09201367a3b342c2736492dee1e78c519961aaea8f2cc4b5e69a1545085d2a WHIRLPOOL 9b08003c456e00c529b7bf8e786d57a583e53e5a1e7e9eb4c3cc492c5b1d60e76579c9102e6c56749d546a9a124d475687d4ec1d71e0f3634698d5e30499db93 diff --git a/dev-python/nbformat/nbformat-4.0.0.ebuild b/dev-python/nbformat/nbformat-4.0.0.ebuild deleted file mode 100644 index cc116c0dd..000000000 --- a/dev-python/nbformat/nbformat-4.0.0.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) -PYTHON_REQ_USE='sqlite' - -inherit distutils-r1 - -DESCRIPTION="Reference implementation of the Jupyter Notebook format" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -RDEPEND=" - dev-python/jsonschema[${PYTHON_USEDEP}] - dev-python/ipython_genutils[${PYTHON_USEDEP}] - dev-python/traitlets[${PYTHON_USEDEP}] - dev-python/jupyter_core[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/numpydoc[${PYTHON_USEDEP}] - ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - distutils_install_for_testing - cd "${TEST_DIR}"/lib || die - nosetests --with-coverage --cover-package=nbformat nbformat || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/nbformat/nbformat-4.0.1.ebuild b/dev-python/nbformat/nbformat-4.0.1.ebuild deleted file mode 100644 index 449d99c5b..000000000 --- a/dev-python/nbformat/nbformat-4.0.1.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE='sqlite' - -inherit distutils-r1 - -DESCRIPTION="Reference implementation of the Jupyter Notebook format" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -RDEPEND=" - dev-python/jsonschema[${PYTHON_USEDEP}] - dev-python/ipython_genutils[${PYTHON_USEDEP}] - dev-python/traitlets[${PYTHON_USEDEP}] - dev-python/jupyter_core[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/numpydoc[${PYTHON_USEDEP}] - ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - ) - " - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - distutils_install_for_testing - cd "${TEST_DIR}"/lib || die - nosetests --with-coverage --cover-package=nbformat nbformat || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/notebook/ChangeLog b/dev-python/notebook/ChangeLog index be4952250..876f16fb6 100644 --- a/dev-python/notebook/ChangeLog +++ b/dev-python/notebook/ChangeLog @@ -2,6 +2,14 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> + -files/notebook-4.0.4-Don-t-redirect-from-edit-to-files.patch, + -files/notebook-4.0.4-only-redirect-to-editor-for-text-documents.patch, + -files/notebook-4.0.4-set-mime-type-on-files.patch, + -files/notebook-4.0.4-set-model-mimetype-even-when-content-False.patch, + -notebook-4.0.4-r3.ebuild: + dev-python/notebook: Drop old + *notebook-4.0.6 (16 Oct 2015) 16 Oct 2015; Marius Brehler <marbre@linux.sungazer.de> +notebook-4.0.6.ebuild, diff --git a/dev-python/notebook/Manifest b/dev-python/notebook/Manifest index 80201ab4e..896c9f68e 100644 --- a/dev-python/notebook/Manifest +++ b/dev-python/notebook/Manifest @@ -1,2 +1 @@ -DIST notebook-4.0.4.tar.gz 6682601 SHA256 a57852514bce1b1cf41fa0311f6cf894960cf68b083b55e6c408316b598d5648 SHA512 52c1c17a7fe80cd4a392a2d99b852337806d910ac8f821f32defe6e2e0ba55336dccc653f0d848262c5801a2796e6b629d25bb1e9976d76f81b8a38c606a2b05 WHIRLPOOL d0b9fcb0bcc42932c5f3828f3417d4967f3a071a864d35a1cc8813da79991166cf2658f40a955379e278bff85eb4dc82d0760d3745c3f5ff3997f88149da2b31 DIST notebook-4.0.6.tar.gz 6705277 SHA256 f62e7a6afbc00bab3615b927595d27b1874cff3218bddcbab62f97f6dae567c3 SHA512 9ce9ca21adcb967725aeb7a18543ace8aca4e88497d3d2fd708a603511e8ef4a932b39337d134d684df03b273bbc442958a37ced8cd499cb7b97a1c29758eeb0 WHIRLPOOL 764afabfa220d37e048a359952bd9cc4de0b791de782ed7cf2a22e8c0e9719b39630fd5c1c7acbf163715924662805f92b406bf6198600f2c4a35d239a12df11 diff --git a/dev-python/notebook/files/notebook-4.0.4-Don-t-redirect-from-edit-to-files.patch b/dev-python/notebook/files/notebook-4.0.4-Don-t-redirect-from-edit-to-files.patch deleted file mode 100644 index 76d0e61e4..000000000 --- a/dev-python/notebook/files/notebook-4.0.4-Don-t-redirect-from-edit-to-files.patch +++ /dev/null @@ -1,55 +0,0 @@ -Upstream patch to fix -"Maliciously crafted text files in IPython/Jupyter editor". - -http://seclists.org/oss-sec/2015/q3/558 -https://bugs.gentoo.org/show_bug.cgi?id=560708 - - -From 23162fd2895ad7445fdbe095b8fc8633d95ec6e6 Mon Sep 17 00:00:00 2001 -From: Min RK <benjaminrk@gmail.com> -Date: Mon, 20 Jul 2015 12:11:23 -0700 -Subject: [PATCH 4/4] Don't redirect from /edit/ to /files/ - -show failure to decode, instead ---- - notebook/static/edit/js/editor.js | 15 +++------------ - 1 file changed, 3 insertions(+), 12 deletions(-) - -diff --git a/notebook/static/edit/js/editor.js b/notebook/static/edit/js/editor.js -index ddbc2de..421fa57 100644 ---- a/notebook/static/edit/js/editor.js -+++ b/notebook/static/edit/js/editor.js -@@ -90,19 +90,10 @@ function($, - }).catch( - function(error) { - that.events.trigger("file_load_failed.Editor", error); -- if (((error.xhr||{}).responseJSON||{}).reason === 'bad format') { -- window.location = utils.url_path_join( -- that.base_url, -- 'files', -- that.file_path -- ); -- } else { -- console.warn('Error while loading: the error was:') -- console.warn(error) -- } -+ console.warn('Error loading: ', error); - cm.setValue("Error! " + error.message + - "\nSaving disabled.\nSee Console for more details."); -- cm.setOption('readOnly','nocursor') -+ cm.setOption('readOnly','nocursor'); - that.save_enabled = false; - } - ); -@@ -186,7 +177,7 @@ function($, - Editor.prototype._clean_state = function(){ - var clean = this.codemirror.isClean(this.generation); - if (clean === this.clean){ -- return -+ return; - } else { - this.clean = clean; - } --- -2.4.6 - diff --git a/dev-python/notebook/files/notebook-4.0.4-only-redirect-to-editor-for-text-documents.patch b/dev-python/notebook/files/notebook-4.0.4-only-redirect-to-editor-for-text-documents.patch deleted file mode 100644 index 899cd3165..000000000 --- a/dev-python/notebook/files/notebook-4.0.4-only-redirect-to-editor-for-text-documents.patch +++ /dev/null @@ -1,38 +0,0 @@ -Upstream patch to fix -"Maliciously crafted text files in IPython/Jupyter editor". - -http://seclists.org/oss-sec/2015/q3/558 -https://bugs.gentoo.org/show_bug.cgi?id=560708 - - -From 4f0b3b8c10811d460efc67cf61e9f4df83d2a0a7 Mon Sep 17 00:00:00 2001 -From: Min RK <benjaminrk@gmail.com> -Date: Mon, 20 Jul 2015 12:11:04 -0700 -Subject: [PATCH 3/4] only redirect to editor for text documents - -treat unidentified mime-types as text ---- - notebook/static/tree/js/notebooklist.js | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js -index 6308d7f..0b71f42 100644 ---- a/notebook/static/tree/js/notebooklist.js -+++ b/notebook/static/tree/js/notebooklist.js -@@ -536,6 +536,13 @@ define([ - icon = 'running_' + icon; - } - var uri_prefix = NotebookList.uri_prefixes[model.type]; -+ if (model.type === 'file' && -+ model.mimetype && model.mimetype.substr(0,5) !== 'text/' -+ ) { -+ // send text/unidentified files to editor, others go to raw viewer -+ uri_prefix = 'files'; -+ } -+ - item.find(".item_icon").addClass(icon).addClass('icon-fixed-width'); - var link = item.find("a.item_link") - .attr('href', --- -2.4.6 - diff --git a/dev-python/notebook/files/notebook-4.0.4-set-mime-type-on-files.patch b/dev-python/notebook/files/notebook-4.0.4-set-mime-type-on-files.patch deleted file mode 100644 index 055685f8e..000000000 --- a/dev-python/notebook/files/notebook-4.0.4-set-mime-type-on-files.patch +++ /dev/null @@ -1,35 +0,0 @@ -Upstream patch to fix -"Maliciously crafted text files in IPython/Jupyter editor". - -http://seclists.org/oss-sec/2015/q3/558 -https://bugs.gentoo.org/show_bug.cgi?id=560708 - - -From 6ec427b5234bfc6c97065f130f762aee8ee67df4 Mon Sep 17 00:00:00 2001 -From: Min RK <benjaminrk@gmail.com> -Date: Mon, 20 Jul 2015 12:10:10 -0700 -Subject: [PATCH 1/4] set mime-type on /files/ - ---- - notebook/files/handlers.py | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/notebook/files/handlers.py b/notebook/files/handlers.py -index def3ec6..9d27261 100644 ---- a/notebook/files/handlers.py -+++ b/notebook/files/handlers.py -@@ -40,6 +40,11 @@ class FilesHandler(IPythonHandler): - cur_mime = mimetypes.guess_type(name)[0] - if cur_mime is not None: - self.set_header('Content-Type', cur_mime) -+ else: -+ if model['format'] == 'base64': -+ self.set_header('Content-Type', 'application/octet-stream') -+ else: -+ self.set_header('Content-Type', 'text/plain') - - if model['format'] == 'base64': - b64_bytes = model['content'].encode('ascii') --- -2.4.6 - diff --git a/dev-python/notebook/files/notebook-4.0.4-set-model-mimetype-even-when-content-False.patch b/dev-python/notebook/files/notebook-4.0.4-set-model-mimetype-even-when-content-False.patch deleted file mode 100644 index 46ef4272c..000000000 --- a/dev-python/notebook/files/notebook-4.0.4-set-model-mimetype-even-when-content-False.patch +++ /dev/null @@ -1,64 +0,0 @@ -Upstream patch to fix -"Maliciously crafted text files in IPython/Jupyter editor". - -http://seclists.org/oss-sec/2015/q3/558 -https://bugs.gentoo.org/show_bug.cgi?id=560708 - - -From f64aa490e3574ee2c2b504d0e0b39641c709a34f Mon Sep 17 00:00:00 2001 -From: Min RK <benjaminrk@gmail.com> -Date: Mon, 20 Jul 2015 12:10:25 -0700 -Subject: [PATCH 2/4] set model mimetype, even when content=False - ---- - notebook/services/contents/filemanager.py | 12 +++++++----- - notebook/services/contents/handlers.py | 3 --- - 2 files changed, 7 insertions(+), 8 deletions(-) - -diff --git a/notebook/services/contents/filemanager.py b/notebook/services/contents/filemanager.py -index ff8ac7d..637ff52 100644 ---- a/notebook/services/contents/filemanager.py -+++ b/notebook/services/contents/filemanager.py -@@ -278,18 +278,20 @@ class FileContentsManager(FileManagerMixin, ContentsManager): - model['type'] = 'file' - - os_path = self._get_os_path(path) -+ model['mimetype'] = mimetypes.guess_type(os_path)[0] - - if content: - content, format = self._read_file(os_path, format) -- default_mime = { -- 'text': 'text/plain', -- 'base64': 'application/octet-stream' -- }[format] -+ if model['mimetype'] is None: -+ default_mime = { -+ 'text': 'text/plain', -+ 'base64': 'application/octet-stream' -+ }[format] -+ model['mimetype'] = default_mime - - model.update( - content=content, - format=format, -- mimetype=mimetypes.guess_type(os_path)[0] or default_mime, - ) - - return model -diff --git a/notebook/services/contents/handlers.py b/notebook/services/contents/handlers.py -index 2a0a4cc..521aae5 100644 ---- a/notebook/services/contents/handlers.py -+++ b/notebook/services/contents/handlers.py -@@ -55,9 +55,6 @@ def validate_model(model, expect_content): - ) - - maybe_none_keys = ['content', 'format'] -- if model['type'] == 'file': -- # mimetype should be populated only for file models -- maybe_none_keys.append('mimetype') - if expect_content: - errors = [key for key in maybe_none_keys if model[key] is None] - if errors: --- -2.4.6 - diff --git a/dev-python/notebook/notebook-4.0.4-r3.ebuild b/dev-python/notebook/notebook-4.0.4-r3.ebuild deleted file mode 100644 index 45820badd..000000000 --- a/dev-python/notebook/notebook-4.0.4-r3.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Jupyter Interactive Notebook" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" -RDEPEND=" - >=dev-libs/mathjax-2.4 - dev-python/jinja[${PYTHON_USEDEP}] - >=dev-python/terminado-0.3.3[${PYTHON_USEDEP}] - >=www-servers/tornado-4.0[${PYTHON_USEDEP}] - dev-python/ipython_genutils[${PYTHON_USEDEP}] - dev-python/traitlets[${PYTHON_USEDEP}] - dev-python/jupyter_core[${PYTHON_USEDEP}] - dev-python/jupyter_client[${PYTHON_USEDEP}] - dev-python/nbformat[${PYTHON_USEDEP}] - dev-python/nbconvert[${PYTHON_USEDEP}] - dev-python/ipykernel[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) - >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - ) - doc? ( - app-text/pandoc - >=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] - >=dev-python/sphinx-1.1[${PYTHON_USEDEP}] - ) - " - -PATCHES=( - "${FILESDIR}/${P}"-set-mime-type-on-files.patch - "${FILESDIR}/${P}"-set-model-mimetype-even-when-content-False.patch - "${FILESDIR}/${P}"-only-redirect-to-editor-for-text-documents.patch - "${FILESDIR}/${P}"-Don-t-redirect-from-edit-to-files.patch -) - -python_prepare_all() { - sed \ - -e "/import setup/s:$:\nimport setuptools:g" \ - -i setup.py || die - - # disable bundled mathjax - sed -i 's/^.*MathJax.*$//' bower.json || die - sed -i 's/mj(/#mj(/' setupbase.py || die - - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - nosetests --with-coverage --cover-package=notebook notebook || die -} - -python_install() { - distutils-r1_python_install - - ln -sf "${EPREFIX}/usr/share/mathjax" "${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} - -pkg_preinst() { - # remove old mathjax folder if present - rm -rf "${EROOT}"/usr/lib*/python*/site-packages/notebook/static/components/MathJax -} diff --git a/dev-python/pickleshare/ChangeLog b/dev-python/pickleshare/ChangeLog index d7c56ecc6..52d018e0c 100644 --- a/dev-python/pickleshare/ChangeLog +++ b/dev-python/pickleshare/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -pickleshare-0.5.ebuild: + dev-python/pickleshare: Moved to tree + 21 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> pickleshare-9999.ebuild: dev-python/pickleshare: Add ~x86 to KEYWORDS diff --git a/dev-python/pickleshare/Manifest b/dev-python/pickleshare/Manifest deleted file mode 100644 index 79e862d1c..000000000 --- a/dev-python/pickleshare/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pickleshare-0.5.tar.gz 4441 SHA256 c0be5745035d437dbf55a96f60b7712345b12423f7d0951bd7d8dc2141ca9286 SHA512 1021b76591b5b1d6c777e03c9544fea63602f719b786a2a2e73590f8e8275156fa69b336adf81a6e8abcaad2263eacd76ce4abf2ceff04126ff6b1ffd96cb4e3 WHIRLPOOL 07907feb8dab2dfbfc74e43d17cc076027ab450091a8dd4af197019c6c46e268eda1d5761ab22fc774e37090ab7d51212d82ba284d89018fbc0f52c38f235c62 diff --git a/dev-python/pickleshare/pickleshare-0.5.ebuild b/dev-python/pickleshare/pickleshare-0.5.ebuild deleted file mode 100644 index 7fd09f4e3..000000000 --- a/dev-python/pickleshare/pickleshare-0.5.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -DESCRIPTION="A small 'shelve' like datastore with concurrency support" -HOMEPAGE="https://github.com/pickleshare/pickleshare" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -RDEPEND=" - dev-python/path-py[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - test? ( dev-python/pytest[${PYTHON_USEDEP}] )" - -# test_pickleshare.py is not included in the pickleshare-0.5 source -# we fetched from pipy -RESTRICT="test" - -python_test() { - distutils_install_for_testing - cd "${TEST_DIR}"/lib || die - cp "${S}"/test_pickleshare.py "${TEST_DIR}"/lib/ || die - py.test || die -} diff --git a/dev-python/qtconsole/ChangeLog b/dev-python/qtconsole/ChangeLog index 565b46606..4d10198be 100644 --- a/dev-python/qtconsole/ChangeLog +++ b/dev-python/qtconsole/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -qtconsole-4.0.1-r1.ebuild, -qtconsole-4.1.1.ebuild: + dev-python/qtconsole: Moved to tree + *qtconsole-4.1.1 (27 Nov 2015) 27 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> diff --git a/dev-python/qtconsole/Manifest b/dev-python/qtconsole/Manifest deleted file mode 100644 index b85111084..000000000 --- a/dev-python/qtconsole/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST qtconsole-4.0.1.tar.gz 400542 SHA256 7d2cf976bb960df11f413709b5b5b809365c48426110e946d0c12117e6ced3a5 SHA512 2ffc913e627122c9fc0a6a11f0ad7e0337a4490cc19b3e58aeefbc01be4b8d79d52e2111fe47f18e0013bbc86c73bb3252d9f993ec14c1d57728ec9a2df33ddd WHIRLPOOL debecb30900dee4cdad2db2199f4c2f1ded606591548432af648012fe86bba15982c5c5e484bcfefda2d1c8322a1474e6c593ea1a5f2231f573b6a9dd6e04a6b -DIST qtconsole-4.1.1.tar.gz 406257 SHA256 741906acae9e02c0df9138ac88b621ef22e438565aa96d783a9ef88faec3de46 SHA512 2848eb8d3a8816a47ca422b24837372899864e750336509f3d8444333d0783bae46b9917258cab14d4e09d91d5068a7772fb849a267e1a7d6e282c7c75e9f4e9 WHIRLPOOL 1a3a638be2bdea3f9ab6d625edd110ef698a84cfdf3b1f4101375faf8ed60a0e8e9ab6e297575dab8e2e6389107ba62a6bb338c78934780e19dd4c498aee9eb9 diff --git a/dev-python/qtconsole/qtconsole-4.0.1-r1.ebuild b/dev-python/qtconsole/qtconsole-4.0.1-r1.ebuild deleted file mode 100644 index 35469c150..000000000 --- a/dev-python/qtconsole/qtconsole-4.0.1-r1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Qt-based console for Jupyter with support for rich media output" -HOMEPAGE="http://jupyter.org" - -if [ ${PV} == "9999" ] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/jupyter/${PN}.git git://github.com/jupyter/${PN}.git" -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -RDEPEND=" - dev-python/ipykernel[${PYTHON_USEDEP}] - dev-python/jupyter_client[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( - dev-python/ipython[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] - ) - test? ( - >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] - ) - || ( - dev-python/pyside[${PYTHON_USEDEP},svg] - dev-python/PyQt4[${PYTHON_USEDEP},svg] - dev-python/PyQt5[${PYTHON_USEDEP},svg] - ) - dev-python/pygments[${PYTHON_USEDEP}] - >=dev-python/pyzmq-13[${PYTHON_USEDEP}] - " -PDEPEND="dev-python/ipython[${PYTHON_USEDEP}]" - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - nosetests --with-coverage --cover-package qtconsole qtconsole || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/qtconsole/qtconsole-4.1.1.ebuild b/dev-python/qtconsole/qtconsole-4.1.1.ebuild deleted file mode 100644 index 6c2304247..000000000 --- a/dev-python/qtconsole/qtconsole-4.1.1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Qt-based console for Jupyter with support for rich media output" -HOMEPAGE="http://jupyter.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc test" - -RDEPEND=" - dev-python/ipykernel[${PYTHON_USEDEP}] - >=dev-python/jupyter_client-4.1.1[${PYTHON_USEDEP}] - " -DEPEND="${RDEPEND} - doc? ( - >=dev-python/ipython-4.0.0-r2[${PYTHON_USEDEP}] - >=dev-python/sphinx-1.3.1-r1[${PYTHON_USEDEP}] - ) - test? ( - >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] - ) - || ( - dev-python/pyside[${PYTHON_USEDEP},svg] - dev-python/PyQt4[${PYTHON_USEDEP},svg] - dev-python/PyQt5[${PYTHON_USEDEP},svg] - ) - dev-python/pygments[${PYTHON_USEDEP}] - >=dev-python/pyzmq-13[${PYTHON_USEDEP}] - " -PDEPEND="dev-python/ipython[${PYTHON_USEDEP}]" - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - nosetests --with-coverage --cover-package qtconsole qtconsole || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/testpath/ChangeLog b/dev-python/testpath/ChangeLog index 1a53cdd40..edc631fc9 100644 --- a/dev-python/testpath/ChangeLog +++ b/dev-python/testpath/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -testpath-0.2.ebuild: + dev-python/testpath: Moved to tree + 21 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> testpath-9999.ebuild: dev-python/testpath: Add ~x86 to KEYWORDS diff --git a/dev-python/testpath/Manifest b/dev-python/testpath/Manifest deleted file mode 100644 index 665ec3870..000000000 --- a/dev-python/testpath/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST testpath-0.2.tar.gz 13732 SHA256 a5388cc7c8370b1f11298c1d513b3d2b9e2f390607a7c39963e6e3ba9f1b7012 SHA512 cc211bdc8f31ff4c286324e37bbce7fd84e19447d9735f396ce67f7568dd1d133be732c1fd7a08928c94566279d0f293a0caeed6a58ae6cd3dc293035fe164ea WHIRLPOOL 6b87b1c5ba590e6b19968e823dee22d7bbe0411124c1290593eb5efd78b5af06c51853d3359f339c4ca60b2842c409a1fcd0ff45c59f2e7e07f557534d78fcaa diff --git a/dev-python/testpath/testpath-0.2.ebuild b/dev-python/testpath/testpath-0.2.ebuild deleted file mode 100644 index a3ee76529..000000000 --- a/dev-python/testpath/testpath-0.2.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -DESCRIPTION="Test utilities for code working with files and commands" -HOMEPAGE="http://jupyter.org" -SRC_URI="https://github.com/jupyter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64 ~x86" - -LICENSE="BSD" -SLOT="0" -IUSE="doc test" - -DEPEND=" - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - virtual/python-pathlib[${PYTHON_USEDEP}] - ) - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - " - -PATCHES=( - "${FILESDIR}/${P}"-setup.py.patch - ) - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die - fi - -distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C doc html -} - -python_install_all() { - use doc && HTML_DOCS=( doc/_build/html/. ) - distutils-r1_python_install_all - } - -python_test() { - distutils_install_for_testing - cd "${TEST_DIR}"/lib || die - cp -r "${S}"/tests "${TEST_DIR}"/lib/ || die - py.test || die -} diff --git a/dev-python/traitlets/ChangeLog b/dev-python/traitlets/ChangeLog index a3b105eb4..74f857f12 100644 --- a/dev-python/traitlets/ChangeLog +++ b/dev-python/traitlets/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 28 Nov 2015; Marius Brehler <marbre@linux.sungazer.de> -Manifest, + -traitlets-4.0.0.ebuild: + dev-python/traitlets: Moved to tree + 21 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> traitlets-9999.ebuild: dev-python/traitlets: Add ~x86 to KEYWORDS diff --git a/dev-python/traitlets/Manifest b/dev-python/traitlets/Manifest deleted file mode 100644 index 76dd32ce4..000000000 --- a/dev-python/traitlets/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST traitlets-4.0.0.tar.gz 63701 SHA256 0b140b4a94a4f1951887d9bce4650da211f79600fc9fdb422acc90c5bbe0233b SHA512 559730dbe9f5f0e75c867cd514c91a3e862a23a9e019d3883b4be66b6208980a583f39cceca4f20e409bd44335a367e7fd5654db0128bb7a735311e6b2c32f24 WHIRLPOOL 492a7a561649ea1a43ce5f45abf13e74d8ace7937e2cf0956b00fe1f650a541af8da0df5d8327bb071c4f03650a44c7ca548e8c61ccf95cea557516fa6d5b862 diff --git a/dev-python/traitlets/traitlets-4.0.0.ebuild b/dev-python/traitlets/traitlets-4.0.0.ebuild deleted file mode 100644 index 5a9720663..000000000 --- a/dev-python/traitlets/traitlets-4.0.0.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) - -inherit distutils-r1 - -DESCRIPTION="A configuration system for Python applications" -HOMEPAGE="https://github.com/ipython/traitlets" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc test" - -RDEPEND=" - dev-python/decorator[${PYTHON_USEDEP}] - dev-python/ipython_genutils[${PYTHON_USEDEP}] - " -DEPEND=" - doc? ( - dev-python/ipython_genutils[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] - ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] - )" - -python_prepare_all() { - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - nosetests --with-coverage --cover-package traitlets traitlets || die -} - -python_install_all() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} diff --git a/patches/jupyter_core-4.0.4-tests-dotipython.patch b/patches/jupyter_core-4.0.4-tests-dotipython.patch deleted file mode 100644 index de84ce9af..000000000 --- a/patches/jupyter_core-4.0.4-tests-dotipython.patch +++ /dev/null @@ -1,4743 +0,0 @@ -Patch to add tests/dotipython* data, which is not shipped -with pypi. -Fixes https://github.com/gentoo-science/sci/issues/479 - -Patch by Marius Brehler. - ---- jupyter_core/tests/dotipython/nbextensions/myext.js -+++ jupyter_core/tests/dotipython/nbextensions/myext.js -@@ -0,0 +1 @@ -+var hello; - ---- jupyter_core/tests/dotipython/profile_default/ipython_config.py -+++ jupyter_core/tests/dotipython/profile_default/ipython_config.py -@@ -0,0 +1,549 @@ -+# Configuration file for ipython. -+ -+c = get_config() -+ -+#------------------------------------------------------------------------------ -+# InteractiveShellApp configuration -+#------------------------------------------------------------------------------ -+ -+# A Mixin for applications that start InteractiveShell instances. -+# -+# Provides configurables for loading extensions and executing files as part of -+# configuring a Shell environment. -+# -+# The following methods should be called by the :meth:`initialize` method of the -+# subclass: -+# -+# - :meth:`init_path` -+# - :meth:`init_shell` (to be implemented by the subclass) -+# - :meth:`init_gui_pylab` -+# - :meth:`init_extensions` -+# - :meth:`init_code` -+ -+# lines of code to run at IPython startup. -+# c.InteractiveShellApp.exec_lines = [] -+ -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be -+# hidden from tools like %who? -+# c.InteractiveShellApp.hide_initial_ns = True -+ -+# A list of dotted module names of IPython extensions to load. -+# c.InteractiveShellApp.extensions = [] -+ -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx', -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx'). -+# c.InteractiveShellApp.gui = None -+ -+# A file to be run -+# c.InteractiveShellApp.file_to_run = '' -+ -+# Configure matplotlib for interactive use with the default matplotlib backend. -+# c.InteractiveShellApp.matplotlib = None -+ -+# Reraise exceptions encountered loading IPython extensions? -+# c.InteractiveShellApp.reraise_ipython_extension_failures = False -+ -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython -+# startup. -+# c.InteractiveShellApp.exec_PYTHONSTARTUP = True -+ -+# Pre-load matplotlib and numpy for interactive use, selecting a particular -+# matplotlib backend and loop integration. -+# c.InteractiveShellApp.pylab = None -+ -+# Run the module as a script. -+# c.InteractiveShellApp.module_to_run = '' -+ -+# dotted module name of an IPython extension to load. -+# c.InteractiveShellApp.extra_extension = '' -+ -+# List of files to run at IPython startup. -+# c.InteractiveShellApp.exec_files = [] -+ -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and -+# an ``import *`` is done from numpy and pylab, when using pylab mode. -+# -+# When False, pylab mode should not import any names into the user namespace. -+# c.InteractiveShellApp.pylab_import_all = True -+ -+# Execute the given command string. -+# c.InteractiveShellApp.code_to_run = '' -+ -+#------------------------------------------------------------------------------ -+# TerminalIPythonApp configuration -+#------------------------------------------------------------------------------ -+ -+# TerminalIPythonApp will inherit config from: BaseIPythonApplication, -+# Application, InteractiveShellApp -+ -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be -+# hidden from tools like %who? -+# c.TerminalIPythonApp.hide_initial_ns = True -+ -+# A list of dotted module names of IPython extensions to load. -+# c.TerminalIPythonApp.extensions = [] -+ -+# Execute the given command string. -+# c.TerminalIPythonApp.code_to_run = '' -+ -+# The date format used by logging formatters for %(asctime)s -+# c.TerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S' -+ -+# Reraise exceptions encountered loading IPython extensions? -+# c.TerminalIPythonApp.reraise_ipython_extension_failures = False -+ -+# Set the log level by value or name. -+# c.TerminalIPythonApp.log_level = 30 -+ -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython -+# startup. -+# c.TerminalIPythonApp.exec_PYTHONSTARTUP = True -+ -+# Pre-load matplotlib and numpy for interactive use, selecting a particular -+# matplotlib backend and loop integration. -+# c.TerminalIPythonApp.pylab = None -+ -+# Run the module as a script. -+# c.TerminalIPythonApp.module_to_run = '' -+ -+# Whether to display a banner upon starting IPython. -+# c.TerminalIPythonApp.display_banner = True -+ -+# dotted module name of an IPython extension to load. -+# c.TerminalIPythonApp.extra_extension = '' -+ -+# Create a massive crash report when IPython encounters what may be an internal -+# error. The default is to append a short message to the usual traceback -+# c.TerminalIPythonApp.verbose_crash = False -+ -+# Whether to overwrite existing config files when copying -+# c.TerminalIPythonApp.overwrite = False -+ -+# The IPython profile to use. -+# c.TerminalIPythonApp.profile = 'default' -+ -+# If a command or file is given via the command-line, e.g. 'ipython foo.py', -+# start an interactive shell after executing the file or command. -+# c.TerminalIPythonApp.force_interact = False -+ -+# List of files to run at IPython startup. -+# c.TerminalIPythonApp.exec_files = [] -+ -+# Start IPython quickly by skipping the loading of config files. -+# c.TerminalIPythonApp.quick = False -+ -+# The Logging format template -+# c.TerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s' -+ -+# Whether to install the default config files into the profile dir. If a new -+# profile is being created, and IPython contains config files for that profile, -+# then they will be staged into the new directory. Otherwise, default config -+# files will be automatically generated. -+# c.TerminalIPythonApp.copy_config_files = False -+ -+# Path to an extra config file to load. -+# -+# If specified, load this config file in addition to any other IPython config. -+# c.TerminalIPythonApp.extra_config_file = '' -+ -+# lines of code to run at IPython startup. -+# c.TerminalIPythonApp.exec_lines = [] -+ -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx', -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx'). -+# c.TerminalIPythonApp.gui = None -+ -+# A file to be run -+# c.TerminalIPythonApp.file_to_run = '' -+ -+# Configure matplotlib for interactive use with the default matplotlib backend. -+# c.TerminalIPythonApp.matplotlib = None -+ -+# Suppress warning messages about legacy config files -+# c.TerminalIPythonApp.ignore_old_config = False -+ -+# The name of the IPython directory. This directory is used for logging -+# configuration (through profiles), history storage, etc. The default is usually -+# $HOME/.ipython. This option can also be specified through the environment -+# variable IPYTHONDIR. -+# c.TerminalIPythonApp.ipython_dir = '' -+ -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and -+# an ``import *`` is done from numpy and pylab, when using pylab mode. -+# -+# When False, pylab mode should not import any names into the user namespace. -+# c.TerminalIPythonApp.pylab_import_all = True -+ -+#------------------------------------------------------------------------------ -+# TerminalInteractiveShell configuration -+#------------------------------------------------------------------------------ -+ -+# TerminalInteractiveShell will inherit config from: InteractiveShell -+ -+# -+# c.TerminalInteractiveShell.object_info_string_level = 0 -+ -+# -+# c.TerminalInteractiveShell.separate_out = '' -+ -+# Automatically call the pdb debugger after every exception. -+# c.TerminalInteractiveShell.pdb = False -+ -+# -+# c.TerminalInteractiveShell.ipython_dir = '' -+ -+# -+# c.TerminalInteractiveShell.history_length = 10000 -+ -+# -+# c.TerminalInteractiveShell.readline_remove_delims = '-/~' -+ -+# auto editing of files with syntax errors. -+# c.TerminalInteractiveShell.autoedit_syntax = False -+ -+# If True, anything that would be passed to the pager will be displayed as -+# regular output instead. -+# c.TerminalInteractiveShell.display_page = False -+ -+# -+# c.TerminalInteractiveShell.debug = False -+ -+# -+# c.TerminalInteractiveShell.separate_in = '\n' -+ -+# Start logging to the default log file in overwrite mode. Use `logappend` to -+# specify a log file to **append** logs to. -+# c.TerminalInteractiveShell.logstart = False -+ -+# Set the size of the output cache. The default is 1000, you can change it -+# permanently in your config file. Setting it to 0 completely disables the -+# caching system, and the minimum value accepted is 20 (if you provide a value -+# less than 20, it is reset to 0 and a warning is issued). This limit is -+# defined because otherwise you'll spend more time re-flushing a too small cache -+# than working -+# c.TerminalInteractiveShell.cache_size = 1000 -+ -+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix, -+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a -+# direct exit without any confirmation. -+# c.TerminalInteractiveShell.confirm_exit = True -+ -+# The shell program to be used for paging. -+# c.TerminalInteractiveShell.pager = 'less' -+ -+# -+# c.TerminalInteractiveShell.wildcards_case_sensitive = True -+ -+# Deprecated, use PromptManager.justify -+# c.TerminalInteractiveShell.prompts_pad_left = True -+ -+# The name of the logfile to use. -+# c.TerminalInteractiveShell.logfile = '' -+ -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run -+# interactively (displaying output from expressions). -+# c.TerminalInteractiveShell.ast_node_interactivity = 'last_expr' -+ -+# -+# c.TerminalInteractiveShell.quiet = False -+ -+# Save multi-line entries as one entry in readline history -+# c.TerminalInteractiveShell.multiline_history = True -+ -+# Deprecated, use PromptManager.in_template -+# c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: ' -+ -+# -+# c.TerminalInteractiveShell.readline_use = True -+ -+# Enable magic commands to be called without the leading %. -+# c.TerminalInteractiveShell.automagic = True -+ -+# The part of the banner to be printed before the profile -+# c.TerminalInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n' -+ -+# Make IPython automatically call any callable object even if you didn't type -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically. -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where -+# it is not applied if there are no more arguments on the line, and '2' for -+# 'full' autocall, where all callable objects are automatically called (even if -+# no arguments are present). -+# c.TerminalInteractiveShell.autocall = 0 -+ -+# Autoindent IPython code entered interactively. -+# c.TerminalInteractiveShell.autoindent = True -+ -+# Set the color scheme (NoColor, Linux, or LightBG). -+# c.TerminalInteractiveShell.colors = 'LightBG' -+ -+# Set the editor used by IPython (default to $EDITOR/vi/notepad). -+# c.TerminalInteractiveShell.editor = 'mate -w' -+ -+# Use colors for displaying information about objects. Because this information -+# is passed through a pager (like 'less'), and some pagers get confused with -+# color codes, this capability can be turned off. -+# c.TerminalInteractiveShell.color_info = True -+ -+# -+# c.TerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard'] -+ -+# Deprecated, use PromptManager.in2_template -+# c.TerminalInteractiveShell.prompt_in2 = ' .\\D.: ' -+ -+# -+# c.TerminalInteractiveShell.separate_out2 = '' -+ -+# The part of the banner to be printed after the profile -+# c.TerminalInteractiveShell.banner2 = '' -+ -+# Start logging to the given file in append mode. Use `logfile` to specify a log -+# file to **overwrite** logs to. -+# c.TerminalInteractiveShell.logappend = '' -+ -+# Don't call post-execute functions that have failed in the past. -+# c.TerminalInteractiveShell.disable_failing_post_execute = False -+ -+# Deprecated, use PromptManager.out_template -+# c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: ' -+ -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload -+# module which reloads changes in modules recursively (it replaces the reload() -+# function, so you don't need to change anything to use it). deep_reload() -+# forces a full reload of modules whose code may have changed, which the default -+# reload() function does not. When deep_reload is off, IPython will use the -+# normal reload(), but deep_reload will still be available as dreload(). -+# c.TerminalInteractiveShell.deep_reload = False -+ -+# -+# c.TerminalInteractiveShell.xmode = 'Context' -+ -+# Show rewritten input, e.g. for autocall. -+# c.TerminalInteractiveShell.show_rewritten_input = True -+ -+# Number of lines of your screen, used to control printing of very long strings. -+# Strings longer than this number of lines will be sent through a pager instead -+# of directly printed. The default value for this is 0, which means IPython -+# will auto-detect your screen size every time it needs to print certain -+# potentially long strings (this doesn't change the behavior of the 'print' -+# keyword, it's only triggered internally). If for some reason this isn't -+# working well (it needs curses support), specify it yourself. Otherwise don't -+# change the default. -+# c.TerminalInteractiveShell.screen_length = 0 -+ -+# A list of ast.NodeTransformer subclass instances, which will be applied to -+# user input before code is run. -+# c.TerminalInteractiveShell.ast_transformers = [] -+ -+# Enable auto setting the terminal title. -+# c.TerminalInteractiveShell.term_title = False -+ -+#------------------------------------------------------------------------------ -+# PromptManager configuration -+#------------------------------------------------------------------------------ -+ -+# This is the primary interface for producing IPython's prompts. -+ -+# -+# c.PromptManager.color_scheme = 'Linux' -+ -+# Continuation prompt. -+# c.PromptManager.in2_template = ' .\\D.: ' -+ -+# Input prompt. '\#' will be transformed to the prompt number -+# c.PromptManager.in_template = 'In [\\#]: ' -+ -+# Output prompt. '\#' will be transformed to the prompt number -+# c.PromptManager.out_template = 'Out[\\#]: ' -+ -+# If True (default), each prompt will be right-aligned with the preceding one. -+# c.PromptManager.justify = True -+ -+#------------------------------------------------------------------------------ -+# HistoryManager configuration -+#------------------------------------------------------------------------------ -+ -+# A class to organize all history-related functionality in one place. -+ -+# HistoryManager will inherit config from: HistoryAccessor -+ -+# Options for configuring the SQLite connection -+# -+# These options are passed as keyword args to sqlite3.connect when establishing -+# database conenctions. -+# c.HistoryManager.connection_options = {} -+ -+# Should the history database include output? (default: no) -+# c.HistoryManager.db_log_output = False -+ -+# enable the SQLite history -+# -+# set enabled=False to disable the SQLite history, in which case there will be -+# no stored history, no SQLite connection, and no background saving thread. -+# This may be necessary in some threaded environments where IPython is embedded. -+# c.HistoryManager.enabled = True -+ -+# Path to file to use for SQLite history database. -+# -+# By default, IPython will put the history database in the IPython profile -+# directory. If you would rather share one history among profiles, you can set -+# this value in each, so that they are consistent. -+# -+# Due to an issue with fcntl, SQLite is known to misbehave on some NFS mounts. -+# If you see IPython hanging, try setting this to something on a local disk, -+# e.g:: -+# -+# ipython --HistoryManager.hist_file=/tmp/ipython_hist.sqlite -+# c.HistoryManager.hist_file = '' -+ -+# Write to database every x commands (higher values save disk access & power). -+# Values of 1 or less effectively disable caching. -+# c.HistoryManager.db_cache_size = 0 -+ -+#------------------------------------------------------------------------------ -+# ProfileDir configuration -+#------------------------------------------------------------------------------ -+ -+# An object to manage the profile directory and its resources. -+# -+# The profile directory is used by all IPython applications, to manage -+# configuration, logging and security. -+# -+# This object knows how to find, create and manage these directories. This -+# should be used by any code that wants to handle profiles. -+ -+# Set the profile location directly. This overrides the logic used by the -+# `profile` option. -+# c.ProfileDir.location = '' -+ -+#------------------------------------------------------------------------------ -+# PlainTextFormatter configuration -+#------------------------------------------------------------------------------ -+ -+# The default pretty-printer. -+# -+# This uses :mod:`IPython.lib.pretty` to compute the format data of the object. -+# If the object cannot be pretty printed, :func:`repr` is used. See the -+# documentation of :mod:`IPython.lib.pretty` for details on how to write pretty -+# printers. Here is a simple example:: -+# -+# def dtype_pprinter(obj, p, cycle): -+# if cycle: -+# return p.text('dtype(...)') -+# if hasattr(obj, 'fields'): -+# if obj.fields is None: -+# p.text(repr(obj)) -+# else: -+# p.begin_group(7, 'dtype([') -+# for i, field in enumerate(obj.descr): -+# if i > 0: -+# p.text(',') -+# p.breakable() -+# p.pretty(field) -+# p.end_group(7, '])') -+ -+# PlainTextFormatter will inherit config from: BaseFormatter -+ -+# -+# c.PlainTextFormatter.newline = '\n' -+ -+# -+# c.PlainTextFormatter.max_width = 79 -+ -+# -+# c.PlainTextFormatter.verbose = False -+ -+# -+# c.PlainTextFormatter.pprint = True -+ -+# -+# c.PlainTextFormatter.singleton_printers = {} -+ -+# -+# c.PlainTextFormatter.type_printers = {} -+ -+# Truncate large collections (lists, dicts, tuples, sets) to this size. -+# -+# Set to 0 to disable truncation. -+# c.PlainTextFormatter.max_seq_length = 1000 -+ -+# -+# c.PlainTextFormatter.deferred_printers = {} -+ -+# -+# c.PlainTextFormatter.float_precision = '' -+ -+#------------------------------------------------------------------------------ -+# IPCompleter configuration -+#------------------------------------------------------------------------------ -+ -+# Extension of the completer class with IPython-specific features -+ -+# IPCompleter will inherit config from: Completer -+ -+# Whether to merge completion results into a single list -+# -+# If False, only the completion results from the first non-empty completer will -+# be returned. -+# c.IPCompleter.merge_completions = True -+ -+# Activate greedy completion -+# -+# This will enable completion on elements of lists, results of function calls, -+# etc., but can be unsafe because the code is actually evaluated on TAB. -+# c.IPCompleter.greedy = False -+ -+# Instruct the completer to use __all__ for the completion -+# -+# Specifically, when completing on ``object.<tab>``. -+# -+# When True: only those names in obj.__all__ will be included. -+# -+# When False [default]: the __all__ attribute is ignored -+# c.IPCompleter.limit_to__all__ = False -+ -+# Instruct the completer to omit private method names -+# -+# Specifically, when completing on ``object.<tab>``. -+# -+# When 2 [default]: all names that start with '_' will be excluded. -+# -+# When 1: all 'magic' names (``__foo__``) will be excluded. -+# -+# When 0: nothing will be excluded. -+# c.IPCompleter.omit__names = 2 -+ -+#------------------------------------------------------------------------------ -+# ScriptMagics configuration -+#------------------------------------------------------------------------------ -+ -+# Magics for talking to scripts -+# -+# This defines a base `%%script` cell magic for running a cell with a program in -+# a subprocess, and registers a few top-level magics that call %%script with -+# common interpreters. -+ -+# Extra script cell magics to define -+# -+# This generates simple wrappers of `%%script foo` as `%%foo`. -+# -+# If you want to add script magics that aren't on your path, specify them in -+# script_paths -+# c.ScriptMagics.script_magics = [] -+ -+# Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby' -+# -+# Only necessary for items in script_magics where the default path will not find -+# the right interpreter. -+# c.ScriptMagics.script_paths = {} -+ -+#------------------------------------------------------------------------------ -+# StoreMagics configuration -+#------------------------------------------------------------------------------ -+ -+# Lightweight persistence for python variables. -+# -+# Provides the %store magic. -+ -+# If True, any %store-d variables will be automatically restored when IPython -+# starts. -+# c.StoreMagics.autorestore = False - ---- jupyter_core/tests/dotipython/profile_default/ipython_console_config.py -+++ jupyter_core/tests/dotipython/profile_default/ipython_console_config.py -@@ -0,0 +1,531 @@ -+# Configuration file for ipython-console. -+ -+c = get_config() -+ -+#------------------------------------------------------------------------------ -+# ZMQTerminalIPythonApp configuration -+#------------------------------------------------------------------------------ -+ -+# ZMQTerminalIPythonApp will inherit config from: TerminalIPythonApp, -+# BaseIPythonApplication, Application, InteractiveShellApp, IPythonConsoleApp, -+# ConnectionFileMixin -+ -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be -+# hidden from tools like %who? -+# c.ZMQTerminalIPythonApp.hide_initial_ns = True -+ -+# set the heartbeat port [default: random] -+# c.ZMQTerminalIPythonApp.hb_port = 0 -+ -+# A list of dotted module names of IPython extensions to load. -+# c.ZMQTerminalIPythonApp.extensions = [] -+ -+# Execute the given command string. -+# c.ZMQTerminalIPythonApp.code_to_run = '' -+ -+# Path to the ssh key to use for logging in to the ssh server. -+# c.ZMQTerminalIPythonApp.sshkey = '' -+ -+# The date format used by logging formatters for %(asctime)s -+# c.ZMQTerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S' -+ -+# set the control (ROUTER) port [default: random] -+# c.ZMQTerminalIPythonApp.control_port = 0 -+ -+# Reraise exceptions encountered loading IPython extensions? -+# c.ZMQTerminalIPythonApp.reraise_ipython_extension_failures = False -+ -+# Set the log level by value or name. -+# c.ZMQTerminalIPythonApp.log_level = 30 -+ -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython -+# startup. -+# c.ZMQTerminalIPythonApp.exec_PYTHONSTARTUP = True -+ -+# Pre-load matplotlib and numpy for interactive use, selecting a particular -+# matplotlib backend and loop integration. -+# c.ZMQTerminalIPythonApp.pylab = None -+ -+# Run the module as a script. -+# c.ZMQTerminalIPythonApp.module_to_run = '' -+ -+# Whether to display a banner upon starting IPython. -+# c.ZMQTerminalIPythonApp.display_banner = True -+ -+# dotted module name of an IPython extension to load. -+# c.ZMQTerminalIPythonApp.extra_extension = '' -+ -+# Create a massive crash report when IPython encounters what may be an internal -+# error. The default is to append a short message to the usual traceback -+# c.ZMQTerminalIPythonApp.verbose_crash = False -+ -+# Whether to overwrite existing config files when copying -+# c.ZMQTerminalIPythonApp.overwrite = False -+ -+# The IPython profile to use. -+# c.ZMQTerminalIPythonApp.profile = 'default' -+ -+# If a command or file is given via the command-line, e.g. 'ipython foo.py', -+# start an interactive shell after executing the file or command. -+# c.ZMQTerminalIPythonApp.force_interact = False -+ -+# List of files to run at IPython startup. -+# c.ZMQTerminalIPythonApp.exec_files = [] -+ -+# Start IPython quickly by skipping the loading of config files. -+# c.ZMQTerminalIPythonApp.quick = False -+ -+# The Logging format template -+# c.ZMQTerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s' -+ -+# Whether to install the default config files into the profile dir. If a new -+# profile is being created, and IPython contains config files for that profile, -+# then they will be staged into the new directory. Otherwise, default config -+# files will be automatically generated. -+# c.ZMQTerminalIPythonApp.copy_config_files = False -+ -+# set the stdin (ROUTER) port [default: random] -+# c.ZMQTerminalIPythonApp.stdin_port = 0 -+ -+# Path to an extra config file to load. -+# -+# If specified, load this config file in addition to any other IPython config. -+# c.ZMQTerminalIPythonApp.extra_config_file = '' -+ -+# lines of code to run at IPython startup. -+# c.ZMQTerminalIPythonApp.exec_lines = [] -+ -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx', -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx'). -+# c.ZMQTerminalIPythonApp.gui = None -+ -+# A file to be run -+# c.ZMQTerminalIPythonApp.file_to_run = '' -+ -+# Configure matplotlib for interactive use with the default matplotlib backend. -+# c.ZMQTerminalIPythonApp.matplotlib = None -+ -+# Suppress warning messages about legacy config files -+# c.ZMQTerminalIPythonApp.ignore_old_config = False -+ -+# set the iopub (PUB) port [default: random] -+# c.ZMQTerminalIPythonApp.iopub_port = 0 -+ -+# -+# c.ZMQTerminalIPythonApp.transport = 'tcp' -+ -+# JSON file in which to store connection info [default: kernel-<pid>.json] -+# -+# This file will contain the IP, ports, and authentication key needed to connect -+# clients to this kernel. By default, this file will be created in the security -+# dir of the current profile, but can be specified by absolute path. -+# c.ZMQTerminalIPythonApp.connection_file = '' -+ -+# The name of the IPython directory. This directory is used for logging -+# configuration (through profiles), history storage, etc. The default is usually -+# $HOME/.ipython. This option can also be specified through the environment -+# variable IPYTHONDIR. -+# c.ZMQTerminalIPythonApp.ipython_dir = '' -+ -+# The SSH server to use to connect to the kernel. -+# c.ZMQTerminalIPythonApp.sshserver = '' -+ -+# Set to display confirmation dialog on exit. You can always use 'exit' or -+# 'quit', to force a direct exit without any confirmation. -+# c.ZMQTerminalIPythonApp.confirm_exit = True -+ -+# set the shell (ROUTER) port [default: random] -+# c.ZMQTerminalIPythonApp.shell_port = 0 -+ -+# The name of the default kernel to start. -+# c.ZMQTerminalIPythonApp.kernel_name = 'python' -+ -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and -+# an ``import *`` is done from numpy and pylab, when using pylab mode. -+# -+# When False, pylab mode should not import any names into the user namespace. -+# c.ZMQTerminalIPythonApp.pylab_import_all = True -+ -+# Connect to an already running kernel -+# c.ZMQTerminalIPythonApp.existing = '' -+ -+# Set the kernel's IP address [default localhost]. If the IP address is -+# something other than localhost, then Consoles on other machines will be able -+# to connect to the Kernel, so be careful! -+# c.ZMQTerminalIPythonApp.ip = '' -+ -+#------------------------------------------------------------------------------ -+# ZMQTerminalInteractiveShell configuration -+#------------------------------------------------------------------------------ -+ -+# A subclass of TerminalInteractiveShell that uses the 0MQ kernel -+ -+# ZMQTerminalInteractiveShell will inherit config from: -+# TerminalInteractiveShell, InteractiveShell -+ -+# -+# c.ZMQTerminalInteractiveShell.history_length = 10000 -+ -+# auto editing of files with syntax errors. -+# c.ZMQTerminalInteractiveShell.autoedit_syntax = False -+ -+# If True, anything that would be passed to the pager will be displayed as -+# regular output instead. -+# c.ZMQTerminalInteractiveShell.display_page = False -+ -+# -+# c.ZMQTerminalInteractiveShell.debug = False -+ -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run -+# interactively (displaying output from expressions). -+# c.ZMQTerminalInteractiveShell.ast_node_interactivity = 'last_expr' -+ -+# Start logging to the default log file in overwrite mode. Use `logappend` to -+# specify a log file to **append** logs to. -+# c.ZMQTerminalInteractiveShell.logstart = False -+ -+# Set the size of the output cache. The default is 1000, you can change it -+# permanently in your config file. Setting it to 0 completely disables the -+# caching system, and the minimum value accepted is 20 (if you provide a value -+# less than 20, it is reset to 0 and a warning is issued). This limit is -+# defined because otherwise you'll spend more time re-flushing a too small cache -+# than working -+# c.ZMQTerminalInteractiveShell.cache_size = 1000 -+ -+# The shell program to be used for paging. -+# c.ZMQTerminalInteractiveShell.pager = 'less' -+ -+# The name of the logfile to use. -+# c.ZMQTerminalInteractiveShell.logfile = '' -+ -+# Save multi-line entries as one entry in readline history -+# c.ZMQTerminalInteractiveShell.multiline_history = True -+ -+# -+# c.ZMQTerminalInteractiveShell.readline_remove_delims = '-/~' -+ -+# Enable magic commands to be called without the leading %. -+# c.ZMQTerminalInteractiveShell.automagic = True -+ -+# Prefix to add to outputs coming from clients other than this one. -+# -+# Only relevant if include_other_output is True. -+# c.ZMQTerminalInteractiveShell.other_output_prefix = '[remote] ' -+ -+# -+# c.ZMQTerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard'] -+ -+# Use colors for displaying information about objects. Because this information -+# is passed through a pager (like 'less'), and some pagers get confused with -+# color codes, this capability can be turned off. -+# c.ZMQTerminalInteractiveShell.color_info = True -+ -+# Callable object called via 'callable' image handler with one argument, `data`, -+# which is `msg["content"]["data"]` where `msg` is the message from iopub -+# channel. For exmaple, you can find base64 encoded PNG data as -+# `data['image/png']`. -+# c.ZMQTerminalInteractiveShell.callable_image_handler = None -+ -+# Command to invoke an image viewer program when you are using 'stream' image -+# handler. This option is a list of string where the first element is the -+# command itself and reminders are the options for the command. Raw image data -+# is given as STDIN to the program. -+# c.ZMQTerminalInteractiveShell.stream_image_handler = [] -+ -+# -+# c.ZMQTerminalInteractiveShell.separate_out2 = '' -+ -+# Autoindent IPython code entered interactively. -+# c.ZMQTerminalInteractiveShell.autoindent = True -+ -+# The part of the banner to be printed after the profile -+# c.ZMQTerminalInteractiveShell.banner2 = '' -+ -+# Don't call post-execute functions that have failed in the past. -+# c.ZMQTerminalInteractiveShell.disable_failing_post_execute = False -+ -+# Deprecated, use PromptManager.out_template -+# c.ZMQTerminalInteractiveShell.prompt_out = 'Out[\\#]: ' -+ -+# -+# c.ZMQTerminalInteractiveShell.object_info_string_level = 0 -+ -+# -+# c.ZMQTerminalInteractiveShell.separate_out = '' -+ -+# Automatically call the pdb debugger after every exception. -+# c.ZMQTerminalInteractiveShell.pdb = False -+ -+# Deprecated, use PromptManager.in_template -+# c.ZMQTerminalInteractiveShell.prompt_in1 = 'In [\\#]: ' -+ -+# -+# c.ZMQTerminalInteractiveShell.separate_in = '\n' -+ -+# -+# c.ZMQTerminalInteractiveShell.wildcards_case_sensitive = True -+ -+# Enable auto setting the terminal title. -+# c.ZMQTerminalInteractiveShell.term_title = False -+ -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload -+# module which reloads changes in modules recursively (it replaces the reload() -+# function, so you don't need to change anything to use it). deep_reload() -+# forces a full reload of modules whose code may have changed, which the default -+# reload() function does not. When deep_reload is off, IPython will use the -+# normal reload(), but deep_reload will still be available as dreload(). -+# c.ZMQTerminalInteractiveShell.deep_reload = False -+ -+# Deprecated, use PromptManager.in2_template -+# c.ZMQTerminalInteractiveShell.prompt_in2 = ' .\\D.: ' -+ -+# Whether to include output from clients other than this one sharing the same -+# kernel. -+# -+# Outputs are not displayed until enter is pressed. -+# c.ZMQTerminalInteractiveShell.include_other_output = False -+ -+# Preferred object representation MIME type in order. First matched MIME type -+# will be used. -+# c.ZMQTerminalInteractiveShell.mime_preference = ['image/png', 'image/jpeg', 'image/svg+xml'] -+ -+# -+# c.ZMQTerminalInteractiveShell.readline_use = True -+ -+# Make IPython automatically call any callable object even if you didn't type -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically. -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where -+# it is not applied if there are no more arguments on the line, and '2' for -+# 'full' autocall, where all callable objects are automatically called (even if -+# no arguments are present). -+# c.ZMQTerminalInteractiveShell.autocall = 0 -+ -+# The part of the banner to be printed before the profile -+# c.ZMQTerminalInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n' -+ -+# Handler for image type output. This is useful, for example, when connecting -+# to the kernel in which pylab inline backend is activated. There are four -+# handlers defined. 'PIL': Use Python Imaging Library to popup image; 'stream': -+# Use an external program to show the image. Image will be fed into the STDIN -+# of the program. You will need to configure `stream_image_handler`; -+# 'tempfile': Use an external program to show the image. Image will be saved in -+# a temporally file and the program is called with the temporally file. You -+# will need to configure `tempfile_image_handler`; 'callable': You can set any -+# Python callable which is called with the image data. You will need to -+# configure `callable_image_handler`. -+# c.ZMQTerminalInteractiveShell.image_handler = None -+ -+# Set the color scheme (NoColor, Linux, or LightBG). -+# c.ZMQTerminalInteractiveShell.colors = 'LightBG' -+ -+# Set the editor used by IPython (default to $EDITOR/vi/notepad). -+# c.ZMQTerminalInteractiveShell.editor = 'mate -w' -+ -+# Show rewritten input, e.g. for autocall. -+# c.ZMQTerminalInteractiveShell.show_rewritten_input = True -+ -+# -+# c.ZMQTerminalInteractiveShell.xmode = 'Context' -+ -+# -+# c.ZMQTerminalInteractiveShell.quiet = False -+ -+# A list of ast.NodeTransformer subclass instances, which will be applied to -+# user input before code is run. -+# c.ZMQTerminalInteractiveShell.ast_transformers = [] -+ -+# -+# c.ZMQTerminalInteractiveShell.ipython_dir = '' -+ -+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix, -+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a -+# direct exit without any confirmation. -+# c.ZMQTerminalInteractiveShell.confirm_exit = True -+ -+# Deprecated, use PromptManager.justify -+# c.ZMQTerminalInteractiveShell.prompts_pad_left = True -+ -+# Timeout for giving up on a kernel (in seconds). -+# -+# On first connect and restart, the console tests whether the kernel is running -+# and responsive by sending kernel_info_requests. This sets the timeout in -+# seconds for how long the kernel can take before being presumed dead. -+# c.ZMQTerminalInteractiveShell.kernel_timeout = 60 -+ -+# Number of lines of your screen, used to control printing of very long strings. -+# Strings longer than this number of lines will be sent through a pager instead -+# of directly printed. The default value for this is 0, which means IPython -+# will auto-detect your screen size every time it needs to print certain -+# potentially long strings (this doesn't change the behavior of the 'print' -+# keyword, it's only triggered internally). If for some reason this isn't -+# working well (it needs curses support), specify it yourself. Otherwise don't -+# change the default. -+# c.ZMQTerminalInteractiveShell.screen_length = 0 -+ -+# Start logging to the given file in append mode. Use `logfile` to specify a log -+# file to **overwrite** logs to. -+# c.ZMQTerminalInteractiveShell.logappend = '' -+ -+# Command to invoke an image viewer program when you are using 'tempfile' image -+# handler. This option is a list of string where the first element is the -+# command itself and reminders are the options for the command. You can use -+# {file} and {format} in the string to represent the location of the generated -+# image file and image format. -+# c.ZMQTerminalInteractiveShell.tempfile_image_handler = [] -+ -+#------------------------------------------------------------------------------ -+# KernelManager configuration -+#------------------------------------------------------------------------------ -+ -+# Manages a single kernel in a subprocess on this host. -+# -+# This version starts kernels with Popen. -+ -+# KernelManager will inherit config from: ConnectionFileMixin -+ -+# set the heartbeat port [default: random] -+# c.KernelManager.hb_port = 0 -+ -+# set the stdin (ROUTER) port [default: random] -+# c.KernelManager.stdin_port = 0 -+ -+# -+# c.KernelManager.transport = 'tcp' -+ -+# JSON file in which to store connection info [default: kernel-<pid>.json] -+# -+# This file will contain the IP, ports, and authentication key needed to connect -+# clients to this kernel. By default, this file will be created in the security -+# dir of the current profile, but can be specified by absolute path. -+# c.KernelManager.connection_file = '' -+ -+# set the control (ROUTER) port [default: random] -+# c.KernelManager.control_port = 0 -+ -+# set the shell (ROUTER) port [default: random] -+# c.KernelManager.shell_port = 0 -+ -+# Should we autorestart the kernel if it dies. -+# c.KernelManager.autorestart = False -+ -+# DEPRECATED: Use kernel_name instead. -+# -+# The Popen Command to launch the kernel. Override this if you have a custom -+# kernel. If kernel_cmd is specified in a configuration file, IPython does not -+# pass any arguments to the kernel, because it cannot make any assumptions about -+# the arguments that the kernel understands. In particular, this means that the -+# kernel does not receive the option --debug if it given on the IPython command -+# line. -+# c.KernelManager.kernel_cmd = [] -+ -+# Set the kernel's IP address [default localhost]. If the IP address is -+# something other than localhost, then Consoles on other machines will be able -+# to connect to the Kernel, so be careful! -+# c.KernelManager.ip = '' -+ -+# set the iopub (PUB) port [default: random] -+# c.KernelManager.iopub_port = 0 -+ -+#------------------------------------------------------------------------------ -+# ProfileDir configuration -+#------------------------------------------------------------------------------ -+ -+# An object to manage the profile directory and its resources. -+# -+# The profile directory is used by all IPython applications, to manage -+# configuration, logging and security. -+# -+# This object knows how to find, create and manage these directories. This -+# should be used by any code that wants to handle profiles. -+ -+# Set the profile location directly. This overrides the logic used by the -+# `profile` option. -+# c.ProfileDir.location = '' -+ -+#------------------------------------------------------------------------------ -+# Session configuration -+#------------------------------------------------------------------------------ -+ -+# Object for handling serialization and sending of messages. -+# -+# The Session object handles building messages and sending them with ZMQ sockets -+# or ZMQStream objects. Objects can communicate with each other over the -+# network via Session objects, and only need to work with the dict-based IPython -+# message spec. The Session will handle serialization/deserialization, security, -+# and metadata. -+# -+# Sessions support configurable serialization via packer/unpacker traits, and -+# signing with HMAC digests via the key/keyfile traits. -+# -+# Parameters ---------- -+# -+# debug : bool -+# whether to trigger extra debugging statements -+# packer/unpacker : str : 'json', 'pickle' or import_string -+# importstrings for methods to serialize message parts. If just -+# 'json' or 'pickle', predefined JSON and pickle packers will be used. -+# Otherwise, the entire importstring must be used. -+# -+# The functions must accept at least valid JSON input, and output *bytes*. -+# -+# For example, to use msgpack: -+# packer = 'msgpack.packb', unpacker='msgpack.unpackb' -+# pack/unpack : callables -+# You can also set the pack/unpack callables for serialization directly. -+# session : bytes -+# the ID of this Session object. The default is to generate a new UUID. -+# username : unicode -+# username added to message headers. The default is to ask the OS. -+# key : bytes -+# The key used to initialize an HMAC signature. If unset, messages -+# will not be signed or checked. -+# keyfile : filepath -+# The file containing a key. If this is set, `key` will be initialized -+# to the contents of the file. -+ -+# The digest scheme used to construct the message signatures. Must have the form -+# 'hmac-HASH'. -+# c.Session.signature_scheme = 'hmac-sha256' -+ -+# The maximum number of digests to remember. -+# -+# The digest history will be culled when it exceeds this value. -+# c.Session.digest_history_size = 65536 -+ -+# The name of the unpacker for unserializing messages. Only used with custom -+# functions for `packer`. -+# c.Session.unpacker = 'json' -+ -+# The name of the packer for serializing messages. Should be one of 'json', -+# 'pickle', or an import name for a custom callable serializer. -+# c.Session.packer = 'json' -+ -+# Username for the Session. Default is your system username. -+# c.Session.username = 'minrk' -+ -+# Debug output in the Session -+# c.Session.debug = False -+ -+# path to file containing execution key. -+# c.Session.keyfile = '' -+ -+# The maximum number of items for a container to be introspected for custom -+# serialization. Containers larger than this are pickled outright. -+# c.Session.item_threshold = 64 -+ -+# Threshold (in bytes) beyond which an object's buffer should be extracted to -+# avoid pickling. -+# c.Session.buffer_threshold = 1024 -+ -+# The UUID identifying this session. -+# c.Session.session = '' -+ -+# Threshold (in bytes) beyond which a buffer should be sent without copying. -+# c.Session.copy_threshold = 65536 -+ -+# execution key, for signing messages. -+# c.Session.key = b'' -+ -+# Metadata dictionary, which serves as the default top-level metadata dict for -+# each message. -+# c.Session.metadata = {} - ---- jupyter_core/tests/dotipython/profile_default/ipython_kernel_config.py -+++ jupyter_core/tests/dotipython/profile_default/ipython_kernel_config.py -@@ -0,0 +1,408 @@ -+# Configuration file for ipython-kernel. -+ -+c = get_config() -+ -+#------------------------------------------------------------------------------ -+# IPKernelApp configuration -+#------------------------------------------------------------------------------ -+ -+# IPython: an enhanced interactive Python shell. -+ -+# IPKernelApp will inherit config from: BaseIPythonApplication, Application, -+# InteractiveShellApp, ConnectionFileMixin -+ -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be -+# hidden from tools like %who? -+# c.IPKernelApp.hide_initial_ns = True -+ -+# The importstring for the DisplayHook factory -+# c.IPKernelApp.displayhook_class = 'IPython.kernel.zmq.displayhook.ZMQDisplayHook' -+ -+# A list of dotted module names of IPython extensions to load. -+# c.IPKernelApp.extensions = [] -+ -+# Execute the given command string. -+# c.IPKernelApp.code_to_run = '' -+ -+# redirect stderr to the null device -+# c.IPKernelApp.no_stderr = False -+ -+# The date format used by logging formatters for %(asctime)s -+# c.IPKernelApp.log_datefmt = '%Y-%m-%d %H:%M:%S' -+ -+# Whether to create profile dir if it doesn't exist -+# c.IPKernelApp.auto_create = False -+ -+# Reraise exceptions encountered loading IPython extensions? -+# c.IPKernelApp.reraise_ipython_extension_failures = False -+ -+# Set the log level by value or name. -+# c.IPKernelApp.log_level = 30 -+ -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython -+# startup. -+# c.IPKernelApp.exec_PYTHONSTARTUP = True -+ -+# Pre-load matplotlib and numpy for interactive use, selecting a particular -+# matplotlib backend and loop integration. -+# c.IPKernelApp.pylab = None -+ -+# Run the module as a script. -+# c.IPKernelApp.module_to_run = '' -+ -+# The importstring for the OutStream factory -+# c.IPKernelApp.outstream_class = 'IPython.kernel.zmq.iostream.OutStream' -+ -+# dotted module name of an IPython extension to load. -+# c.IPKernelApp.extra_extension = '' -+ -+# Create a massive crash report when IPython encounters what may be an internal -+# error. The default is to append a short message to the usual traceback -+# c.IPKernelApp.verbose_crash = False -+ -+# Whether to overwrite existing config files when copying -+# c.IPKernelApp.overwrite = False -+ -+# The IPython profile to use. -+# c.IPKernelApp.profile = 'default' -+ -+# List of files to run at IPython startup. -+# c.IPKernelApp.exec_files = [] -+ -+# The Logging format template -+# c.IPKernelApp.log_format = '[%(name)s]%(highlevel)s %(message)s' -+ -+# Whether to install the default config files into the profile dir. If a new -+# profile is being created, and IPython contains config files for that profile, -+# then they will be staged into the new directory. Otherwise, default config -+# files will be automatically generated. -+# c.IPKernelApp.copy_config_files = False -+ -+# set the stdin (ROUTER) port [default: random] -+# c.IPKernelApp.stdin_port = 0 -+ -+# Path to an extra config file to load. -+# -+# If specified, load this config file in addition to any other IPython config. -+# c.IPKernelApp.extra_config_file = '' -+ -+# lines of code to run at IPython startup. -+# c.IPKernelApp.exec_lines = [] -+ -+# set the control (ROUTER) port [default: random] -+# c.IPKernelApp.control_port = 0 -+ -+# set the heartbeat port [default: random] -+# c.IPKernelApp.hb_port = 0 -+ -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx', -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx'). -+# c.IPKernelApp.gui = None -+ -+# A file to be run -+# c.IPKernelApp.file_to_run = '' -+ -+# The name of the IPython directory. This directory is used for logging -+# configuration (through profiles), history storage, etc. The default is usually -+# $HOME/.ipython. This option can also be specified through the environment -+# variable IPYTHONDIR. -+# c.IPKernelApp.ipython_dir = '' -+ -+# kill this process if its parent dies. On Windows, the argument specifies the -+# HANDLE of the parent process, otherwise it is simply boolean. -+# c.IPKernelApp.parent_handle = 0 -+ -+# Configure matplotlib for interactive use with the default matplotlib backend. -+# c.IPKernelApp.matplotlib = None -+ -+# set the iopub (PUB) port [default: random] -+# c.IPKernelApp.iopub_port = 0 -+ -+# redirect stdout to the null device -+# c.IPKernelApp.no_stdout = False -+ -+# -+# c.IPKernelApp.transport = 'tcp' -+ -+# JSON file in which to store connection info [default: kernel-<pid>.json] -+# -+# This file will contain the IP, ports, and authentication key needed to connect -+# clients to this kernel. By default, this file will be created in the security -+# dir of the current profile, but can be specified by absolute path. -+# c.IPKernelApp.connection_file = '' -+ -+# The Kernel subclass to be used. -+# -+# This should allow easy re-use of the IPKernelApp entry point to configure and -+# launch kernels other than IPython's own. -+# c.IPKernelApp.kernel_class = <class 'IPython.kernel.zmq.ipkernel.IPythonKernel'> -+ -+# ONLY USED ON WINDOWS Interrupt this process when the parent is signaled. -+# c.IPKernelApp.interrupt = 0 -+ -+# set the shell (ROUTER) port [default: random] -+# c.IPKernelApp.shell_port = 0 -+ -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and -+# an ``import *`` is done from numpy and pylab, when using pylab mode. -+# -+# When False, pylab mode should not import any names into the user namespace. -+# c.IPKernelApp.pylab_import_all = True -+ -+# Set the kernel's IP address [default localhost]. If the IP address is -+# something other than localhost, then Consoles on other machines will be able -+# to connect to the Kernel, so be careful! -+# c.IPKernelApp.ip = '' -+ -+#------------------------------------------------------------------------------ -+# IPythonKernel configuration -+#------------------------------------------------------------------------------ -+ -+# IPythonKernel will inherit config from: Kernel -+ -+# -+# c.IPythonKernel._execute_sleep = 0.0005 -+ -+# Whether to use appnope for compatiblity with OS X App Nap. -+# -+# Only affects OS X >= 10.9. -+# c.IPythonKernel._darwin_app_nap = True -+ -+# -+# c.IPythonKernel._poll_interval = 0.05 -+ -+#------------------------------------------------------------------------------ -+# ZMQInteractiveShell configuration -+#------------------------------------------------------------------------------ -+ -+# A subclass of InteractiveShell for ZMQ. -+ -+# ZMQInteractiveShell will inherit config from: InteractiveShell -+ -+# -+# c.ZMQInteractiveShell.object_info_string_level = 0 -+ -+# -+# c.ZMQInteractiveShell.separate_out = '' -+ -+# Automatically call the pdb debugger after every exception. -+# c.ZMQInteractiveShell.pdb = False -+ -+# -+# c.ZMQInteractiveShell.ipython_dir = '' -+ -+# -+# c.ZMQInteractiveShell.history_length = 10000 -+ -+# -+# c.ZMQInteractiveShell.readline_remove_delims = '-/~' -+ -+# If True, anything that would be passed to the pager will be displayed as -+# regular output instead. -+# c.ZMQInteractiveShell.display_page = False -+ -+# Deprecated, use PromptManager.in2_template -+# c.ZMQInteractiveShell.prompt_in2 = ' .\\D.: ' -+ -+# -+# c.ZMQInteractiveShell.separate_in = '\n' -+ -+# Start logging to the default log file in overwrite mode. Use `logappend` to -+# specify a log file to **append** logs to. -+# c.ZMQInteractiveShell.logstart = False -+ -+# Set the size of the output cache. The default is 1000, you can change it -+# permanently in your config file. Setting it to 0 completely disables the -+# caching system, and the minimum value accepted is 20 (if you provide a value -+# less than 20, it is reset to 0 and a warning is issued). This limit is -+# defined because otherwise you'll spend more time re-flushing a too small cache -+# than working -+# c.ZMQInteractiveShell.cache_size = 1000 -+ -+# -+# c.ZMQInteractiveShell.wildcards_case_sensitive = True -+ -+# The name of the logfile to use. -+# c.ZMQInteractiveShell.logfile = '' -+ -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run -+# interactively (displaying output from expressions). -+# c.ZMQInteractiveShell.ast_node_interactivity = 'last_expr' -+ -+# -+# c.ZMQInteractiveShell.debug = False -+ -+# -+# c.ZMQInteractiveShell.quiet = False -+ -+# Save multi-line entries as one entry in readline history -+# c.ZMQInteractiveShell.multiline_history = True -+ -+# Deprecated, use PromptManager.in_template -+# c.ZMQInteractiveShell.prompt_in1 = 'In [\\#]: ' -+ -+# Enable magic commands to be called without the leading %. -+# c.ZMQInteractiveShell.automagic = True -+ -+# The part of the banner to be printed before the profile -+# c.ZMQInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n' -+ -+# Make IPython automatically call any callable object even if you didn't type -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically. -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where -+# it is not applied if there are no more arguments on the line, and '2' for -+# 'full' autocall, where all callable objects are automatically called (even if -+# no arguments are present). -+# c.ZMQInteractiveShell.autocall = 0 -+ -+# -+# c.ZMQInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard'] -+ -+# Set the color scheme (NoColor, Linux, or LightBG). -+# c.ZMQInteractiveShell.colors = 'LightBG' -+ -+# Use colors for displaying information about objects. Because this information -+# is passed through a pager (like 'less'), and some pagers get confused with -+# color codes, this capability can be turned off. -+# c.ZMQInteractiveShell.color_info = True -+ -+# Show rewritten input, e.g. for autocall. -+# c.ZMQInteractiveShell.show_rewritten_input = True -+ -+# -+# c.ZMQInteractiveShell.xmode = 'Context' -+ -+# -+# c.ZMQInteractiveShell.separate_out2 = '' -+ -+# The part of the banner to be printed after the profile -+# c.ZMQInteractiveShell.banner2 = '' -+ -+# Start logging to the given file in append mode. Use `logfile` to specify a log -+# file to **overwrite** logs to. -+# c.ZMQInteractiveShell.logappend = '' -+ -+# Don't call post-execute functions that have failed in the past. -+# c.ZMQInteractiveShell.disable_failing_post_execute = False -+ -+# Deprecated, use PromptManager.out_template -+# c.ZMQInteractiveShell.prompt_out = 'Out[\\#]: ' -+ -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload -+# module which reloads changes in modules recursively (it replaces the reload() -+# function, so you don't need to change anything to use it). deep_reload() -+# forces a full reload of modules whose code may have changed, which the default -+# reload() function does not. When deep_reload is off, IPython will use the -+# normal reload(), but deep_reload will still be available as dreload(). -+# c.ZMQInteractiveShell.deep_reload = False -+ -+# Deprecated, use PromptManager.justify -+# c.ZMQInteractiveShell.prompts_pad_left = True -+ -+# A list of ast.NodeTransformer subclass instances, which will be applied to -+# user input before code is run. -+# c.ZMQInteractiveShell.ast_transformers = [] -+ -+#------------------------------------------------------------------------------ -+# ProfileDir configuration -+#------------------------------------------------------------------------------ -+ -+# An object to manage the profile directory and its resources. -+# -+# The profile directory is used by all IPython applications, to manage -+# configuration, logging and security. -+# -+# This object knows how to find, create and manage these directories. This -+# should be used by any code that wants to handle profiles. -+ -+# Set the profile location directly. This overrides the logic used by the -+# `profile` option. -+# c.ProfileDir.location = '' -+ -+#------------------------------------------------------------------------------ -+# Session configuration -+#------------------------------------------------------------------------------ -+ -+# Object for handling serialization and sending of messages. -+# -+# The Session object handles building messages and sending them with ZMQ sockets -+# or ZMQStream objects. Objects can communicate with each other over the -+# network via Session objects, and only need to work with the dict-based IPython -+# message spec. The Session will handle serialization/deserialization, security, -+# and metadata. -+# -+# Sessions support configurable serialization via packer/unpacker traits, and -+# signing with HMAC digests via the key/keyfile traits. -+# -+# Parameters ---------- -+# -+# debug : bool -+# whether to trigger extra debugging statements -+# packer/unpacker : str : 'json', 'pickle' or import_string -+# importstrings for methods to serialize message parts. If just -+# 'json' or 'pickle', predefined JSON and pickle packers will be used. -+# Otherwise, the entire importstring must be used. -+# -+# The functions must accept at least valid JSON input, and output *bytes*. -+# -+# For example, to use msgpack: -+# packer = 'msgpack.packb', unpacker='msgpack.unpackb' -+# pack/unpack : callables -+# You can also set the pack/unpack callables for serialization directly. -+# session : bytes -+# the ID of this Session object. The default is to generate a new UUID. -+# username : unicode -+# username added to message headers. The default is to ask the OS. -+# key : bytes -+# The key used to initialize an HMAC signature. If unset, messages -+# will not be signed or checked. -+# keyfile : filepath -+# The file containing a key. If this is set, `key` will be initialized -+# to the contents of the file. -+ -+# The digest scheme used to construct the message signatures. Must have the form -+# 'hmac-HASH'. -+# c.Session.signature_scheme = 'hmac-sha256' -+ -+# The maximum number of digests to remember. -+# -+# The digest history will be culled when it exceeds this value. -+# c.Session.digest_history_size = 65536 -+ -+# The name of the unpacker for unserializing messages. Only used with custom -+# functions for `packer`. -+# c.Session.unpacker = 'json' -+ -+# The name of the packer for serializing messages. Should be one of 'json', -+# 'pickle', or an import name for a custom callable serializer. -+# c.Session.packer = 'json' -+ -+# Username for the Session. Default is your system username. -+# c.Session.username = 'minrk' -+ -+# Debug output in the Session -+# c.Session.debug = False -+ -+# path to file containing execution key. -+# c.Session.keyfile = '' -+ -+# The maximum number of items for a container to be introspected for custom -+# serialization. Containers larger than this are pickled outright. -+# c.Session.item_threshold = 64 -+ -+# Threshold (in bytes) beyond which an object's buffer should be extracted to -+# avoid pickling. -+# c.Session.buffer_threshold = 1024 -+ -+# The UUID identifying this session. -+# c.Session.session = '' -+ -+# Threshold (in bytes) beyond which a buffer should be sent without copying. -+# c.Session.copy_threshold = 65536 -+ -+# execution key, for signing messages. -+# c.Session.key = b'' -+ -+# Metadata dictionary, which serves as the default top-level metadata dict for -+# each message. -+# c.Session.metadata = {} - ---- jupyter_core/tests/dotipython/profile_default/ipython_nbconvert_config.py -+++ jupyter_core/tests/dotipython/profile_default/ipython_nbconvert_config.py -@@ -0,0 +1 @@ -+c.NbConvertApp.post_processors = [] - ---- jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.py -+++ jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.py -@@ -0,0 +1 @@ -+c.NotebookApp.open_browser = False - ---- jupyter_core/tests/dotipython/profile_default/static/custom/custom.css -+++ jupyter_core/tests/dotipython/profile_default/static/custom/custom.css -@@ -0,0 +1,7 @@ -+/* -+Placeholder for custom user CSS -+ -+mainly to be overridden in profile/static/custom/custom.css -+ -+This will always be an empty file in IPython -+*/ -\ No newline at end of file - ---- jupyter_core/tests/dotipython/profile_default/static/custom/custom.js -+++ jupyter_core/tests/dotipython/profile_default/static/custom/custom.js -@@ -0,0 +1,82 @@ -+// leave at least 2 line with only a star on it below, or doc generation fails -+/** -+ * -+ * -+ * Placeholder for custom user javascript -+ * mainly to be overridden in profile/static/custom/custom.js -+ * This will always be an empty file in IPython -+ * -+ * User could add any javascript in the `profile/static/custom/custom.js` file. -+ * It will be executed by the ipython notebook at load time. -+ * -+ * Same thing with `profile/static/custom/custom.css` to inject custom css into the notebook. -+ * -+ * -+ * The object available at load time depend on the version of IPython in use. -+ * there is no guaranties of API stability. -+ * -+ * The example below explain the principle, and might not be valid. -+ * -+ * Instances are created after the loading of this file and might need to be accessed using events: -+ * define([ -+ * 'base/js/namespace', -+ * 'base/js/events' -+ * ], function(IPython, events) { -+ * events.on("app_initialized.NotebookApp", function () { -+ * IPython.keyboard_manager.... -+ * }); -+ * }); -+ * -+ * __Example 1:__ -+ * -+ * Create a custom button in toolbar that execute `%qtconsole` in kernel -+ * and hence open a qtconsole attached to the same kernel as the current notebook -+ * -+ * define([ -+ * 'base/js/namespace', -+ * 'base/js/events' -+ * ], function(IPython, events) { -+ * events.on('app_initialized.NotebookApp', function(){ -+ * IPython.toolbar.add_buttons_group([ -+ * { -+ * 'label' : 'run qtconsole', -+ * 'icon' : 'icon-terminal', // select your icon from http://fortawesome.github.io/Font-Awesome/icons -+ * 'callback': function () { -+ * IPython.notebook.kernel.execute('%qtconsole') -+ * } -+ * } -+ * // add more button here if needed. -+ * ]); -+ * }); -+ * }); -+ * -+ * __Example 2:__ -+ * -+ * At the completion of the dashboard loading, load an unofficial javascript extension -+ * that is installed in profile/static/custom/ -+ * -+ * define([ -+ * 'base/js/events' -+ * ], function(events) { -+ * events.on('app_initialized.DashboardApp', function(){ -+ * require(['custom/unofficial_extension.js']) -+ * }); -+ * }); -+ * -+ * __Example 3:__ -+ * -+ * Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );` -+ * to load custom script into the notebook. -+ * -+ * // to load the metadata ui extension example. -+ * $.getScript('/static/notebook/js/celltoolbarpresets/example.js'); -+ * // or -+ * // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert -+ * $.getScript('/static/notebook/js/celltoolbarpresets/slideshow.js'); -+ * -+ * -+ * @module IPython -+ * @namespace IPython -+ * @class customjs -+ * @static -+ */ - ---- jupyter_core/tests/dotipython_empty/profile_default/ipython_config.py -+++ jupyter_core/tests/dotipython_empty/profile_default/ipython_config.py -@@ -0,0 +1,549 @@ -+# Configuration file for ipython. -+ -+c = get_config() -+ -+#------------------------------------------------------------------------------ -+# InteractiveShellApp configuration -+#------------------------------------------------------------------------------ -+ -+# A Mixin for applications that start InteractiveShell instances. -+# -+# Provides configurables for loading extensions and executing files as part of -+# configuring a Shell environment. -+# -+# The following methods should be called by the :meth:`initialize` method of the -+# subclass: -+# -+# - :meth:`init_path` -+# - :meth:`init_shell` (to be implemented by the subclass) -+# - :meth:`init_gui_pylab` -+# - :meth:`init_extensions` -+# - :meth:`init_code` -+ -+# lines of code to run at IPython startup. -+# c.InteractiveShellApp.exec_lines = [] -+ -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be -+# hidden from tools like %who? -+# c.InteractiveShellApp.hide_initial_ns = True -+ -+# A list of dotted module names of IPython extensions to load. -+# c.InteractiveShellApp.extensions = [] -+ -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx', -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx'). -+# c.InteractiveShellApp.gui = None -+ -+# A file to be run -+# c.InteractiveShellApp.file_to_run = '' -+ -+# Configure matplotlib for interactive use with the default matplotlib backend. -+# c.InteractiveShellApp.matplotlib = None -+ -+# Reraise exceptions encountered loading IPython extensions? -+# c.InteractiveShellApp.reraise_ipython_extension_failures = False -+ -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython -+# startup. -+# c.InteractiveShellApp.exec_PYTHONSTARTUP = True -+ -+# Pre-load matplotlib and numpy for interactive use, selecting a particular -+# matplotlib backend and loop integration. -+# c.InteractiveShellApp.pylab = None -+ -+# Run the module as a script. -+# c.InteractiveShellApp.module_to_run = '' -+ -+# dotted module name of an IPython extension to load. -+# c.InteractiveShellApp.extra_extension = '' -+ -+# List of files to run at IPython startup. -+# c.InteractiveShellApp.exec_files = [] -+ -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and -+# an ``import *`` is done from numpy and pylab, when using pylab mode. -+# -+# When False, pylab mode should not import any names into the user namespace. -+# c.InteractiveShellApp.pylab_import_all = True -+ -+# Execute the given command string. -+# c.InteractiveShellApp.code_to_run = '' -+ -+#------------------------------------------------------------------------------ -+# TerminalIPythonApp configuration -+#------------------------------------------------------------------------------ -+ -+# TerminalIPythonApp will inherit config from: BaseIPythonApplication, -+# Application, InteractiveShellApp -+ -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be -+# hidden from tools like %who? -+# c.TerminalIPythonApp.hide_initial_ns = True -+ -+# A list of dotted module names of IPython extensions to load. -+# c.TerminalIPythonApp.extensions = [] -+ -+# Execute the given command string. -+# c.TerminalIPythonApp.code_to_run = '' -+ -+# The date format used by logging formatters for %(asctime)s -+# c.TerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S' -+ -+# Reraise exceptions encountered loading IPython extensions? -+# c.TerminalIPythonApp.reraise_ipython_extension_failures = False -+ -+# Set the log level by value or name. -+# c.TerminalIPythonApp.log_level = 30 -+ -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython -+# startup. -+# c.TerminalIPythonApp.exec_PYTHONSTARTUP = True -+ -+# Pre-load matplotlib and numpy for interactive use, selecting a particular -+# matplotlib backend and loop integration. -+# c.TerminalIPythonApp.pylab = None -+ -+# Run the module as a script. -+# c.TerminalIPythonApp.module_to_run = '' -+ -+# Whether to display a banner upon starting IPython. -+# c.TerminalIPythonApp.display_banner = True -+ -+# dotted module name of an IPython extension to load. -+# c.TerminalIPythonApp.extra_extension = '' -+ -+# Create a massive crash report when IPython encounters what may be an internal -+# error. The default is to append a short message to the usual traceback -+# c.TerminalIPythonApp.verbose_crash = False -+ -+# Whether to overwrite existing config files when copying -+# c.TerminalIPythonApp.overwrite = False -+ -+# The IPython profile to use. -+# c.TerminalIPythonApp.profile = 'default' -+ -+# If a command or file is given via the command-line, e.g. 'ipython foo.py', -+# start an interactive shell after executing the file or command. -+# c.TerminalIPythonApp.force_interact = False -+ -+# List of files to run at IPython startup. -+# c.TerminalIPythonApp.exec_files = [] -+ -+# Start IPython quickly by skipping the loading of config files. -+# c.TerminalIPythonApp.quick = False -+ -+# The Logging format template -+# c.TerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s' -+ -+# Whether to install the default config files into the profile dir. If a new -+# profile is being created, and IPython contains config files for that profile, -+# then they will be staged into the new directory. Otherwise, default config -+# files will be automatically generated. -+# c.TerminalIPythonApp.copy_config_files = False -+ -+# Path to an extra config file to load. -+# -+# If specified, load this config file in addition to any other IPython config. -+# c.TerminalIPythonApp.extra_config_file = '' -+ -+# lines of code to run at IPython startup. -+# c.TerminalIPythonApp.exec_lines = [] -+ -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx', -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx'). -+# c.TerminalIPythonApp.gui = None -+ -+# A file to be run -+# c.TerminalIPythonApp.file_to_run = '' -+ -+# Configure matplotlib for interactive use with the default matplotlib backend. -+# c.TerminalIPythonApp.matplotlib = None -+ -+# Suppress warning messages about legacy config files -+# c.TerminalIPythonApp.ignore_old_config = False -+ -+# The name of the IPython directory. This directory is used for logging -+# configuration (through profiles), history storage, etc. The default is usually -+# $HOME/.ipython. This option can also be specified through the environment -+# variable IPYTHONDIR. -+# c.TerminalIPythonApp.ipython_dir = '' -+ -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and -+# an ``import *`` is done from numpy and pylab, when using pylab mode. -+# -+# When False, pylab mode should not import any names into the user namespace. -+# c.TerminalIPythonApp.pylab_import_all = True -+ -+#------------------------------------------------------------------------------ -+# TerminalInteractiveShell configuration -+#------------------------------------------------------------------------------ -+ -+# TerminalInteractiveShell will inherit config from: InteractiveShell -+ -+# -+# c.TerminalInteractiveShell.object_info_string_level = 0 -+ -+# -+# c.TerminalInteractiveShell.separate_out = '' -+ -+# Automatically call the pdb debugger after every exception. -+# c.TerminalInteractiveShell.pdb = False -+ -+# -+# c.TerminalInteractiveShell.ipython_dir = '' -+ -+# -+# c.TerminalInteractiveShell.history_length = 10000 -+ -+# -+# c.TerminalInteractiveShell.readline_remove_delims = '-/~' -+ -+# auto editing of files with syntax errors. -+# c.TerminalInteractiveShell.autoedit_syntax = False -+ -+# If True, anything that would be passed to the pager will be displayed as -+# regular output instead. -+# c.TerminalInteractiveShell.display_page = False -+ -+# -+# c.TerminalInteractiveShell.debug = False -+ -+# -+# c.TerminalInteractiveShell.separate_in = '\n' -+ -+# Start logging to the default log file in overwrite mode. Use `logappend` to -+# specify a log file to **append** logs to. -+# c.TerminalInteractiveShell.logstart = False -+ -+# Set the size of the output cache. The default is 1000, you can change it -+# permanently in your config file. Setting it to 0 completely disables the -+# caching system, and the minimum value accepted is 20 (if you provide a value -+# less than 20, it is reset to 0 and a warning is issued). This limit is -+# defined because otherwise you'll spend more time re-flushing a too small cache -+# than working -+# c.TerminalInteractiveShell.cache_size = 1000 -+ -+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix, -+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a -+# direct exit without any confirmation. -+# c.TerminalInteractiveShell.confirm_exit = True -+ -+# The shell program to be used for paging. -+# c.TerminalInteractiveShell.pager = 'less' -+ -+# -+# c.TerminalInteractiveShell.wildcards_case_sensitive = True -+ -+# Deprecated, use PromptManager.justify -+# c.TerminalInteractiveShell.prompts_pad_left = True -+ -+# The name of the logfile to use. -+# c.TerminalInteractiveShell.logfile = '' -+ -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run -+# interactively (displaying output from expressions). -+# c.TerminalInteractiveShell.ast_node_interactivity = 'last_expr' -+ -+# -+# c.TerminalInteractiveShell.quiet = False -+ -+# Save multi-line entries as one entry in readline history -+# c.TerminalInteractiveShell.multiline_history = True -+ -+# Deprecated, use PromptManager.in_template -+# c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: ' -+ -+# -+# c.TerminalInteractiveShell.readline_use = True -+ -+# Enable magic commands to be called without the leading %. -+# c.TerminalInteractiveShell.automagic = True -+ -+# The part of the banner to be printed before the profile -+# c.TerminalInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n' -+ -+# Make IPython automatically call any callable object even if you didn't type -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically. -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where -+# it is not applied if there are no more arguments on the line, and '2' for -+# 'full' autocall, where all callable objects are automatically called (even if -+# no arguments are present). -+# c.TerminalInteractiveShell.autocall = 0 -+ -+# Autoindent IPython code entered interactively. -+# c.TerminalInteractiveShell.autoindent = True -+ -+# Set the color scheme (NoColor, Linux, or LightBG). -+# c.TerminalInteractiveShell.colors = 'LightBG' -+ -+# Set the editor used by IPython (default to $EDITOR/vi/notepad). -+# c.TerminalInteractiveShell.editor = 'mate -w' -+ -+# Use colors for displaying information about objects. Because this information -+# is passed through a pager (like 'less'), and some pagers get confused with -+# color codes, this capability can be turned off. -+# c.TerminalInteractiveShell.color_info = True -+ -+# -+# c.TerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard'] -+ -+# Deprecated, use PromptManager.in2_template -+# c.TerminalInteractiveShell.prompt_in2 = ' .\\D.: ' -+ -+# -+# c.TerminalInteractiveShell.separate_out2 = '' -+ -+# The part of the banner to be printed after the profile -+# c.TerminalInteractiveShell.banner2 = '' -+ -+# Start logging to the given file in append mode. Use `logfile` to specify a log -+# file to **overwrite** logs to. -+# c.TerminalInteractiveShell.logappend = '' -+ -+# Don't call post-execute functions that have failed in the past. -+# c.TerminalInteractiveShell.disable_failing_post_execute = False -+ -+# Deprecated, use PromptManager.out_template -+# c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: ' -+ -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload -+# module which reloads changes in modules recursively (it replaces the reload() -+# function, so you don't need to change anything to use it). deep_reload() -+# forces a full reload of modules whose code may have changed, which the default -+# reload() function does not. When deep_reload is off, IPython will use the -+# normal reload(), but deep_reload will still be available as dreload(). -+# c.TerminalInteractiveShell.deep_reload = False -+ -+# -+# c.TerminalInteractiveShell.xmode = 'Context' -+ -+# Show rewritten input, e.g. for autocall. -+# c.TerminalInteractiveShell.show_rewritten_input = True -+ -+# Number of lines of your screen, used to control printing of very long strings. -+# Strings longer than this number of lines will be sent through a pager instead -+# of directly printed. The default value for this is 0, which means IPython -+# will auto-detect your screen size every time it needs to print certain -+# potentially long strings (this doesn't change the behavior of the 'print' -+# keyword, it's only triggered internally). If for some reason this isn't -+# working well (it needs curses support), specify it yourself. Otherwise don't -+# change the default. -+# c.TerminalInteractiveShell.screen_length = 0 -+ -+# A list of ast.NodeTransformer subclass instances, which will be applied to -+# user input before code is run. -+# c.TerminalInteractiveShell.ast_transformers = [] -+ -+# Enable auto setting the terminal title. -+# c.TerminalInteractiveShell.term_title = False -+ -+#------------------------------------------------------------------------------ -+# PromptManager configuration -+#------------------------------------------------------------------------------ -+ -+# This is the primary interface for producing IPython's prompts. -+ -+# -+# c.PromptManager.color_scheme = 'Linux' -+ -+# Continuation prompt. -+# c.PromptManager.in2_template = ' .\\D.: ' -+ -+# Input prompt. '\#' will be transformed to the prompt number -+# c.PromptManager.in_template = 'In [\\#]: ' -+ -+# Output prompt. '\#' will be transformed to the prompt number -+# c.PromptManager.out_template = 'Out[\\#]: ' -+ -+# If True (default), each prompt will be right-aligned with the preceding one. -+# c.PromptManager.justify = True -+ -+#------------------------------------------------------------------------------ -+# HistoryManager configuration -+#------------------------------------------------------------------------------ -+ -+# A class to organize all history-related functionality in one place. -+ -+# HistoryManager will inherit config from: HistoryAccessor -+ -+# Options for configuring the SQLite connection -+# -+# These options are passed as keyword args to sqlite3.connect when establishing -+# database conenctions. -+# c.HistoryManager.connection_options = {} -+ -+# Should the history database include output? (default: no) -+# c.HistoryManager.db_log_output = False -+ -+# enable the SQLite history -+# -+# set enabled=False to disable the SQLite history, in which case there will be -+# no stored history, no SQLite connection, and no background saving thread. -+# This may be necessary in some threaded environments where IPython is embedded. -+# c.HistoryManager.enabled = True -+ -+# Path to file to use for SQLite history database. -+# -+# By default, IPython will put the history database in the IPython profile -+# directory. If you would rather share one history among profiles, you can set -+# this value in each, so that they are consistent. -+# -+# Due to an issue with fcntl, SQLite is known to misbehave on some NFS mounts. -+# If you see IPython hanging, try setting this to something on a local disk, -+# e.g:: -+# -+# ipython --HistoryManager.hist_file=/tmp/ipython_hist.sqlite -+# c.HistoryManager.hist_file = '' -+ -+# Write to database every x commands (higher values save disk access & power). -+# Values of 1 or less effectively disable caching. -+# c.HistoryManager.db_cache_size = 0 -+ -+#------------------------------------------------------------------------------ -+# ProfileDir configuration -+#------------------------------------------------------------------------------ -+ -+# An object to manage the profile directory and its resources. -+# -+# The profile directory is used by all IPython applications, to manage -+# configuration, logging and security. -+# -+# This object knows how to find, create and manage these directories. This -+# should be used by any code that wants to handle profiles. -+ -+# Set the profile location directly. This overrides the logic used by the -+# `profile` option. -+# c.ProfileDir.location = '' -+ -+#------------------------------------------------------------------------------ -+# PlainTextFormatter configuration -+#------------------------------------------------------------------------------ -+ -+# The default pretty-printer. -+# -+# This uses :mod:`IPython.lib.pretty` to compute the format data of the object. -+# If the object cannot be pretty printed, :func:`repr` is used. See the -+# documentation of :mod:`IPython.lib.pretty` for details on how to write pretty -+# printers. Here is a simple example:: -+# -+# def dtype_pprinter(obj, p, cycle): -+# if cycle: -+# return p.text('dtype(...)') -+# if hasattr(obj, 'fields'): -+# if obj.fields is None: -+# p.text(repr(obj)) -+# else: -+# p.begin_group(7, 'dtype([') -+# for i, field in enumerate(obj.descr): -+# if i > 0: -+# p.text(',') -+# p.breakable() -+# p.pretty(field) -+# p.end_group(7, '])') -+ -+# PlainTextFormatter will inherit config from: BaseFormatter -+ -+# -+# c.PlainTextFormatter.newline = '\n' -+ -+# -+# c.PlainTextFormatter.max_width = 79 -+ -+# -+# c.PlainTextFormatter.verbose = False -+ -+# -+# c.PlainTextFormatter.pprint = True -+ -+# -+# c.PlainTextFormatter.singleton_printers = {} -+ -+# -+# c.PlainTextFormatter.type_printers = {} -+ -+# Truncate large collections (lists, dicts, tuples, sets) to this size. -+# -+# Set to 0 to disable truncation. -+# c.PlainTextFormatter.max_seq_length = 1000 -+ -+# -+# c.PlainTextFormatter.deferred_printers = {} -+ -+# -+# c.PlainTextFormatter.float_precision = '' -+ -+#------------------------------------------------------------------------------ -+# IPCompleter configuration -+#------------------------------------------------------------------------------ -+ -+# Extension of the completer class with IPython-specific features -+ -+# IPCompleter will inherit config from: Completer -+ -+# Whether to merge completion results into a single list -+# -+# If False, only the completion results from the first non-empty completer will -+# be returned. -+# c.IPCompleter.merge_completions = True -+ -+# Activate greedy completion -+# -+# This will enable completion on elements of lists, results of function calls, -+# etc., but can be unsafe because the code is actually evaluated on TAB. -+# c.IPCompleter.greedy = False -+ -+# Instruct the completer to use __all__ for the completion -+# -+# Specifically, when completing on ``object.<tab>``. -+# -+# When True: only those names in obj.__all__ will be included. -+# -+# When False [default]: the __all__ attribute is ignored -+# c.IPCompleter.limit_to__all__ = False -+ -+# Instruct the completer to omit private method names -+# -+# Specifically, when completing on ``object.<tab>``. -+# -+# When 2 [default]: all names that start with '_' will be excluded. -+# -+# When 1: all 'magic' names (``__foo__``) will be excluded. -+# -+# When 0: nothing will be excluded. -+# c.IPCompleter.omit__names = 2 -+ -+#------------------------------------------------------------------------------ -+# ScriptMagics configuration -+#------------------------------------------------------------------------------ -+ -+# Magics for talking to scripts -+# -+# This defines a base `%%script` cell magic for running a cell with a program in -+# a subprocess, and registers a few top-level magics that call %%script with -+# common interpreters. -+ -+# Extra script cell magics to define -+# -+# This generates simple wrappers of `%%script foo` as `%%foo`. -+# -+# If you want to add script magics that aren't on your path, specify them in -+# script_paths -+# c.ScriptMagics.script_magics = [] -+ -+# Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby' -+# -+# Only necessary for items in script_magics where the default path will not find -+# the right interpreter. -+# c.ScriptMagics.script_paths = {} -+ -+#------------------------------------------------------------------------------ -+# StoreMagics configuration -+#------------------------------------------------------------------------------ -+ -+# Lightweight persistence for python variables. -+# -+# Provides the %store magic. -+ -+# If True, any %store-d variables will be automatically restored when IPython -+# starts. -+# c.StoreMagics.autorestore = False - ---- jupyter_core/tests/dotipython_empty/profile_default/ipython_console_config.py -+++ jupyter_core/tests/dotipython_empty/profile_default/ipython_console_config.py -@@ -0,0 +1,531 @@ -+# Configuration file for ipython-console. -+ -+c = get_config() -+ -+#------------------------------------------------------------------------------ -+# ZMQTerminalIPythonApp configuration -+#------------------------------------------------------------------------------ -+ -+# ZMQTerminalIPythonApp will inherit config from: TerminalIPythonApp, -+# BaseIPythonApplication, Application, InteractiveShellApp, IPythonConsoleApp, -+# ConnectionFileMixin -+ -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be -+# hidden from tools like %who? -+# c.ZMQTerminalIPythonApp.hide_initial_ns = True -+ -+# set the heartbeat port [default: random] -+# c.ZMQTerminalIPythonApp.hb_port = 0 -+ -+# A list of dotted module names of IPython extensions to load. -+# c.ZMQTerminalIPythonApp.extensions = [] -+ -+# Execute the given command string. -+# c.ZMQTerminalIPythonApp.code_to_run = '' -+ -+# Path to the ssh key to use for logging in to the ssh server. -+# c.ZMQTerminalIPythonApp.sshkey = '' -+ -+# The date format used by logging formatters for %(asctime)s -+# c.ZMQTerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S' -+ -+# set the control (ROUTER) port [default: random] -+# c.ZMQTerminalIPythonApp.control_port = 0 -+ -+# Reraise exceptions encountered loading IPython extensions? -+# c.ZMQTerminalIPythonApp.reraise_ipython_extension_failures = False -+ -+# Set the log level by value or name. -+# c.ZMQTerminalIPythonApp.log_level = 30 -+ -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython -+# startup. -+# c.ZMQTerminalIPythonApp.exec_PYTHONSTARTUP = True -+ -+# Pre-load matplotlib and numpy for interactive use, selecting a particular -+# matplotlib backend and loop integration. -+# c.ZMQTerminalIPythonApp.pylab = None -+ -+# Run the module as a script. -+# c.ZMQTerminalIPythonApp.module_to_run = '' -+ -+# Whether to display a banner upon starting IPython. -+# c.ZMQTerminalIPythonApp.display_banner = True -+ -+# dotted module name of an IPython extension to load. -+# c.ZMQTerminalIPythonApp.extra_extension = '' -+ -+# Create a massive crash report when IPython encounters what may be an internal -+# error. The default is to append a short message to the usual traceback -+# c.ZMQTerminalIPythonApp.verbose_crash = False -+ -+# Whether to overwrite existing config files when copying -+# c.ZMQTerminalIPythonApp.overwrite = False -+ -+# The IPython profile to use. -+# c.ZMQTerminalIPythonApp.profile = 'default' -+ -+# If a command or file is given via the command-line, e.g. 'ipython foo.py', -+# start an interactive shell after executing the file or command. -+# c.ZMQTerminalIPythonApp.force_interact = False -+ -+# List of files to run at IPython startup. -+# c.ZMQTerminalIPythonApp.exec_files = [] -+ -+# Start IPython quickly by skipping the loading of config files. -+# c.ZMQTerminalIPythonApp.quick = False -+ -+# The Logging format template -+# c.ZMQTerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s' -+ -+# Whether to install the default config files into the profile dir. If a new -+# profile is being created, and IPython contains config files for that profile, -+# then they will be staged into the new directory. Otherwise, default config -+# files will be automatically generated. -+# c.ZMQTerminalIPythonApp.copy_config_files = False -+ -+# set the stdin (ROUTER) port [default: random] -+# c.ZMQTerminalIPythonApp.stdin_port = 0 -+ -+# Path to an extra config file to load. -+# -+# If specified, load this config file in addition to any other IPython config. -+# c.ZMQTerminalIPythonApp.extra_config_file = '' -+ -+# lines of code to run at IPython startup. -+# c.ZMQTerminalIPythonApp.exec_lines = [] -+ -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx', -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx'). -+# c.ZMQTerminalIPythonApp.gui = None -+ -+# A file to be run -+# c.ZMQTerminalIPythonApp.file_to_run = '' -+ -+# Configure matplotlib for interactive use with the default matplotlib backend. -+# c.ZMQTerminalIPythonApp.matplotlib = None -+ -+# Suppress warning messages about legacy config files -+# c.ZMQTerminalIPythonApp.ignore_old_config = False -+ -+# set the iopub (PUB) port [default: random] -+# c.ZMQTerminalIPythonApp.iopub_port = 0 -+ -+# -+# c.ZMQTerminalIPythonApp.transport = 'tcp' -+ -+# JSON file in which to store connection info [default: kernel-<pid>.json] -+# -+# This file will contain the IP, ports, and authentication key needed to connect -+# clients to this kernel. By default, this file will be created in the security -+# dir of the current profile, but can be specified by absolute path. -+# c.ZMQTerminalIPythonApp.connection_file = '' -+ -+# The name of the IPython directory. This directory is used for logging -+# configuration (through profiles), history storage, etc. The default is usually -+# $HOME/.ipython. This option can also be specified through the environment -+# variable IPYTHONDIR. -+# c.ZMQTerminalIPythonApp.ipython_dir = '' -+ -+# The SSH server to use to connect to the kernel. -+# c.ZMQTerminalIPythonApp.sshserver = '' -+ -+# Set to display confirmation dialog on exit. You can always use 'exit' or -+# 'quit', to force a direct exit without any confirmation. -+# c.ZMQTerminalIPythonApp.confirm_exit = True -+ -+# set the shell (ROUTER) port [default: random] -+# c.ZMQTerminalIPythonApp.shell_port = 0 -+ -+# The name of the default kernel to start. -+# c.ZMQTerminalIPythonApp.kernel_name = 'python' -+ -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and -+# an ``import *`` is done from numpy and pylab, when using pylab mode. -+# -+# When False, pylab mode should not import any names into the user namespace. -+# c.ZMQTerminalIPythonApp.pylab_import_all = True -+ -+# Connect to an already running kernel -+# c.ZMQTerminalIPythonApp.existing = '' -+ -+# Set the kernel's IP address [default localhost]. If the IP address is -+# something other than localhost, then Consoles on other machines will be able -+# to connect to the Kernel, so be careful! -+# c.ZMQTerminalIPythonApp.ip = '' -+ -+#------------------------------------------------------------------------------ -+# ZMQTerminalInteractiveShell configuration -+#------------------------------------------------------------------------------ -+ -+# A subclass of TerminalInteractiveShell that uses the 0MQ kernel -+ -+# ZMQTerminalInteractiveShell will inherit config from: -+# TerminalInteractiveShell, InteractiveShell -+ -+# -+# c.ZMQTerminalInteractiveShell.history_length = 10000 -+ -+# auto editing of files with syntax errors. -+# c.ZMQTerminalInteractiveShell.autoedit_syntax = False -+ -+# If True, anything that would be passed to the pager will be displayed as -+# regular output instead. -+# c.ZMQTerminalInteractiveShell.display_page = False -+ -+# -+# c.ZMQTerminalInteractiveShell.debug = False -+ -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run -+# interactively (displaying output from expressions). -+# c.ZMQTerminalInteractiveShell.ast_node_interactivity = 'last_expr' -+ -+# Start logging to the default log file in overwrite mode. Use `logappend` to -+# specify a log file to **append** logs to. -+# c.ZMQTerminalInteractiveShell.logstart = False -+ -+# Set the size of the output cache. The default is 1000, you can change it -+# permanently in your config file. Setting it to 0 completely disables the -+# caching system, and the minimum value accepted is 20 (if you provide a value -+# less than 20, it is reset to 0 and a warning is issued). This limit is -+# defined because otherwise you'll spend more time re-flushing a too small cache -+# than working -+# c.ZMQTerminalInteractiveShell.cache_size = 1000 -+ -+# The shell program to be used for paging. -+# c.ZMQTerminalInteractiveShell.pager = 'less' -+ -+# The name of the logfile to use. -+# c.ZMQTerminalInteractiveShell.logfile = '' -+ -+# Save multi-line entries as one entry in readline history -+# c.ZMQTerminalInteractiveShell.multiline_history = True -+ -+# -+# c.ZMQTerminalInteractiveShell.readline_remove_delims = '-/~' -+ -+# Enable magic commands to be called without the leading %. -+# c.ZMQTerminalInteractiveShell.automagic = True -+ -+# Prefix to add to outputs coming from clients other than this one. -+# -+# Only relevant if include_other_output is True. -+# c.ZMQTerminalInteractiveShell.other_output_prefix = '[remote] ' -+ -+# -+# c.ZMQTerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard'] -+ -+# Use colors for displaying information about objects. Because this information -+# is passed through a pager (like 'less'), and some pagers get confused with -+# color codes, this capability can be turned off. -+# c.ZMQTerminalInteractiveShell.color_info = True -+ -+# Callable object called via 'callable' image handler with one argument, `data`, -+# which is `msg["content"]["data"]` where `msg` is the message from iopub -+# channel. For exmaple, you can find base64 encoded PNG data as -+# `data['image/png']`. -+# c.ZMQTerminalInteractiveShell.callable_image_handler = None -+ -+# Command to invoke an image viewer program when you are using 'stream' image -+# handler. This option is a list of string where the first element is the -+# command itself and reminders are the options for the command. Raw image data -+# is given as STDIN to the program. -+# c.ZMQTerminalInteractiveShell.stream_image_handler = [] -+ -+# -+# c.ZMQTerminalInteractiveShell.separate_out2 = '' -+ -+# Autoindent IPython code entered interactively. -+# c.ZMQTerminalInteractiveShell.autoindent = True -+ -+# The part of the banner to be printed after the profile -+# c.ZMQTerminalInteractiveShell.banner2 = '' -+ -+# Don't call post-execute functions that have failed in the past. -+# c.ZMQTerminalInteractiveShell.disable_failing_post_execute = False -+ -+# Deprecated, use PromptManager.out_template -+# c.ZMQTerminalInteractiveShell.prompt_out = 'Out[\\#]: ' -+ -+# -+# c.ZMQTerminalInteractiveShell.object_info_string_level = 0 -+ -+# -+# c.ZMQTerminalInteractiveShell.separate_out = '' -+ -+# Automatically call the pdb debugger after every exception. -+# c.ZMQTerminalInteractiveShell.pdb = False -+ -+# Deprecated, use PromptManager.in_template -+# c.ZMQTerminalInteractiveShell.prompt_in1 = 'In [\\#]: ' -+ -+# -+# c.ZMQTerminalInteractiveShell.separate_in = '\n' -+ -+# -+# c.ZMQTerminalInteractiveShell.wildcards_case_sensitive = True -+ -+# Enable auto setting the terminal title. -+# c.ZMQTerminalInteractiveShell.term_title = False -+ -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload -+# module which reloads changes in modules recursively (it replaces the reload() -+# function, so you don't need to change anything to use it). deep_reload() -+# forces a full reload of modules whose code may have changed, which the default -+# reload() function does not. When deep_reload is off, IPython will use the -+# normal reload(), but deep_reload will still be available as dreload(). -+# c.ZMQTerminalInteractiveShell.deep_reload = False -+ -+# Deprecated, use PromptManager.in2_template -+# c.ZMQTerminalInteractiveShell.prompt_in2 = ' .\\D.: ' -+ -+# Whether to include output from clients other than this one sharing the same -+# kernel. -+# -+# Outputs are not displayed until enter is pressed. -+# c.ZMQTerminalInteractiveShell.include_other_output = False -+ -+# Preferred object representation MIME type in order. First matched MIME type -+# will be used. -+# c.ZMQTerminalInteractiveShell.mime_preference = ['image/png', 'image/jpeg', 'image/svg+xml'] -+ -+# -+# c.ZMQTerminalInteractiveShell.readline_use = True -+ -+# Make IPython automatically call any callable object even if you didn't type -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically. -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where -+# it is not applied if there are no more arguments on the line, and '2' for -+# 'full' autocall, where all callable objects are automatically called (even if -+# no arguments are present). -+# c.ZMQTerminalInteractiveShell.autocall = 0 -+ -+# The part of the banner to be printed before the profile -+# c.ZMQTerminalInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n' -+ -+# Handler for image type output. This is useful, for example, when connecting -+# to the kernel in which pylab inline backend is activated. There are four -+# handlers defined. 'PIL': Use Python Imaging Library to popup image; 'stream': -+# Use an external program to show the image. Image will be fed into the STDIN -+# of the program. You will need to configure `stream_image_handler`; -+# 'tempfile': Use an external program to show the image. Image will be saved in -+# a temporally file and the program is called with the temporally file. You -+# will need to configure `tempfile_image_handler`; 'callable': You can set any -+# Python callable which is called with the image data. You will need to -+# configure `callable_image_handler`. -+# c.ZMQTerminalInteractiveShell.image_handler = None -+ -+# Set the color scheme (NoColor, Linux, or LightBG). -+# c.ZMQTerminalInteractiveShell.colors = 'LightBG' -+ -+# Set the editor used by IPython (default to $EDITOR/vi/notepad). -+# c.ZMQTerminalInteractiveShell.editor = 'mate -w' -+ -+# Show rewritten input, e.g. for autocall. -+# c.ZMQTerminalInteractiveShell.show_rewritten_input = True -+ -+# -+# c.ZMQTerminalInteractiveShell.xmode = 'Context' -+ -+# -+# c.ZMQTerminalInteractiveShell.quiet = False -+ -+# A list of ast.NodeTransformer subclass instances, which will be applied to -+# user input before code is run. -+# c.ZMQTerminalInteractiveShell.ast_transformers = [] -+ -+# -+# c.ZMQTerminalInteractiveShell.ipython_dir = '' -+ -+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix, -+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a -+# direct exit without any confirmation. -+# c.ZMQTerminalInteractiveShell.confirm_exit = True -+ -+# Deprecated, use PromptManager.justify -+# c.ZMQTerminalInteractiveShell.prompts_pad_left = True -+ -+# Timeout for giving up on a kernel (in seconds). -+# -+# On first connect and restart, the console tests whether the kernel is running -+# and responsive by sending kernel_info_requests. This sets the timeout in -+# seconds for how long the kernel can take before being presumed dead. -+# c.ZMQTerminalInteractiveShell.kernel_timeout = 60 -+ -+# Number of lines of your screen, used to control printing of very long strings. -+# Strings longer than this number of lines will be sent through a pager instead -+# of directly printed. The default value for this is 0, which means IPython -+# will auto-detect your screen size every time it needs to print certain -+# potentially long strings (this doesn't change the behavior of the 'print' -+# keyword, it's only triggered internally). If for some reason this isn't -+# working well (it needs curses support), specify it yourself. Otherwise don't -+# change the default. -+# c.ZMQTerminalInteractiveShell.screen_length = 0 -+ -+# Start logging to the given file in append mode. Use `logfile` to specify a log -+# file to **overwrite** logs to. -+# c.ZMQTerminalInteractiveShell.logappend = '' -+ -+# Command to invoke an image viewer program when you are using 'tempfile' image -+# handler. This option is a list of string where the first element is the -+# command itself and reminders are the options for the command. You can use -+# {file} and {format} in the string to represent the location of the generated -+# image file and image format. -+# c.ZMQTerminalInteractiveShell.tempfile_image_handler = [] -+ -+#------------------------------------------------------------------------------ -+# KernelManager configuration -+#------------------------------------------------------------------------------ -+ -+# Manages a single kernel in a subprocess on this host. -+# -+# This version starts kernels with Popen. -+ -+# KernelManager will inherit config from: ConnectionFileMixin -+ -+# set the heartbeat port [default: random] -+# c.KernelManager.hb_port = 0 -+ -+# set the stdin (ROUTER) port [default: random] -+# c.KernelManager.stdin_port = 0 -+ -+# -+# c.KernelManager.transport = 'tcp' -+ -+# JSON file in which to store connection info [default: kernel-<pid>.json] -+# -+# This file will contain the IP, ports, and authentication key needed to connect -+# clients to this kernel. By default, this file will be created in the security -+# dir of the current profile, but can be specified by absolute path. -+# c.KernelManager.connection_file = '' -+ -+# set the control (ROUTER) port [default: random] -+# c.KernelManager.control_port = 0 -+ -+# set the shell (ROUTER) port [default: random] -+# c.KernelManager.shell_port = 0 -+ -+# Should we autorestart the kernel if it dies. -+# c.KernelManager.autorestart = False -+ -+# DEPRECATED: Use kernel_name instead. -+# -+# The Popen Command to launch the kernel. Override this if you have a custom -+# kernel. If kernel_cmd is specified in a configuration file, IPython does not -+# pass any arguments to the kernel, because it cannot make any assumptions about -+# the arguments that the kernel understands. In particular, this means that the -+# kernel does not receive the option --debug if it given on the IPython command -+# line. -+# c.KernelManager.kernel_cmd = [] -+ -+# Set the kernel's IP address [default localhost]. If the IP address is -+# something other than localhost, then Consoles on other machines will be able -+# to connect to the Kernel, so be careful! -+# c.KernelManager.ip = '' -+ -+# set the iopub (PUB) port [default: random] -+# c.KernelManager.iopub_port = 0 -+ -+#------------------------------------------------------------------------------ -+# ProfileDir configuration -+#------------------------------------------------------------------------------ -+ -+# An object to manage the profile directory and its resources. -+# -+# The profile directory is used by all IPython applications, to manage -+# configuration, logging and security. -+# -+# This object knows how to find, create and manage these directories. This -+# should be used by any code that wants to handle profiles. -+ -+# Set the profile location directly. This overrides the logic used by the -+# `profile` option. -+# c.ProfileDir.location = '' -+ -+#------------------------------------------------------------------------------ -+# Session configuration -+#------------------------------------------------------------------------------ -+ -+# Object for handling serialization and sending of messages. -+# -+# The Session object handles building messages and sending them with ZMQ sockets -+# or ZMQStream objects. Objects can communicate with each other over the -+# network via Session objects, and only need to work with the dict-based IPython -+# message spec. The Session will handle serialization/deserialization, security, -+# and metadata. -+# -+# Sessions support configurable serialization via packer/unpacker traits, and -+# signing with HMAC digests via the key/keyfile traits. -+# -+# Parameters ---------- -+# -+# debug : bool -+# whether to trigger extra debugging statements -+# packer/unpacker : str : 'json', 'pickle' or import_string -+# importstrings for methods to serialize message parts. If just -+# 'json' or 'pickle', predefined JSON and pickle packers will be used. -+# Otherwise, the entire importstring must be used. -+# -+# The functions must accept at least valid JSON input, and output *bytes*. -+# -+# For example, to use msgpack: -+# packer = 'msgpack.packb', unpacker='msgpack.unpackb' -+# pack/unpack : callables -+# You can also set the pack/unpack callables for serialization directly. -+# session : bytes -+# the ID of this Session object. The default is to generate a new UUID. -+# username : unicode -+# username added to message headers. The default is to ask the OS. -+# key : bytes -+# The key used to initialize an HMAC signature. If unset, messages -+# will not be signed or checked. -+# keyfile : filepath -+# The file containing a key. If this is set, `key` will be initialized -+# to the contents of the file. -+ -+# The digest scheme used to construct the message signatures. Must have the form -+# 'hmac-HASH'. -+# c.Session.signature_scheme = 'hmac-sha256' -+ -+# The maximum number of digests to remember. -+# -+# The digest history will be culled when it exceeds this value. -+# c.Session.digest_history_size = 65536 -+ -+# The name of the unpacker for unserializing messages. Only used with custom -+# functions for `packer`. -+# c.Session.unpacker = 'json' -+ -+# The name of the packer for serializing messages. Should be one of 'json', -+# 'pickle', or an import name for a custom callable serializer. -+# c.Session.packer = 'json' -+ -+# Username for the Session. Default is your system username. -+# c.Session.username = 'minrk' -+ -+# Debug output in the Session -+# c.Session.debug = False -+ -+# path to file containing execution key. -+# c.Session.keyfile = '' -+ -+# The maximum number of items for a container to be introspected for custom -+# serialization. Containers larger than this are pickled outright. -+# c.Session.item_threshold = 64 -+ -+# Threshold (in bytes) beyond which an object's buffer should be extracted to -+# avoid pickling. -+# c.Session.buffer_threshold = 1024 -+ -+# The UUID identifying this session. -+# c.Session.session = '' -+ -+# Threshold (in bytes) beyond which a buffer should be sent without copying. -+# c.Session.copy_threshold = 65536 -+ -+# execution key, for signing messages. -+# c.Session.key = b'' -+ -+# Metadata dictionary, which serves as the default top-level metadata dict for -+# each message. -+# c.Session.metadata = {} - ---- jupyter_core/tests/dotipython_empty/profile_default/ipython_kernel_config.py -+++ jupyter_core/tests/dotipython_empty/profile_default/ipython_kernel_config.py -@@ -0,0 +1,408 @@ -+# Configuration file for ipython-kernel. -+ -+c = get_config() -+ -+#------------------------------------------------------------------------------ -+# IPKernelApp configuration -+#------------------------------------------------------------------------------ -+ -+# IPython: an enhanced interactive Python shell. -+ -+# IPKernelApp will inherit config from: BaseIPythonApplication, Application, -+# InteractiveShellApp, ConnectionFileMixin -+ -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be -+# hidden from tools like %who? -+# c.IPKernelApp.hide_initial_ns = True -+ -+# The importstring for the DisplayHook factory -+# c.IPKernelApp.displayhook_class = 'IPython.kernel.zmq.displayhook.ZMQDisplayHook' -+ -+# A list of dotted module names of IPython extensions to load. -+# c.IPKernelApp.extensions = [] -+ -+# Execute the given command string. -+# c.IPKernelApp.code_to_run = '' -+ -+# redirect stderr to the null device -+# c.IPKernelApp.no_stderr = False -+ -+# The date format used by logging formatters for %(asctime)s -+# c.IPKernelApp.log_datefmt = '%Y-%m-%d %H:%M:%S' -+ -+# Whether to create profile dir if it doesn't exist -+# c.IPKernelApp.auto_create = False -+ -+# Reraise exceptions encountered loading IPython extensions? -+# c.IPKernelApp.reraise_ipython_extension_failures = False -+ -+# Set the log level by value or name. -+# c.IPKernelApp.log_level = 30 -+ -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython -+# startup. -+# c.IPKernelApp.exec_PYTHONSTARTUP = True -+ -+# Pre-load matplotlib and numpy for interactive use, selecting a particular -+# matplotlib backend and loop integration. -+# c.IPKernelApp.pylab = None -+ -+# Run the module as a script. -+# c.IPKernelApp.module_to_run = '' -+ -+# The importstring for the OutStream factory -+# c.IPKernelApp.outstream_class = 'IPython.kernel.zmq.iostream.OutStream' -+ -+# dotted module name of an IPython extension to load. -+# c.IPKernelApp.extra_extension = '' -+ -+# Create a massive crash report when IPython encounters what may be an internal -+# error. The default is to append a short message to the usual traceback -+# c.IPKernelApp.verbose_crash = False -+ -+# Whether to overwrite existing config files when copying -+# c.IPKernelApp.overwrite = False -+ -+# The IPython profile to use. -+# c.IPKernelApp.profile = 'default' -+ -+# List of files to run at IPython startup. -+# c.IPKernelApp.exec_files = [] -+ -+# The Logging format template -+# c.IPKernelApp.log_format = '[%(name)s]%(highlevel)s %(message)s' -+ -+# Whether to install the default config files into the profile dir. If a new -+# profile is being created, and IPython contains config files for that profile, -+# then they will be staged into the new directory. Otherwise, default config -+# files will be automatically generated. -+# c.IPKernelApp.copy_config_files = False -+ -+# set the stdin (ROUTER) port [default: random] -+# c.IPKernelApp.stdin_port = 0 -+ -+# Path to an extra config file to load. -+# -+# If specified, load this config file in addition to any other IPython config. -+# c.IPKernelApp.extra_config_file = '' -+ -+# lines of code to run at IPython startup. -+# c.IPKernelApp.exec_lines = [] -+ -+# set the control (ROUTER) port [default: random] -+# c.IPKernelApp.control_port = 0 -+ -+# set the heartbeat port [default: random] -+# c.IPKernelApp.hb_port = 0 -+ -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx', -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx'). -+# c.IPKernelApp.gui = None -+ -+# A file to be run -+# c.IPKernelApp.file_to_run = '' -+ -+# The name of the IPython directory. This directory is used for logging -+# configuration (through profiles), history storage, etc. The default is usually -+# $HOME/.ipython. This option can also be specified through the environment -+# variable IPYTHONDIR. -+# c.IPKernelApp.ipython_dir = '' -+ -+# kill this process if its parent dies. On Windows, the argument specifies the -+# HANDLE of the parent process, otherwise it is simply boolean. -+# c.IPKernelApp.parent_handle = 0 -+ -+# Configure matplotlib for interactive use with the default matplotlib backend. -+# c.IPKernelApp.matplotlib = None -+ -+# set the iopub (PUB) port [default: random] -+# c.IPKernelApp.iopub_port = 0 -+ -+# redirect stdout to the null device -+# c.IPKernelApp.no_stdout = False -+ -+# -+# c.IPKernelApp.transport = 'tcp' -+ -+# JSON file in which to store connection info [default: kernel-<pid>.json] -+# -+# This file will contain the IP, ports, and authentication key needed to connect -+# clients to this kernel. By default, this file will be created in the security -+# dir of the current profile, but can be specified by absolute path. -+# c.IPKernelApp.connection_file = '' -+ -+# The Kernel subclass to be used. -+# -+# This should allow easy re-use of the IPKernelApp entry point to configure and -+# launch kernels other than IPython's own. -+# c.IPKernelApp.kernel_class = <class 'IPython.kernel.zmq.ipkernel.IPythonKernel'> -+ -+# ONLY USED ON WINDOWS Interrupt this process when the parent is signaled. -+# c.IPKernelApp.interrupt = 0 -+ -+# set the shell (ROUTER) port [default: random] -+# c.IPKernelApp.shell_port = 0 -+ -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and -+# an ``import *`` is done from numpy and pylab, when using pylab mode. -+# -+# When False, pylab mode should not import any names into the user namespace. -+# c.IPKernelApp.pylab_import_all = True -+ -+# Set the kernel's IP address [default localhost]. If the IP address is -+# something other than localhost, then Consoles on other machines will be able -+# to connect to the Kernel, so be careful! -+# c.IPKernelApp.ip = '' -+ -+#------------------------------------------------------------------------------ -+# IPythonKernel configuration -+#------------------------------------------------------------------------------ -+ -+# IPythonKernel will inherit config from: Kernel -+ -+# -+# c.IPythonKernel._execute_sleep = 0.0005 -+ -+# Whether to use appnope for compatiblity with OS X App Nap. -+# -+# Only affects OS X >= 10.9. -+# c.IPythonKernel._darwin_app_nap = True -+ -+# -+# c.IPythonKernel._poll_interval = 0.05 -+ -+#------------------------------------------------------------------------------ -+# ZMQInteractiveShell configuration -+#------------------------------------------------------------------------------ -+ -+# A subclass of InteractiveShell for ZMQ. -+ -+# ZMQInteractiveShell will inherit config from: InteractiveShell -+ -+# -+# c.ZMQInteractiveShell.object_info_string_level = 0 -+ -+# -+# c.ZMQInteractiveShell.separate_out = '' -+ -+# Automatically call the pdb debugger after every exception. -+# c.ZMQInteractiveShell.pdb = False -+ -+# -+# c.ZMQInteractiveShell.ipython_dir = '' -+ -+# -+# c.ZMQInteractiveShell.history_length = 10000 -+ -+# -+# c.ZMQInteractiveShell.readline_remove_delims = '-/~' -+ -+# If True, anything that would be passed to the pager will be displayed as -+# regular output instead. -+# c.ZMQInteractiveShell.display_page = False -+ -+# Deprecated, use PromptManager.in2_template -+# c.ZMQInteractiveShell.prompt_in2 = ' .\\D.: ' -+ -+# -+# c.ZMQInteractiveShell.separate_in = '\n' -+ -+# Start logging to the default log file in overwrite mode. Use `logappend` to -+# specify a log file to **append** logs to. -+# c.ZMQInteractiveShell.logstart = False -+ -+# Set the size of the output cache. The default is 1000, you can change it -+# permanently in your config file. Setting it to 0 completely disables the -+# caching system, and the minimum value accepted is 20 (if you provide a value -+# less than 20, it is reset to 0 and a warning is issued). This limit is -+# defined because otherwise you'll spend more time re-flushing a too small cache -+# than working -+# c.ZMQInteractiveShell.cache_size = 1000 -+ -+# -+# c.ZMQInteractiveShell.wildcards_case_sensitive = True -+ -+# The name of the logfile to use. -+# c.ZMQInteractiveShell.logfile = '' -+ -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run -+# interactively (displaying output from expressions). -+# c.ZMQInteractiveShell.ast_node_interactivity = 'last_expr' -+ -+# -+# c.ZMQInteractiveShell.debug = False -+ -+# -+# c.ZMQInteractiveShell.quiet = False -+ -+# Save multi-line entries as one entry in readline history -+# c.ZMQInteractiveShell.multiline_history = True -+ -+# Deprecated, use PromptManager.in_template -+# c.ZMQInteractiveShell.prompt_in1 = 'In [\\#]: ' -+ -+# Enable magic commands to be called without the leading %. -+# c.ZMQInteractiveShell.automagic = True -+ -+# The part of the banner to be printed before the profile -+# c.ZMQInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n' -+ -+# Make IPython automatically call any callable object even if you didn't type -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically. -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where -+# it is not applied if there are no more arguments on the line, and '2' for -+# 'full' autocall, where all callable objects are automatically called (even if -+# no arguments are present). -+# c.ZMQInteractiveShell.autocall = 0 -+ -+# -+# c.ZMQInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard'] -+ -+# Set the color scheme (NoColor, Linux, or LightBG). -+# c.ZMQInteractiveShell.colors = 'LightBG' -+ -+# Use colors for displaying information about objects. Because this information -+# is passed through a pager (like 'less'), and some pagers get confused with -+# color codes, this capability can be turned off. -+# c.ZMQInteractiveShell.color_info = True -+ -+# Show rewritten input, e.g. for autocall. -+# c.ZMQInteractiveShell.show_rewritten_input = True -+ -+# -+# c.ZMQInteractiveShell.xmode = 'Context' -+ -+# -+# c.ZMQInteractiveShell.separate_out2 = '' -+ -+# The part of the banner to be printed after the profile -+# c.ZMQInteractiveShell.banner2 = '' -+ -+# Start logging to the given file in append mode. Use `logfile` to specify a log -+# file to **overwrite** logs to. -+# c.ZMQInteractiveShell.logappend = '' -+ -+# Don't call post-execute functions that have failed in the past. -+# c.ZMQInteractiveShell.disable_failing_post_execute = False -+ -+# Deprecated, use PromptManager.out_template -+# c.ZMQInteractiveShell.prompt_out = 'Out[\\#]: ' -+ -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload -+# module which reloads changes in modules recursively (it replaces the reload() -+# function, so you don't need to change anything to use it). deep_reload() -+# forces a full reload of modules whose code may have changed, which the default -+# reload() function does not. When deep_reload is off, IPython will use the -+# normal reload(), but deep_reload will still be available as dreload(). -+# c.ZMQInteractiveShell.deep_reload = False -+ -+# Deprecated, use PromptManager.justify -+# c.ZMQInteractiveShell.prompts_pad_left = True -+ -+# A list of ast.NodeTransformer subclass instances, which will be applied to -+# user input before code is run. -+# c.ZMQInteractiveShell.ast_transformers = [] -+ -+#------------------------------------------------------------------------------ -+# ProfileDir configuration -+#------------------------------------------------------------------------------ -+ -+# An object to manage the profile directory and its resources. -+# -+# The profile directory is used by all IPython applications, to manage -+# configuration, logging and security. -+# -+# This object knows how to find, create and manage these directories. This -+# should be used by any code that wants to handle profiles. -+ -+# Set the profile location directly. This overrides the logic used by the -+# `profile` option. -+# c.ProfileDir.location = '' -+ -+#------------------------------------------------------------------------------ -+# Session configuration -+#------------------------------------------------------------------------------ -+ -+# Object for handling serialization and sending of messages. -+# -+# The Session object handles building messages and sending them with ZMQ sockets -+# or ZMQStream objects. Objects can communicate with each other over the -+# network via Session objects, and only need to work with the dict-based IPython -+# message spec. The Session will handle serialization/deserialization, security, -+# and metadata. -+# -+# Sessions support configurable serialization via packer/unpacker traits, and -+# signing with HMAC digests via the key/keyfile traits. -+# -+# Parameters ---------- -+# -+# debug : bool -+# whether to trigger extra debugging statements -+# packer/unpacker : str : 'json', 'pickle' or import_string -+# importstrings for methods to serialize message parts. If just -+# 'json' or 'pickle', predefined JSON and pickle packers will be used. -+# Otherwise, the entire importstring must be used. -+# -+# The functions must accept at least valid JSON input, and output *bytes*. -+# -+# For example, to use msgpack: -+# packer = 'msgpack.packb', unpacker='msgpack.unpackb' -+# pack/unpack : callables -+# You can also set the pack/unpack callables for serialization directly. -+# session : bytes -+# the ID of this Session object. The default is to generate a new UUID. -+# username : unicode -+# username added to message headers. The default is to ask the OS. -+# key : bytes -+# The key used to initialize an HMAC signature. If unset, messages -+# will not be signed or checked. -+# keyfile : filepath -+# The file containing a key. If this is set, `key` will be initialized -+# to the contents of the file. -+ -+# The digest scheme used to construct the message signatures. Must have the form -+# 'hmac-HASH'. -+# c.Session.signature_scheme = 'hmac-sha256' -+ -+# The maximum number of digests to remember. -+# -+# The digest history will be culled when it exceeds this value. -+# c.Session.digest_history_size = 65536 -+ -+# The name of the unpacker for unserializing messages. Only used with custom -+# functions for `packer`. -+# c.Session.unpacker = 'json' -+ -+# The name of the packer for serializing messages. Should be one of 'json', -+# 'pickle', or an import name for a custom callable serializer. -+# c.Session.packer = 'json' -+ -+# Username for the Session. Default is your system username. -+# c.Session.username = 'minrk' -+ -+# Debug output in the Session -+# c.Session.debug = False -+ -+# path to file containing execution key. -+# c.Session.keyfile = '' -+ -+# The maximum number of items for a container to be introspected for custom -+# serialization. Containers larger than this are pickled outright. -+# c.Session.item_threshold = 64 -+ -+# Threshold (in bytes) beyond which an object's buffer should be extracted to -+# avoid pickling. -+# c.Session.buffer_threshold = 1024 -+ -+# The UUID identifying this session. -+# c.Session.session = '' -+ -+# Threshold (in bytes) beyond which a buffer should be sent without copying. -+# c.Session.copy_threshold = 65536 -+ -+# execution key, for signing messages. -+# c.Session.key = b'' -+ -+# Metadata dictionary, which serves as the default top-level metadata dict for -+# each message. -+# c.Session.metadata = {} - ---- jupyter_core/tests/dotipython_empty/profile_default/ipython_nbconvert_config.py -+++ jupyter_core/tests/dotipython_empty/profile_default/ipython_nbconvert_config.py -@@ -0,0 +1,971 @@ -+# Configuration file for ipython-nbconvert. -+ -+c = get_config() -+ -+#------------------------------------------------------------------------------ -+# NbConvertApp configuration -+#------------------------------------------------------------------------------ -+ -+# This application is used to convert notebook files (*.ipynb) to various other -+# formats. -+# -+# WARNING: THE COMMANDLINE INTERFACE MAY CHANGE IN FUTURE RELEASES. -+ -+# NbConvertApp will inherit config from: BaseIPythonApplication, Application -+ -+# List of notebooks to convert. Wildcards are supported. Filenames passed -+# positionally will be added to the list. -+# c.NbConvertApp.notebooks = [] -+ -+# The IPython profile to use. -+# c.NbConvertApp.profile = 'default' -+ -+# The export format to be used. -+# c.NbConvertApp.export_format = 'html' -+ -+# The date format used by logging formatters for %(asctime)s -+# c.NbConvertApp.log_datefmt = '%Y-%m-%d %H:%M:%S' -+ -+# overwrite base name use for output files. can only be used when converting one -+# notebook at a time. -+# c.NbConvertApp.output_base = '' -+ -+# Create a massive crash report when IPython encounters what may be an internal -+# error. The default is to append a short message to the usual traceback -+# c.NbConvertApp.verbose_crash = False -+ -+# Path to an extra config file to load. -+# -+# If specified, load this config file in addition to any other IPython config. -+# c.NbConvertApp.extra_config_file = '' -+ -+# Writer class used to write the results of the conversion -+# c.NbConvertApp.writer_class = 'FilesWriter' -+ -+# PostProcessor class used to write the results of the conversion -+# c.NbConvertApp.postprocessor_class = '' -+ -+# Set the log level by value or name. -+# c.NbConvertApp.log_level = 30 -+ -+# The name of the IPython directory. This directory is used for logging -+# configuration (through profiles), history storage, etc. The default is usually -+# $HOME/.ipython. This option can also be specified through the environment -+# variable IPYTHONDIR. -+# c.NbConvertApp.ipython_dir = '' -+ -+# Whether to create profile dir if it doesn't exist -+# c.NbConvertApp.auto_create = False -+ -+# Whether to overwrite existing config files when copying -+# c.NbConvertApp.overwrite = False -+ -+# Whether to apply a suffix prior to the extension (only relevant when -+# converting to notebook format). The suffix is determined by the exporter, and -+# is usually '.nbconvert'. -+# c.NbConvertApp.use_output_suffix = True -+ -+# The Logging format template -+# c.NbConvertApp.log_format = '[%(name)s]%(highlevel)s %(message)s' -+ -+# Whether to install the default config files into the profile dir. If a new -+# profile is being created, and IPython contains config files for that profile, -+# then they will be staged into the new directory. Otherwise, default config -+# files will be automatically generated. -+# c.NbConvertApp.copy_config_files = False -+ -+#------------------------------------------------------------------------------ -+# NbConvertBase configuration -+#------------------------------------------------------------------------------ -+ -+# Global configurable class for shared config -+# -+# Useful for display data priority that might be use by many transformers -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.NbConvertBase.default_language = 'ipython' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.NbConvertBase.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# ProfileDir configuration -+#------------------------------------------------------------------------------ -+ -+# An object to manage the profile directory and its resources. -+# -+# The profile directory is used by all IPython applications, to manage -+# configuration, logging and security. -+# -+# This object knows how to find, create and manage these directories. This -+# should be used by any code that wants to handle profiles. -+ -+# Set the profile location directly. This overrides the logic used by the -+# `profile` option. -+# c.ProfileDir.location = '' -+ -+#------------------------------------------------------------------------------ -+# Exporter configuration -+#------------------------------------------------------------------------------ -+ -+# Class containing methods that sequentially run a list of preprocessors on a -+# NotebookNode object and then return the modified NotebookNode object and -+# accompanying resources dict. -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.Exporter.preprocessors = [] -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.Exporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# Extension of the file that should be written to disk -+# c.Exporter.file_extension = '.txt' -+ -+#------------------------------------------------------------------------------ -+# HTMLExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Exports a basic HTML document. This exporter assists with the export of HTML. -+# Inherit from it if you are writing your own HTML template and need custom -+# preprocessors/filters. If you don't need custom preprocessors/ filters, just -+# change the 'template_file' config option. -+ -+# HTMLExporter will inherit config from: TemplateExporter, Exporter -+ -+# -+# c.HTMLExporter.jinja_logic_block_end = '' -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.HTMLExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# -+# c.HTMLExporter.jinja_comment_block_start = '' -+ -+# Dictionary of filters, by name and namespace, to add to the Jinja environment. -+# c.HTMLExporter.filters = {} -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.HTMLExporter.preprocessors = [] -+ -+# Name of the template file to use -+# c.HTMLExporter.template_file = 'default' -+ -+# -+# c.HTMLExporter.template_extension = '.tpl' -+ -+# -+# c.HTMLExporter.jinja_logic_block_start = '' -+ -+# -+# c.HTMLExporter.jinja_variable_block_start = '' -+ -+# -+# c.HTMLExporter.template_path = ['.'] -+ -+# -+# c.HTMLExporter.jinja_comment_block_end = '' -+ -+# -+# c.HTMLExporter.jinja_variable_block_end = '' -+ -+# Extension of the file that should be written to disk -+# c.HTMLExporter.file_extension = '.txt' -+ -+# formats of raw cells to be included in this Exporter's output. -+# c.HTMLExporter.raw_mimetypes = [] -+ -+#------------------------------------------------------------------------------ -+# LatexExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Exports to a Latex template. Inherit from this class if your template is -+# LaTeX based and you need custom tranformers/filters. Inherit from it if you -+# are writing your own HTML template and need custom tranformers/filters. If -+# you don't need custom tranformers/filters, just change the 'template_file' -+# config option. Place your template in the special "/latex" subfolder of the -+# "../templates" folder. -+ -+# LatexExporter will inherit config from: TemplateExporter, Exporter -+ -+# -+# c.LatexExporter.jinja_logic_block_end = '*))' -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.LatexExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# -+# c.LatexExporter.jinja_comment_block_start = '((=' -+ -+# Dictionary of filters, by name and namespace, to add to the Jinja environment. -+# c.LatexExporter.filters = {} -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.LatexExporter.preprocessors = [] -+ -+# Name of the template file to use -+# c.LatexExporter.template_file = 'default' -+ -+# -+# c.LatexExporter.template_extension = '.tplx' -+ -+# -+# c.LatexExporter.jinja_logic_block_start = '((*' -+ -+# -+# c.LatexExporter.jinja_variable_block_start = '(((' -+ -+# -+# c.LatexExporter.template_path = ['.'] -+ -+# -+# c.LatexExporter.jinja_comment_block_end = '=))' -+ -+# -+# c.LatexExporter.jinja_variable_block_end = ')))' -+ -+# Extension of the file that should be written to disk -+# c.LatexExporter.file_extension = '.txt' -+ -+# formats of raw cells to be included in this Exporter's output. -+# c.LatexExporter.raw_mimetypes = [] -+ -+#------------------------------------------------------------------------------ -+# MarkdownExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Exports to a markdown document (.md) -+ -+# MarkdownExporter will inherit config from: TemplateExporter, Exporter -+ -+# -+# c.MarkdownExporter.jinja_logic_block_end = '' -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.MarkdownExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# -+# c.MarkdownExporter.jinja_comment_block_start = '' -+ -+# Dictionary of filters, by name and namespace, to add to the Jinja environment. -+# c.MarkdownExporter.filters = {} -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.MarkdownExporter.preprocessors = [] -+ -+# Name of the template file to use -+# c.MarkdownExporter.template_file = 'default' -+ -+# -+# c.MarkdownExporter.template_extension = '.tpl' -+ -+# -+# c.MarkdownExporter.jinja_logic_block_start = '' -+ -+# -+# c.MarkdownExporter.jinja_variable_block_start = '' -+ -+# -+# c.MarkdownExporter.template_path = ['.'] -+ -+# -+# c.MarkdownExporter.jinja_comment_block_end = '' -+ -+# -+# c.MarkdownExporter.jinja_variable_block_end = '' -+ -+# Extension of the file that should be written to disk -+# c.MarkdownExporter.file_extension = '.txt' -+ -+# formats of raw cells to be included in this Exporter's output. -+# c.MarkdownExporter.raw_mimetypes = [] -+ -+#------------------------------------------------------------------------------ -+# NotebookExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Exports to an IPython notebook. -+ -+# NotebookExporter will inherit config from: Exporter -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.NotebookExporter.preprocessors = [] -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.NotebookExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# Extension of the file that should be written to disk -+# c.NotebookExporter.file_extension = '.txt' -+ -+# The nbformat version to write. Use this to downgrade notebooks. -+# c.NotebookExporter.nbformat_version = 4 -+ -+#------------------------------------------------------------------------------ -+# PDFExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Writer designed to write to PDF files -+ -+# PDFExporter will inherit config from: LatexExporter, TemplateExporter, -+# Exporter -+ -+# -+# c.PDFExporter.jinja_logic_block_end = '*))' -+ -+# How many times latex will be called. -+# c.PDFExporter.latex_count = 3 -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.PDFExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# -+# c.PDFExporter.jinja_comment_block_start = '((=' -+ -+# Dictionary of filters, by name and namespace, to add to the Jinja environment. -+# c.PDFExporter.filters = {} -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.PDFExporter.preprocessors = [] -+ -+# Name of the template file to use -+# c.PDFExporter.template_file = 'default' -+ -+# -+# c.PDFExporter.template_extension = '.tplx' -+ -+# Whether to display the output of latex commands. -+# c.PDFExporter.verbose = False -+ -+# -+# c.PDFExporter.jinja_logic_block_start = '((*' -+ -+# Shell command used to compile latex. -+# c.PDFExporter.latex_command = ['pdflatex', '{filename}'] -+ -+# -+# c.PDFExporter.jinja_variable_block_start = '(((' -+ -+# -+# c.PDFExporter.template_path = ['.'] -+ -+# Shell command used to run bibtex. -+# c.PDFExporter.bib_command = ['bibtex', '{filename}'] -+ -+# -+# c.PDFExporter.jinja_comment_block_end = '=))' -+ -+# File extensions of temp files to remove after running. -+# c.PDFExporter.temp_file_exts = ['.aux', '.bbl', '.blg', '.idx', '.log', '.out'] -+ -+# -+# c.PDFExporter.jinja_variable_block_end = ')))' -+ -+# Extension of the file that should be written to disk -+# c.PDFExporter.file_extension = '.txt' -+ -+# formats of raw cells to be included in this Exporter's output. -+# c.PDFExporter.raw_mimetypes = [] -+ -+#------------------------------------------------------------------------------ -+# PythonExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Exports a Python code file. -+ -+# PythonExporter will inherit config from: TemplateExporter, Exporter -+ -+# -+# c.PythonExporter.jinja_logic_block_end = '' -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.PythonExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# -+# c.PythonExporter.jinja_comment_block_start = '' -+ -+# Dictionary of filters, by name and namespace, to add to the Jinja environment. -+# c.PythonExporter.filters = {} -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.PythonExporter.preprocessors = [] -+ -+# Name of the template file to use -+# c.PythonExporter.template_file = 'default' -+ -+# -+# c.PythonExporter.template_extension = '.tpl' -+ -+# -+# c.PythonExporter.jinja_logic_block_start = '' -+ -+# -+# c.PythonExporter.jinja_variable_block_start = '' -+ -+# -+# c.PythonExporter.template_path = ['.'] -+ -+# -+# c.PythonExporter.jinja_comment_block_end = '' -+ -+# -+# c.PythonExporter.jinja_variable_block_end = '' -+ -+# Extension of the file that should be written to disk -+# c.PythonExporter.file_extension = '.txt' -+ -+# formats of raw cells to be included in this Exporter's output. -+# c.PythonExporter.raw_mimetypes = [] -+ -+#------------------------------------------------------------------------------ -+# RSTExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Exports restructured text documents. -+ -+# RSTExporter will inherit config from: TemplateExporter, Exporter -+ -+# -+# c.RSTExporter.jinja_logic_block_end = '' -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.RSTExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# -+# c.RSTExporter.jinja_comment_block_start = '' -+ -+# Dictionary of filters, by name and namespace, to add to the Jinja environment. -+# c.RSTExporter.filters = {} -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.RSTExporter.preprocessors = [] -+ -+# Name of the template file to use -+# c.RSTExporter.template_file = 'default' -+ -+# -+# c.RSTExporter.template_extension = '.tpl' -+ -+# -+# c.RSTExporter.jinja_logic_block_start = '' -+ -+# -+# c.RSTExporter.jinja_variable_block_start = '' -+ -+# -+# c.RSTExporter.template_path = ['.'] -+ -+# -+# c.RSTExporter.jinja_comment_block_end = '' -+ -+# -+# c.RSTExporter.jinja_variable_block_end = '' -+ -+# Extension of the file that should be written to disk -+# c.RSTExporter.file_extension = '.txt' -+ -+# formats of raw cells to be included in this Exporter's output. -+# c.RSTExporter.raw_mimetypes = [] -+ -+#------------------------------------------------------------------------------ -+# SlidesExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Exports HTML slides with reveal.js -+ -+# SlidesExporter will inherit config from: HTMLExporter, TemplateExporter, -+# Exporter -+ -+# -+# c.SlidesExporter.jinja_logic_block_end = '' -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.SlidesExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# -+# c.SlidesExporter.jinja_comment_block_start = '' -+ -+# Dictionary of filters, by name and namespace, to add to the Jinja environment. -+# c.SlidesExporter.filters = {} -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.SlidesExporter.preprocessors = [] -+ -+# Name of the template file to use -+# c.SlidesExporter.template_file = 'default' -+ -+# -+# c.SlidesExporter.template_extension = '.tpl' -+ -+# -+# c.SlidesExporter.jinja_logic_block_start = '' -+ -+# -+# c.SlidesExporter.jinja_variable_block_start = '' -+ -+# -+# c.SlidesExporter.template_path = ['.'] -+ -+# -+# c.SlidesExporter.jinja_comment_block_end = '' -+ -+# -+# c.SlidesExporter.jinja_variable_block_end = '' -+ -+# Extension of the file that should be written to disk -+# c.SlidesExporter.file_extension = '.txt' -+ -+# formats of raw cells to be included in this Exporter's output. -+# c.SlidesExporter.raw_mimetypes = [] -+ -+#------------------------------------------------------------------------------ -+# TemplateExporter configuration -+#------------------------------------------------------------------------------ -+ -+# Exports notebooks into other file formats. Uses Jinja 2 templating engine to -+# output new formats. Inherit from this class if you are creating a new -+# template type along with new filters/preprocessors. If the filters/ -+# preprocessors provided by default suffice, there is no need to inherit from -+# this class. Instead, override the template_file and file_extension traits via -+# a config file. -+# -+# - ascii_only - add_prompts - add_anchor - html2text - strip_ansi - -+# comment_lines - ansi2html - strip_files_prefix - prevent_list_blocks - -+# highlight2html - indent - wrap_text - markdown2rst - citation2latex - -+# highlight2latex - filter_data_type - get_lines - escape_latex - ipython2python -+# - markdown2html - strip_dollars - path2url - posix_path - ansi2latex - -+# markdown2latex -+ -+# TemplateExporter will inherit config from: Exporter -+ -+# -+# c.TemplateExporter.jinja_logic_block_end = '' -+ -+# List of preprocessors available by default, by name, namespace, instance, or -+# type. -+# c.TemplateExporter.default_preprocessors = ['IPython.nbconvert.preprocessors.coalesce_streams', 'IPython.nbconvert.preprocessors.SVG2PDFPreprocessor', 'IPython.nbconvert.preprocessors.ExtractOutputPreprocessor', 'IPython.nbconvert.preprocessors.CSSHTMLHeaderPreprocessor', 'IPython.nbconvert.preprocessors.RevealHelpPreprocessor', 'IPython.nbconvert.preprocessors.LatexPreprocessor', 'IPython.nbconvert.preprocessors.ClearOutputPreprocessor', 'IPython.nbconvert.preprocessors.ExecutePreprocessor', 'IPython.nbconvert.preprocessors.HighlightMagicsPreprocessor'] -+ -+# -+# c.TemplateExporter.jinja_comment_block_start = '' -+ -+# Dictionary of filters, by name and namespace, to add to the Jinja environment. -+# c.TemplateExporter.filters = {} -+ -+# List of preprocessors, by name or namespace, to enable. -+# c.TemplateExporter.preprocessors = [] -+ -+# Name of the template file to use -+# c.TemplateExporter.template_file = 'default' -+ -+# -+# c.TemplateExporter.template_extension = '.tpl' -+ -+# -+# c.TemplateExporter.jinja_logic_block_start = '' -+ -+# -+# c.TemplateExporter.jinja_variable_block_start = '' -+ -+# -+# c.TemplateExporter.template_path = ['.'] -+ -+# -+# c.TemplateExporter.jinja_comment_block_end = '' -+ -+# -+# c.TemplateExporter.jinja_variable_block_end = '' -+ -+# Extension of the file that should be written to disk -+# c.TemplateExporter.file_extension = '.txt' -+ -+# formats of raw cells to be included in this Exporter's output. -+# c.TemplateExporter.raw_mimetypes = [] -+ -+#------------------------------------------------------------------------------ -+# CSSHTMLHeaderPreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# Preprocessor used to pre-process notebook for HTML output. Adds IPython -+# notebook front-end CSS and Pygments CSS to HTML output. -+ -+# CSSHTMLHeaderPreprocessor will inherit config from: Preprocessor, -+# NbConvertBase -+ -+# CSS highlight class identifier -+# c.CSSHTMLHeaderPreprocessor.highlight_class = '.highlight' -+ -+# -+# c.CSSHTMLHeaderPreprocessor.enabled = False -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.CSSHTMLHeaderPreprocessor.default_language = 'ipython' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.CSSHTMLHeaderPreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# ClearOutputPreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# Removes the output from all code cells in a notebook. -+ -+# ClearOutputPreprocessor will inherit config from: Preprocessor, NbConvertBase -+ -+# -+# c.ClearOutputPreprocessor.enabled = False -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.ClearOutputPreprocessor.default_language = 'ipython' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.ClearOutputPreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# ConvertFiguresPreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# Converts all of the outputs in a notebook from one format to another. -+ -+# ConvertFiguresPreprocessor will inherit config from: Preprocessor, -+# NbConvertBase -+ -+# Format the converter accepts -+# c.ConvertFiguresPreprocessor.from_format = '' -+ -+# Format the converter writes -+# c.ConvertFiguresPreprocessor.to_format = '' -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.ConvertFiguresPreprocessor.default_language = 'ipython' -+ -+# -+# c.ConvertFiguresPreprocessor.enabled = False -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.ConvertFiguresPreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# ExecutePreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# Executes all the cells in a notebook -+ -+# ExecutePreprocessor will inherit config from: Preprocessor, NbConvertBase -+ -+# -+# c.ExecutePreprocessor.enabled = False -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.ExecutePreprocessor.default_language = 'ipython' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.ExecutePreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+# If execution of a cell times out, interrupt the kernel and continue executing -+# other cells rather than throwing an error and stopping. -+# c.ExecutePreprocessor.interrupt_on_timeout = False -+ -+# The time to wait (in seconds) for output from executions. -+# c.ExecutePreprocessor.timeout = 30 -+ -+#------------------------------------------------------------------------------ -+# ExtractOutputPreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# Extracts all of the outputs from the notebook file. The extracted outputs -+# are returned in the 'resources' dictionary. -+ -+# ExtractOutputPreprocessor will inherit config from: Preprocessor, -+# NbConvertBase -+ -+# -+# c.ExtractOutputPreprocessor.enabled = False -+ -+# -+# c.ExtractOutputPreprocessor.output_filename_template = '{unique_key}_{cell_index}_{index}{extension}' -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.ExtractOutputPreprocessor.default_language = 'ipython' -+ -+# -+# c.ExtractOutputPreprocessor.extract_output_types = {'image/svg+xml', 'image/png', 'application/pdf', 'image/jpeg'} -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.ExtractOutputPreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# HighlightMagicsPreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# Detects and tags code cells that use a different languages than Python. -+ -+# HighlightMagicsPreprocessor will inherit config from: Preprocessor, -+# NbConvertBase -+ -+# -+# c.HighlightMagicsPreprocessor.enabled = False -+ -+# Syntax highlighting for magic's extension languages. Each item associates a -+# language magic extension such as %%R, with a pygments lexer such as r. -+# c.HighlightMagicsPreprocessor.languages = {} -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.HighlightMagicsPreprocessor.default_language = 'ipython' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.HighlightMagicsPreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# LatexPreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# Preprocessor for latex destined documents. -+# -+# Mainly populates the `latex` key in the resources dict, adding definitions for -+# pygments highlight styles. -+ -+# LatexPreprocessor will inherit config from: Preprocessor, NbConvertBase -+ -+# -+# c.LatexPreprocessor.enabled = False -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.LatexPreprocessor.default_language = 'ipython' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.LatexPreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# Preprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# A configurable preprocessor -+# -+# Inherit from this class if you wish to have configurability for your -+# preprocessor. -+# -+# Any configurable traitlets this class exposed will be configurable in profiles -+# using c.SubClassName.attribute = value -+# -+# you can overwrite :meth:`preprocess_cell` to apply a transformation -+# independently on each cell or :meth:`preprocess` if you prefer your own logic. -+# See corresponding docstring for informations. -+# -+# Disabled by default and can be enabled via the config by -+# 'c.YourPreprocessorName.enabled = True' -+ -+# Preprocessor will inherit config from: NbConvertBase -+ -+# -+# c.Preprocessor.enabled = False -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.Preprocessor.default_language = 'ipython' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.Preprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# RevealHelpPreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# RevealHelpPreprocessor will inherit config from: Preprocessor, NbConvertBase -+ -+# -+# c.RevealHelpPreprocessor.enabled = False -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.RevealHelpPreprocessor.default_language = 'ipython' -+ -+# The URL prefix for reveal.js. This can be a a relative URL for a local copy of -+# reveal.js, or point to a CDN. -+# -+# For speaker notes to work, a local reveal.js prefix must be used. -+# c.RevealHelpPreprocessor.url_prefix = 'reveal.js' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.RevealHelpPreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# SVG2PDFPreprocessor configuration -+#------------------------------------------------------------------------------ -+ -+# Converts all of the outputs in a notebook from SVG to PDF. -+ -+# SVG2PDFPreprocessor will inherit config from: ConvertFiguresPreprocessor, -+# Preprocessor, NbConvertBase -+ -+# Format the converter writes -+# c.SVG2PDFPreprocessor.to_format = '' -+ -+# The path to Inkscape, if necessary -+# c.SVG2PDFPreprocessor.inkscape = '' -+ -+# Format the converter accepts -+# c.SVG2PDFPreprocessor.from_format = '' -+ -+# The command to use for converting SVG to PDF -+# -+# This string is a template, which will be formatted with the keys to_filename -+# and from_filename. -+# -+# The conversion call must read the SVG from {from_flename}, and write a PDF to -+# {to_filename}. -+# c.SVG2PDFPreprocessor.command = '' -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.SVG2PDFPreprocessor.default_language = 'ipython' -+ -+# -+# c.SVG2PDFPreprocessor.enabled = False -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.SVG2PDFPreprocessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# FilesWriter configuration -+#------------------------------------------------------------------------------ -+ -+# Consumes nbconvert output and produces files. -+ -+# FilesWriter will inherit config from: WriterBase, NbConvertBase -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.FilesWriter.default_language = 'ipython' -+ -+# When copying files that the notebook depends on, copy them in relation to this -+# path, such that the destination filename will be os.path.relpath(filename, -+# relpath). If FilesWriter is operating on a notebook that already exists -+# elsewhere on disk, then the default will be the directory containing that -+# notebook. -+# c.FilesWriter.relpath = '' -+ -+# Directory to write output to. Leave blank to output to the current directory -+# c.FilesWriter.build_directory = '' -+ -+# List of the files that the notebook references. Files will be included with -+# written output. -+# c.FilesWriter.files = [] -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.FilesWriter.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# StdoutWriter configuration -+#------------------------------------------------------------------------------ -+ -+# Consumes output from nbconvert export...() methods and writes to the stdout -+# stream. -+ -+# StdoutWriter will inherit config from: WriterBase, NbConvertBase -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.StdoutWriter.default_language = 'ipython' -+ -+# List of the files that the notebook references. Files will be included with -+# written output. -+# c.StdoutWriter.files = [] -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.StdoutWriter.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# WriterBase configuration -+#------------------------------------------------------------------------------ -+ -+# Consumes output from nbconvert export...() methods and writes to a useful -+# location. -+ -+# WriterBase will inherit config from: NbConvertBase -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.WriterBase.default_language = 'ipython' -+ -+# List of the files that the notebook references. Files will be included with -+# written output. -+# c.WriterBase.files = [] -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.WriterBase.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# PostProcessorBase configuration -+#------------------------------------------------------------------------------ -+ -+# PostProcessorBase will inherit config from: NbConvertBase -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.PostProcessorBase.default_language = 'ipython' -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.PostProcessorBase.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+#------------------------------------------------------------------------------ -+# ServePostProcessor configuration -+#------------------------------------------------------------------------------ -+ -+# Post processor designed to serve files -+# -+# Proxies reveal.js requests to a CDN if no local reveal.js is present -+ -+# ServePostProcessor will inherit config from: PostProcessorBase, NbConvertBase -+ -+# URL prefix for reveal.js -+# c.ServePostProcessor.reveal_prefix = 'reveal.js' -+ -+# Should the browser be opened automatically? -+# c.ServePostProcessor.open_in_browser = True -+ -+# An ordered list of preferred output type, the first encountered will usually -+# be used when converting discarding the others. -+# c.ServePostProcessor.display_data_priority = ['text/html', 'application/pdf', 'text/latex', 'image/svg+xml', 'image/png', 'image/jpeg', 'text/plain'] -+ -+# DEPRECATED default highlight language, please use language_info metadata -+# instead -+# c.ServePostProcessor.default_language = 'ipython' -+ -+# port for the server to listen on. -+# c.ServePostProcessor.port = 8000 -+ -+# URL for reveal.js CDN. -+# c.ServePostProcessor.reveal_cdn = 'https://cdn.jsdelivr.net/reveal.js/2.6.2' -+ -+# The IP address to listen on. -+# c.ServePostProcessor.ip = '127.0.0.1' - ---- jupyter_core/tests/dotipython_empty/profile_default/ipython_notebook_config.py -+++ jupyter_core/tests/dotipython_empty/profile_default/ipython_notebook_config.py -@@ -0,0 +1,548 @@ -+# Configuration file for ipython-notebook. -+ -+c = get_config() -+ -+#------------------------------------------------------------------------------ -+# NotebookApp configuration -+#------------------------------------------------------------------------------ -+ -+# NotebookApp will inherit config from: BaseIPythonApplication, Application -+ -+# Supply SSL options for the tornado HTTPServer. See the tornado docs for -+# details. -+# c.NotebookApp.ssl_options = {} -+ -+# The config manager class to use -+# c.NotebookApp.config_manager_class = <class 'IPython.html.services.config.manager.ConfigManager'> -+ -+# Hashed password to use for web authentication. -+# -+# To generate, type in a python/IPython shell: -+# -+# from IPython.lib import passwd; passwd() -+# -+# The string should be of the form type:salt:hashed-password. -+# c.NotebookApp.password = '' -+ -+# The number of additional ports to try if the specified port is not available. -+# c.NotebookApp.port_retries = 50 -+ -+# The kernel manager class to use. -+# c.NotebookApp.kernel_manager_class = <class 'IPython.html.services.kernels.kernelmanager.MappingKernelManager'> -+ -+# The port the notebook server will listen on. -+# c.NotebookApp.port = 8888 -+ -+# Set the log level by value or name. -+# c.NotebookApp.log_level = 30 -+ -+# Path to an extra config file to load. -+# -+# If specified, load this config file in addition to any other IPython config. -+# c.NotebookApp.extra_config_file = '' -+ -+# The cluster manager class to use. -+# c.NotebookApp.cluster_manager_class = <class 'IPython.html.services.clusters.clustermanager.ClusterManager'> -+ -+# The base URL for the notebook server. -+# -+# Leading and trailing slashes can be omitted, and will automatically be added. -+# c.NotebookApp.base_url = '/' -+ -+# Python modules to load as notebook server extensions. This is an experimental -+# API, and may change in future releases. -+# c.NotebookApp.server_extensions = [] -+ -+# The login handler class to use. -+# c.NotebookApp.login_handler_class = <class 'IPython.html.auth.login.LoginHandler'> -+ -+# The session manager class to use. -+# c.NotebookApp.session_manager_class = <class 'IPython.html.services.sessions.sessionmanager.SessionManager'> -+ -+# Set the Access-Control-Allow-Origin header -+# -+# Use '*' to allow any origin to access your server. -+# -+# Takes precedence over allow_origin_pat. -+# c.NotebookApp.allow_origin = '' -+ -+# Whether to enable MathJax for typesetting math/TeX -+# -+# MathJax is the javascript library IPython uses to render math/LaTeX. It is -+# very large, so you may want to disable it if you have a slow internet -+# connection, or for offline use of the notebook. -+# -+# When disabled, equations etc. will appear as their untransformed TeX source. -+# c.NotebookApp.enable_mathjax = True -+ -+# The notebook manager class to use. -+# c.NotebookApp.contents_manager_class = <class 'IPython.html.services.contents.filemanager.FileContentsManager'> -+ -+# The full path to an SSL/TLS certificate file. -+# c.NotebookApp.certfile = '' -+ -+# Set the Access-Control-Allow-Credentials: true header -+# c.NotebookApp.allow_credentials = False -+ -+# The Logging format template -+# c.NotebookApp.log_format = '[%(name)s]%(highlevel)s %(message)s' -+ -+# The base URL for websockets, if it differs from the HTTP server (hint: it -+# almost certainly doesn't). -+# -+# Should be in the form of an HTTP origin: ws[s]://hostname[:port] -+# c.NotebookApp.websocket_url = '' -+ -+# Use a regular expression for the Access-Control-Allow-Origin header -+# -+# Requests from an origin matching the expression will get replies with: -+# -+# Access-Control-Allow-Origin: origin -+# -+# where `origin` is the origin of the request. -+# -+# Ignored if allow_origin is set. -+# c.NotebookApp.allow_origin_pat = '' -+ -+# The date format used by logging formatters for %(asctime)s -+# c.NotebookApp.log_datefmt = '%Y-%m-%d %H:%M:%S' -+ -+# The logout handler class to use. -+# c.NotebookApp.logout_handler_class = <class 'IPython.html.auth.logout.LogoutHandler'> -+ -+# The default URL to redirect to from `/` -+# c.NotebookApp.default_url = '/tree' -+ -+# The IPython profile to use. -+# c.NotebookApp.profile = 'default' -+ -+# extra paths to look for Javascript notebook extensions -+# c.NotebookApp.extra_nbextensions_path = [] -+ -+# Specify what command to use to invoke a web browser when opening the notebook. -+# If not specified, the default browser will be determined by the `webbrowser` -+# standard library module, which allows setting of the BROWSER environment -+# variable to override it. -+# c.NotebookApp.browser = '' -+ -+# The url for MathJax.js. -+# c.NotebookApp.mathjax_url = '' -+ -+# Supply overrides for the tornado.web.Application that the IPython notebook -+# uses. -+# c.NotebookApp.tornado_settings = {} -+ -+# The file where the cookie secret is stored. -+# c.NotebookApp.cookie_secret_file = '' -+ -+# Create a massive crash report when IPython encounters what may be an internal -+# error. The default is to append a short message to the usual traceback -+# c.NotebookApp.verbose_crash = False -+ -+# Whether to overwrite existing config files when copying -+# c.NotebookApp.overwrite = False -+ -+# Whether to open in a browser after starting. The specific browser used is -+# platform dependent and determined by the python standard library `webbrowser` -+# module, unless it is overridden using the --browser (NotebookApp.browser) -+# configuration option. -+# c.NotebookApp.open_browser = True -+ -+# DEPRECATED, use tornado_settings -+# c.NotebookApp.webapp_settings = {} -+ -+# Reraise exceptions encountered loading server extensions? -+# c.NotebookApp.reraise_server_extension_failures = False -+ -+# Whether to install the default config files into the profile dir. If a new -+# profile is being created, and IPython contains config files for that profile, -+# then they will be staged into the new directory. Otherwise, default config -+# files will be automatically generated. -+# c.NotebookApp.copy_config_files = False -+ -+# DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib. -+# c.NotebookApp.pylab = 'disabled' -+ -+# The directory to use for notebooks and kernels. -+# c.NotebookApp.notebook_dir = '' -+ -+# The kernel spec manager class to use. Should be a subclass of -+# `IPython.kernel.kernelspec.KernelSpecManager`. -+# -+# The Api of KernelSpecManager is provisional and might change without warning -+# between this version of IPython and the next stable one. -+# c.NotebookApp.kernel_spec_manager_class = <class 'IPython.kernel.kernelspec.KernelSpecManager'> -+ -+# -+# c.NotebookApp.file_to_run = '' -+ -+# DEPRECATED use base_url -+# c.NotebookApp.base_project_url = '/' -+ -+# The random bytes used to secure cookies. By default this is a new random -+# number every time you start the Notebook. Set it to a value in a config file -+# to enable logins to persist across server sessions. -+# -+# Note: Cookie secrets should be kept private, do not share config files with -+# cookie_secret stored in plaintext (you can read the value from a file). -+# c.NotebookApp.cookie_secret = b'' -+ -+# The full path to a private key file for usage with SSL/TLS. -+# c.NotebookApp.keyfile = '' -+ -+# Extra paths to search for serving static files. -+# -+# This allows adding javascript/css to be available from the notebook server -+# machine, or overriding individual files in the IPython -+# c.NotebookApp.extra_static_paths = [] -+ -+# The name of the IPython directory. This directory is used for logging -+# configuration (through profiles), history storage, etc. The default is usually -+# $HOME/.ipython. This option can also be specified through the environment -+# variable IPYTHONDIR. -+# c.NotebookApp.ipython_dir = '' -+ -+# Extra paths to search for serving jinja templates. -+# -+# Can be used to override templates from IPython.html.templates. -+# c.NotebookApp.extra_template_paths = [] -+ -+# Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded- -+# For headerssent by the upstream reverse proxy. Necessary if the proxy handles -+# SSL -+# c.NotebookApp.trust_xheaders = False -+ -+# Supply extra arguments that will be passed to Jinja environment. -+# c.NotebookApp.jinja_environment_options = {} -+ -+# The IP address the notebook server will listen on. -+# c.NotebookApp.ip = 'localhost' -+ -+#------------------------------------------------------------------------------ -+# KernelManager configuration -+#------------------------------------------------------------------------------ -+ -+# Manages a single kernel in a subprocess on this host. -+# -+# This version starts kernels with Popen. -+ -+# KernelManager will inherit config from: ConnectionFileMixin -+ -+# set the heartbeat port [default: random] -+# c.KernelManager.hb_port = 0 -+ -+# set the stdin (ROUTER) port [default: random] -+# c.KernelManager.stdin_port = 0 -+ -+# -+# c.KernelManager.transport = 'tcp' -+ -+# JSON file in which to store connection info [default: kernel-<pid>.json] -+# -+# This file will contain the IP, ports, and authentication key needed to connect -+# clients to this kernel. By default, this file will be created in the security -+# dir of the current profile, but can be specified by absolute path. -+# c.KernelManager.connection_file = '' -+ -+# set the control (ROUTER) port [default: random] -+# c.KernelManager.control_port = 0 -+ -+# set the shell (ROUTER) port [default: random] -+# c.KernelManager.shell_port = 0 -+ -+# Should we autorestart the kernel if it dies. -+# c.KernelManager.autorestart = False -+ -+# DEPRECATED: Use kernel_name instead. -+# -+# The Popen Command to launch the kernel. Override this if you have a custom -+# kernel. If kernel_cmd is specified in a configuration file, IPython does not -+# pass any arguments to the kernel, because it cannot make any assumptions about -+# the arguments that the kernel understands. In particular, this means that the -+# kernel does not receive the option --debug if it given on the IPython command -+# line. -+# c.KernelManager.kernel_cmd = [] -+ -+# Set the kernel's IP address [default localhost]. If the IP address is -+# something other than localhost, then Consoles on other machines will be able -+# to connect to the Kernel, so be careful! -+# c.KernelManager.ip = '' -+ -+# set the iopub (PUB) port [default: random] -+# c.KernelManager.iopub_port = 0 -+ -+#------------------------------------------------------------------------------ -+# ProfileDir configuration -+#------------------------------------------------------------------------------ -+ -+# An object to manage the profile directory and its resources. -+# -+# The profile directory is used by all IPython applications, to manage -+# configuration, logging and security. -+# -+# This object knows how to find, create and manage these directories. This -+# should be used by any code that wants to handle profiles. -+ -+# Set the profile location directly. This overrides the logic used by the -+# `profile` option. -+# c.ProfileDir.location = '' -+ -+#------------------------------------------------------------------------------ -+# Session configuration -+#------------------------------------------------------------------------------ -+ -+# Object for handling serialization and sending of messages. -+# -+# The Session object handles building messages and sending them with ZMQ sockets -+# or ZMQStream objects. Objects can communicate with each other over the -+# network via Session objects, and only need to work with the dict-based IPython -+# message spec. The Session will handle serialization/deserialization, security, -+# and metadata. -+# -+# Sessions support configurable serialization via packer/unpacker traits, and -+# signing with HMAC digests via the key/keyfile traits. -+# -+# Parameters ---------- -+# -+# debug : bool -+# whether to trigger extra debugging statements -+# packer/unpacker : str : 'json', 'pickle' or import_string -+# importstrings for methods to serialize message parts. If just -+# 'json' or 'pickle', predefined JSON and pickle packers will be used. -+# Otherwise, the entire importstring must be used. -+# -+# The functions must accept at least valid JSON input, and output *bytes*. -+# -+# For example, to use msgpack: -+# packer = 'msgpack.packb', unpacker='msgpack.unpackb' -+# pack/unpack : callables -+# You can also set the pack/unpack callables for serialization directly. -+# session : bytes -+# the ID of this Session object. The default is to generate a new UUID. -+# username : unicode -+# username added to message headers. The default is to ask the OS. -+# key : bytes -+# The key used to initialize an HMAC signature. If unset, messages -+# will not be signed or checked. -+# keyfile : filepath -+# The file containing a key. If this is set, `key` will be initialized -+# to the contents of the file. -+ -+# The digest scheme used to construct the message signatures. Must have the form -+# 'hmac-HASH'. -+# c.Session.signature_scheme = 'hmac-sha256' -+ -+# The maximum number of digests to remember. -+# -+# The digest history will be culled when it exceeds this value. -+# c.Session.digest_history_size = 65536 -+ -+# The name of the unpacker for unserializing messages. Only used with custom -+# functions for `packer`. -+# c.Session.unpacker = 'json' -+ -+# The name of the packer for serializing messages. Should be one of 'json', -+# 'pickle', or an import name for a custom callable serializer. -+# c.Session.packer = 'json' -+ -+# Username for the Session. Default is your system username. -+# c.Session.username = 'minrk' -+ -+# Debug output in the Session -+# c.Session.debug = False -+ -+# path to file containing execution key. -+# c.Session.keyfile = '' -+ -+# The maximum number of items for a container to be introspected for custom -+# serialization. Containers larger than this are pickled outright. -+# c.Session.item_threshold = 64 -+ -+# Threshold (in bytes) beyond which an object's buffer should be extracted to -+# avoid pickling. -+# c.Session.buffer_threshold = 1024 -+ -+# The UUID identifying this session. -+# c.Session.session = '' -+ -+# Threshold (in bytes) beyond which a buffer should be sent without copying. -+# c.Session.copy_threshold = 65536 -+ -+# execution key, for signing messages. -+# c.Session.key = b'' -+ -+# Metadata dictionary, which serves as the default top-level metadata dict for -+# each message. -+# c.Session.metadata = {} -+ -+#------------------------------------------------------------------------------ -+# MappingKernelManager configuration -+#------------------------------------------------------------------------------ -+ -+# A KernelManager that handles notebook mapping and HTTP error handling -+ -+# MappingKernelManager will inherit config from: MultiKernelManager -+ -+# The kernel manager class. This is configurable to allow subclassing of the -+# KernelManager for customized behavior. -+# c.MappingKernelManager.kernel_manager_class = 'IPython.kernel.ioloop.IOLoopKernelManager' -+ -+# -+# c.MappingKernelManager.root_dir = '' -+ -+# The name of the default kernel to start -+# c.MappingKernelManager.default_kernel_name = 'python3' -+ -+#------------------------------------------------------------------------------ -+# ContentsManager configuration -+#------------------------------------------------------------------------------ -+ -+# Base class for serving files and directories. -+# -+# This serves any text or binary file, as well as directories, with special -+# handling for JSON notebook documents. -+# -+# Most APIs take a path argument, which is always an API-style unicode path, and -+# always refers to a directory. -+# -+# - unicode, not url-escaped -+# - '/'-separated -+# - leading and trailing '/' will be stripped -+# - if unspecified, path defaults to '', -+# indicating the root path. -+ -+# The base name used when creating untitled directories. -+# c.ContentsManager.untitled_directory = 'Untitled Folder' -+ -+# Python callable or importstring thereof -+# -+# To be called on a contents model prior to save. -+# -+# This can be used to process the structure, such as removing notebook outputs -+# or other side effects that should not be saved. -+# -+# It will be called as (all arguments passed by keyword):: -+# -+# hook(path=path, model=model, contents_manager=self) -+# -+# - model: the model to be saved. Includes file contents. -+# Modifying this dict will affect the file that is stored. -+# - path: the API path of the save destination -+# - contents_manager: this ContentsManager instance -+# c.ContentsManager.pre_save_hook = None -+ -+# Glob patterns to hide in file and directory listings. -+# c.ContentsManager.hide_globs = ['__pycache__', '*.pyc', '*.pyo', '.DS_Store', '*.so', '*.dylib', '*~'] -+ -+# The base name used when creating untitled files. -+# c.ContentsManager.untitled_file = 'untitled' -+ -+# The base name used when creating untitled notebooks. -+# c.ContentsManager.untitled_notebook = 'Untitled' -+ -+# -+# c.ContentsManager.checkpoints = None -+ -+# -+# c.ContentsManager.checkpoints_class = <class 'IPython.html.services.contents.checkpoints.Checkpoints'> -+ -+# -+# c.ContentsManager.checkpoints_kwargs = {} -+ -+#------------------------------------------------------------------------------ -+# FileContentsManager configuration -+#------------------------------------------------------------------------------ -+ -+# FileContentsManager will inherit config from: ContentsManager -+ -+# The base name used when creating untitled directories. -+# c.FileContentsManager.untitled_directory = 'Untitled Folder' -+ -+# Python callable or importstring thereof -+# -+# To be called on a contents model prior to save. -+# -+# This can be used to process the structure, such as removing notebook outputs -+# or other side effects that should not be saved. -+# -+# It will be called as (all arguments passed by keyword):: -+# -+# hook(path=path, model=model, contents_manager=self) -+# -+# - model: the model to be saved. Includes file contents. -+# Modifying this dict will affect the file that is stored. -+# - path: the API path of the save destination -+# - contents_manager: this ContentsManager instance -+# c.FileContentsManager.pre_save_hook = None -+ -+# Glob patterns to hide in file and directory listings. -+# c.FileContentsManager.hide_globs = ['__pycache__', '*.pyc', '*.pyo', '.DS_Store', '*.so', '*.dylib', '*~'] -+ -+# The base name used when creating untitled files. -+# c.FileContentsManager.untitled_file = 'untitled' -+ -+# The base name used when creating untitled notebooks. -+# c.FileContentsManager.untitled_notebook = 'Untitled' -+ -+# Python callable or importstring thereof -+# -+# to be called on the path of a file just saved. -+# -+# This can be used to process the file on disk, such as converting the notebook -+# to a script or HTML via nbconvert. -+# -+# It will be called as (all arguments passed by keyword):: -+# -+# hook(os_path=os_path, model=model, contents_manager=instance) -+# -+# - path: the filesystem path to the file just written - model: the model -+# representing the file - contents_manager: this ContentsManager instance -+# c.FileContentsManager.post_save_hook = None -+ -+# DEPRECATED, use post_save_hook -+# c.FileContentsManager.save_script = False -+ -+# -+# c.FileContentsManager.root_dir = '' -+ -+# -+# c.FileContentsManager.checkpoints_class = <class 'IPython.html.services.contents.checkpoints.Checkpoints'> -+ -+# -+# c.FileContentsManager.checkpoints = None -+ -+# -+# c.FileContentsManager.checkpoints_kwargs = {} -+ -+#------------------------------------------------------------------------------ -+# NotebookNotary configuration -+#------------------------------------------------------------------------------ -+ -+# A class for computing and verifying notebook signatures. -+ -+# The number of notebook signatures to cache. When the number of signatures -+# exceeds this value, the oldest 25% of signatures will be culled. -+# c.NotebookNotary.cache_size = 65535 -+ -+# The sqlite file in which to store notebook signatures. By default, this will -+# be in your IPython profile. You can set it to ':memory:' to disable sqlite -+# writing to the filesystem. -+# c.NotebookNotary.db_file = '' -+ -+# The secret key with which notebooks are signed. -+# c.NotebookNotary.secret = b'' -+ -+# The file where the secret key is stored. -+# c.NotebookNotary.secret_file = '' -+ -+# The hashing algorithm used to sign notebooks. -+# c.NotebookNotary.algorithm = 'sha256' -+ -+#------------------------------------------------------------------------------ -+# KernelSpecManager configuration -+#------------------------------------------------------------------------------ -+ -+# Whitelist of allowed kernel names. -+# -+# By default, all installed kernels are allowed. -+# c.KernelSpecManager.whitelist = set() - ---- jupyter_core/tests/dotipython_empty/profile_default/static/custom/custom.css -+++ jupyter_core/tests/dotipython_empty/profile_default/static/custom/custom.css -@@ -0,0 +1,7 @@ -+/* -+Placeholder for custom user CSS -+ -+mainly to be overridden in profile/static/custom/custom.css -+ -+This will always be an empty file in IPython -+*/ -\ No newline at end of file - ---- jupyter_core/tests/dotipython_empty/profile_default/static/custom/custom.js -+++ jupyter_core/tests/dotipython_empty/profile_default/static/custom/custom.js -@@ -0,0 +1,82 @@ -+// leave at least 2 line with only a star on it below, or doc generation fails -+/** -+ * -+ * -+ * Placeholder for custom user javascript -+ * mainly to be overridden in profile/static/custom/custom.js -+ * This will always be an empty file in IPython -+ * -+ * User could add any javascript in the `profile/static/custom/custom.js` file. -+ * It will be executed by the ipython notebook at load time. -+ * -+ * Same thing with `profile/static/custom/custom.css` to inject custom css into the notebook. -+ * -+ * -+ * The object available at load time depend on the version of IPython in use. -+ * there is no guaranties of API stability. -+ * -+ * The example below explain the principle, and might not be valid. -+ * -+ * Instances are created after the loading of this file and might need to be accessed using events: -+ * define([ -+ * 'base/js/namespace', -+ * 'base/js/events' -+ * ], function(IPython, events) { -+ * events.on("app_initialized.NotebookApp", function () { -+ * IPython.keyboard_manager.... -+ * }); -+ * }); -+ * -+ * __Example 1:__ -+ * -+ * Create a custom button in toolbar that execute `%qtconsole` in kernel -+ * and hence open a qtconsole attached to the same kernel as the current notebook -+ * -+ * define([ -+ * 'base/js/namespace', -+ * 'base/js/events' -+ * ], function(IPython, events) { -+ * events.on('app_initialized.NotebookApp', function(){ -+ * IPython.toolbar.add_buttons_group([ -+ * { -+ * 'label' : 'run qtconsole', -+ * 'icon' : 'icon-terminal', // select your icon from http://fortawesome.github.io/Font-Awesome/icons -+ * 'callback': function () { -+ * IPython.notebook.kernel.execute('%qtconsole') -+ * } -+ * } -+ * // add more button here if needed. -+ * ]); -+ * }); -+ * }); -+ * -+ * __Example 2:__ -+ * -+ * At the completion of the dashboard loading, load an unofficial javascript extension -+ * that is installed in profile/static/custom/ -+ * -+ * define([ -+ * 'base/js/events' -+ * ], function(events) { -+ * events.on('app_initialized.DashboardApp', function(){ -+ * require(['custom/unofficial_extension.js']) -+ * }); -+ * }); -+ * -+ * __Example 3:__ -+ * -+ * Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );` -+ * to load custom script into the notebook. -+ * -+ * // to load the metadata ui extension example. -+ * $.getScript('/static/notebook/js/celltoolbarpresets/example.js'); -+ * // or -+ * // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert -+ * $.getScript('/static/notebook/js/celltoolbarpresets/slideshow.js'); -+ * -+ * -+ * @module IPython -+ * @namespace IPython -+ * @class customjs -+ * @static -+ */ |