[Python-modules-commits] [notebook] 03/06: Imported Upstream version 4.2.3+github1

Gordon Ball chronitis-guest at moszumanska.debian.org
Wed Oct 19 16:06:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

chronitis-guest pushed a commit to branch master
in repository notebook.

commit e51bebecac4b49107ac1793907335479587bd349
Author: Gordon Ball <gordon at chronitis.net>
Date:   Wed Oct 19 17:41:33 2016 +0200

    Imported Upstream version 4.2.3+github1
---
 .dockerignore                                      |     4 +
 .gitignore                                         |    31 +
 .gitmodules                                        |     0
 .mailmap                                           |   149 +
 .travis.yml                                        |    34 +
 MANIFEST.in                                        |    28 +
 PKG-INFO                                           |    28 -
 git-hooks/README.md                                |     9 +
 git-hooks/install-hooks.sh                         |     9 +
 git-hooks/post-checkout                            |    22 +
 git-hooks/post-merge                               |     1 +
 notebook/services/api/api.yaml                     |   365 +
 notebook/static/auth/js/main.min.js                |   218 -
 notebook/static/auth/js/main.min.js.map            |    24 -
 notebook/static/auth/less/login.less               |     6 +
 notebook/static/auth/less/logout.less              |     2 +
 notebook/static/auth/less/style.less               |     7 +
 notebook/static/base/less/error.less               |    20 +
 notebook/static/base/less/flexbox.less             |   269 +
 notebook/static/base/less/mixins.less              |    19 +
 notebook/static/base/less/page.less                |   149 +
 notebook/static/base/less/style.less               |     9 +
 notebook/static/base/less/variables.less           |    62 +
 notebook/static/edit/js/main.min.js                | 22016 ------------
 notebook/static/edit/js/main.min.js.map            |    68 -
 notebook/static/edit/less/edit.less                |    51 +
 notebook/static/edit/less/menubar.less             |    26 +
 notebook/static/edit/less/style.less               |     7 +
 notebook/static/notebook/js/main.min.js            | 33980 -------------------
 notebook/static/notebook/js/main.min.js.map        |   146 -
 notebook/static/notebook/less/ansicolors.less      |    23 +
 notebook/static/notebook/less/cell.less            |   150 +
 notebook/static/notebook/less/celltoolbar.less     |    70 +
 notebook/static/notebook/less/codecell.less        |    48 +
 notebook/static/notebook/less/codemirror.less      |    52 +
 notebook/static/notebook/less/commandpalette.less  |    45 +
 notebook/static/notebook/less/completer.less       |    26 +
 notebook/static/notebook/less/highlight-refs.less  |     5 +
 notebook/static/notebook/less/highlight.less       |   112 +
 notebook/static/notebook/less/kernelselector.less  |    10 +
 notebook/static/notebook/less/menubar.less         |    81 +
 notebook/static/notebook/less/notebook.less        |   101 +
 .../static/notebook/less/notificationarea.less     |    74 +
 .../static/notebook/less/notificationwidget.less   |    21 +
 notebook/static/notebook/less/outputarea.less      |   209 +
 notebook/static/notebook/less/pager.less           |    69 +
 notebook/static/notebook/less/quickhelp.less       |    15 +
 notebook/static/notebook/less/renderedhtml.less    |    93 +
 notebook/static/notebook/less/savewidget.less      |    43 +
 .../static/notebook/less/searchandreplace.less     |    37 +
 notebook/static/notebook/less/style.less           |    19 +
 notebook/static/notebook/less/style_noapp.less     |    14 +
 notebook/static/notebook/less/textcell.less        |    72 +
 notebook/static/notebook/less/toolbar.less         |    59 +
 notebook/static/notebook/less/tooltip.less         |   158 +
 notebook/static/notebook/less/variables.less       |    27 +
 notebook/static/style/ipython.min.css              |  1257 -
 notebook/static/style/ipython.min.css.map          |     1 -
 notebook/static/style/style.min.css                | 11566 -------
 notebook/static/style/style.min.css.map            |     1 -
 notebook/static/terminal/js/main.min.js            | 19292 -----------
 notebook/static/terminal/js/main.min.js.map        |    34 -
 notebook/static/terminal/less/terminal.less        |    32 +
 notebook/static/tree/js/main.min.js                | 15486 ---------
 notebook/static/tree/js/main.min.js.map            |    52 -
 notebook/static/tree/less/altuploadform.less       |    28 +
 notebook/static/tree/less/style.less               |     7 +
 notebook/static/tree/less/tree.less                |   327 +
 notebook/tests/README.md                           |    28 +
 notebook/tests/test_hist.sqlite                    |   Bin 0 -> 7168 bytes
 70 files changed, 3334 insertions(+), 104169 deletions(-)

diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..9f370b7
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,4 @@
+.git
+.git*
+.mailmap
+.travis.yml
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fae28d6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,31 @@
+MANIFEST
+build
+dist
+_build
+docs/man/*.gz
+docs/source/api/generated
+docs/source/config.rst
+docs/gh-pages
+notebook/static/components
+notebook/static/style/*.min.css*
+notebook/static/*/js/main.min.js*
+node_modules
+*.py[co]
+__pycache__
+*.egg-info
+*~
+*.bak
+.ipynb_checkpoints
+.tox
+.DS_Store
+\#*#
+.#*
+.coverage
+src
+
+*.swp
+*.map
+.idea/
+Read the Docs
+config.rst
+
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..e69de29
diff --git a/.mailmap b/.mailmap
new file mode 100644
index 0000000..bd6544e
--- /dev/null
+++ b/.mailmap
@@ -0,0 +1,149 @@
+A. J. Holyoake <a.j.holyoake at gmail.com> ajholyoake <a.j.holyoake at gmail.com>
+Aaron Culich <aculich at gmail.com> Aaron Culich <aculich at eecs.berkeley.edu>
+Aron Ahmadia <aron at ahmadia.net> ahmadia <aron at ahmadia.net>
+Benjamin Ragan-Kelley <benjaminrk at gmail.com> <minrk at Mercury.local>
+Benjamin Ragan-Kelley <benjaminrk at gmail.com> Min RK
+Benjamin Ragan-Kelley <benjaminrk at gmail.com> MinRK <benjaminrk at gmail.com>
+Barry Wark <barrywark at gmail.com> Barry Wark <barrywarkatgmaildotcom>
+Ben Edwards <bedwards at cs.unm.edu> Ben Edwards <bedwards at sausage.(none)>
+Bradley M. Froehle <brad.froehle at gmail.com> Bradley M. Froehle <bfroehle at math.berkeley.edu>
+Bradley M. Froehle <brad.froehle at gmail.com> Bradley Froehle <brad.froehle at gmail.com>
+Brandon Parsons <brandon at parsonstx.com> Brandon Parsons <brandon.parsons at hp.com>
+Brian E. Granger <ellisonbg at gmail.com> Brian Granger
+Brian E. Granger <ellisonbg at gmail.com> Brian Granger <>
+Brian E. Granger <ellisonbg at gmail.com> bgranger <>
+Brian E. Granger <ellisonbg at gmail.com> bgranger <bgranger at red>
+Christoph Gohlke <cgohlke at uci.edu> cgohlke <cgohlke at uci.edu>
+Cyrille Rossant <cyrille.rossant at gmail.com> rossant <rossant at github>
+Damián Avila <damianavila82 at yahoo.com.ar> damianavila <damianavila82 at yahoo.com.ar>
+Damián Avila <damianavila82 at yahoo.com.ar> damianavila <damianavila at gmail.com>
+Damon Allen <damontallen at gmail.com> damontallen <damontallen at gmail.com>
+Darren Dale <dsdale24 at gmail.com> darren.dale <>
+Darren Dale <dsdale24 at gmail.com> Darren Dale <>
+Dav Clark <davclark at berkeley.edu> Dav Clark <>
+Dav Clark <davclark at berkeley.edu> Dav Clark <davclark at gmail.com>
+David Hirschfeld <david.hirschfeld at gazprom-mt.com> dhirschfeld <david.hirschfeld at gazprom-mt.com>
+David P. Sanders <dpsanders at gmail.com> David P. Sanders <dpsanders at ciencias.unam.mx>
+David Warde-Farley <wardefar at iro.umontreal.ca> David Warde-Farley <>
+Doug Blank <dblank at cs.brynmawr.edu> Doug Blank <doug.blank at gmail.com>
+Eugene Van den Bulke <eugene.van-den-bulke at gmail.com> Eugene Van den Bulke <eugene.vandenbulke at gmail.com> 
+Evan Patterson <epatters at enthought.com> <epatters at EPattersons-MacBook-Pro.local>
+Evan Patterson <epatters at enthought.com> <epatters at evan-laptop.localdomain>
+Evan Patterson <epatters at enthought.com> <epatters at caltech.edu>
+Evan Patterson <epatters at enthought.com> <ejpatters at gmail.com>
+Evan Patterson <epatters at enthought.com> epatters <ejpatters at gmail.com>
+Evan Patterson <epatters at enthought.com> epatters <epatters at enthought.com>
+Ernie French <ernestfrench at gmail.com> Ernie French <ernie at gqpbj.com>
+Ernie French <ernestfrench at gmail.com> ernie french <ernestfrench at gmail.com>
+Ernie French <ernestfrench at gmail.com> ernop <ernestfrench at gmail.com>
+Fernando Perez <Fernando.Perez at berkeley.edu> <fperez.net at gmail.com>
+Fernando Perez <Fernando.Perez at berkeley.edu> Fernando Perez <fernando.perez at berkeley.edu>
+Fernando Perez <Fernando.Perez at berkeley.edu> fperez <>
+Fernando Perez <Fernando.Perez at berkeley.edu> fptest <>
+Fernando Perez <Fernando.Perez at berkeley.edu> fptest1 <>
+Fernando Perez <Fernando.Perez at berkeley.edu> Fernando Perez <fernando.perez at berkeley.edu>
+Fernando Perez <fernando.perez at berkeley.edu> Fernando Perez <>
+Fernando Perez <fernando.perez at berkeley.edu> Fernando Perez <fperez at maqroll>
+Frank Murphy <fpmurphy at mtu.edu> Frank Murphy <fmurphy at arbor.net>
+Gabriel Becker <gmbecker at ucdavis.edu> gmbecker <gmbecker at ucdavis.edu>
+Gael Varoquaux <gael.varoquaux at normalesup.org> gael.varoquaux <>
+Gael Varoquaux <gael.varoquaux at normalesup.org> gvaroquaux <gvaroquaux at gvaroquaux-desktop>
+Gael Varoquaux <gael.varoquaux at normalesup.org> Gael Varoquaux <>
+Ingolf Becker <ingolf.becker at googlemail.com> watercrossing <ingolf.becker at googlemail.com>
+Jake Vanderplas <jakevdp at gmail.com> Jake Vanderplas <vanderplas at astro.washington.edu>
+Jakob Gager <jakob.gager at gmail.com> jakobgager <jakob.gager at gmail.com>
+Jakob Gager <jakob.gager at gmail.com> jakobgager <gager at ilsb.tuwien.ac.at>
+Jakob Gager <jakob.gager at gmail.com> jakobgager <jakobgager at hotmail.com>
+Jason Grout <jgrout6 at bloomberg.net> <jason.grout at drake.edu>
+Jason Grout <jgrout6 at bloomberg.net> <jason-github at creativetrax.com>
+Jason Gors <jason.gors.work at gmail.com> jason gors <jason.gors.work at gmail.com>
+Jason Gors <jason.gors.work at gmail.com> jgors <jason.gors.work at gmail.com>
+Jens Hedegaard Nielsen <jenshnielsen at gmail.com> Jens Hedegaard Nielsen <jhn at jhn-Znote.(none)>
+Jens Hedegaard Nielsen <jenshnielsen at gmail.com> Jens H Nielsen <jenshnielsen at gmail.com>
+Jens Hedegaard Nielsen <jenshnielsen at gmail.com> Jens H. Nielsen <jenshnielsen at gmail.com>
+Jez Ng <jezreel at gmail.com> Jez Ng <me at jezng.com>
+Jonathan Frederic <jdfreder at calpoly.edu> Jonathan Frederic <jonathan at LifebookMint.(none)>
+Jonathan Frederic <jdfreder at calpoly.edu> Jonathan Frederic <jon.freder at gmail.com>
+Jonathan Frederic <jdfreder at calpoly.edu> Jonathan Frederic <xh3xx.goose at gmail.com>
+Jonathan Frederic <jdfreder at calpoly.edu> jon <jon.freder at gmail.com>
+Jonathan Frederic <jdfreder at calpoly.edu> U-Jon-PC\Jon <Jon at Jon-PC.(none)>
+Jonathan March <jmarch at enthought.com> Jonathan March <JDM at MarchRay.net>
+Jonathan March <jmarch at enthought.com> jdmarch <JDM at marchRay.net>
+Jörgen Stenarson <jorgen.stenarson at kroywen.se> Jörgen Stenarson <jorgen.stenarson at bostream.nu>
+Jörgen Stenarson <jorgen.stenarson at kroywen.se> Jorgen Stenarson <jorgen.stenarson at bostream.nu>
+Jörgen Stenarson <jorgen.stenarson at kroywen.se> Jorgen Stenarson <>
+Jörgen Stenarson <jorgen.stenarson at kroywen.se> jstenar <jorgen.stenarson at bostream.nu>
+Jörgen Stenarson <jorgen.stenarson at kroywen.se> jstenar <>
+Jörgen Stenarson <jorgen.stenarson at kroywen.se> Jörgen Stenarson <jorgen.stenarson at kroywen.se>
+Juergen Hasch <python at elbonia.de> juhasch <python at elbonia.de>
+Juergen Hasch <python at elbonia.de> juhasch <hasch at VMBOX.fritz.box>
+Julia Evans <julia at jvns.ca> Julia Evans <julia at stripe.com>
+Kester Tong <kestert at google.com> KesterTong <kestert at google.com>
+Kyle Kelley <rgbkrk at gmail.com> Kyle Kelley <kyle.kelley at rackspace.com>
+Kyle Kelley <rgbkrk at gmail.com> rgbkrk <rgbkrk at gmail.com>
+Laurent Dufréchou <laurent.dufrechou at gmail.com> <laurent.dufrechou at gmail.com>
+Laurent Dufréchou <laurent.dufrechou at gmail.com> <laurent at Pep>
+Laurent Dufréchou <laurent.dufrechou at gmail.com> laurent dufrechou <>
+Laurent Dufréchou <laurent.dufrechou at gmail.com> laurent.dufrechou <>
+Laurent Dufréchou <laurent.dufrechou at gmail.com> Laurent Dufrechou <>
+Laurent Dufréchou <laurent.dufrechou at gmail.com> laurent.dufrechou at gmail.com <>
+Laurent Dufréchou <laurent.dufrechou at gmail.com> ldufrechou <ldufrechou at PEP>
+Lorena Pantano <lorena.pantano at gmail.com> Lorena <lorena.pantano at gmail.com>
+Luis Pedro Coelho <luis at luispedro.org> Luis Pedro Coelho <lpc at cmu.edu>
+Marc Molla <marcmolla at gmail.com> marcmolla <marcmolla at gmail.com>
+Martín Gaitán <gaitan at gmail.com> Martín Gaitán <gaitan at phasety.com>
+Matthias Bussonnier <bussonniermatthias at gmail.com> Matthias BUSSONNIER <bussonniermatthias at gmail.com>
+Matthias Bussonnier <bussonniermatthias at gmail.com> Bussonnier Matthias <bussonniermatthias at gmail.com>
+Matthias Bussonnier <bussonniermatthias at gmail.com> Matthias BUSSONNIER <bussonniermatthias at umr168-curn-1-24x-6561.curie.fr>
+Matthias Bussonnier <bussonniermatthias at gmail.com> Matthias Bussonnier <carreau at Aspire.(none)>
+Michael Droettboom <mdboom at gmail.com> Michael Droettboom <mdroe at stsci.edu>
+Nicholas Bollweg <nick.bollweg at gmail.com> Nicholas Bollweg (Nick) <nick.bollweg at gmail.com>
+Nicolas Rougier <Nicolas.Rougier at inria.fr> <Nicolas.rougier at inria.fr>
+Nikolay Koldunov <koldunovn at gmail.com> Nikolay Koldunov <nikolay.koldunov at zmaw.de>
+Omar Andrés Zapata Mesa <andresete.chaos at gmail.com> Omar Andres Zapata Mesa <andresete.chaos at gmail.com>
+Omar Andrés Zapata Mesa <andresete.chaos at gmail.com> Omar Andres Zapata Mesa <omazapa at tuxhome>
+Pankaj Pandey <pankaj86 at gmail.com> Pankaj Pandey <pankaj at enthought.com>
+Pascal Schetelat <pascal.schetelat at gmail.com> pascal-schetelat <pascal.schetelat at gmail.com>
+Paul Ivanov <pi at berkeley.edu> Paul Ivanov <pivanov314 at gmail.com>
+Pauli Virtanen <pauli.virtanen at iki.fi> Pauli Virtanen <>
+Pauli Virtanen <pauli.virtanen at iki.fi> Pauli Virtanen <pav at iki.fi>
+Pierre Gerold <pierre.gerold at laposte.net> Pierre Gerold <gerold at crans.org>
+Pietro Berkes <pberkes at enthought.com> Pietro Berkes <pietro.berkes at googlemail.com>
+Piti Ongmongkolkul <piti118 at gmail.com> piti118 <piti118 at gmail.com>
+Prabhu Ramachandran <prabhu at enthought.com> Prabhu Ramachandran <>
+Puneeth Chaganti <punchagan at gmail.com> Puneeth Chaganti <punchagan at muse-amuse.in>
+Robert Kern <robert.kern at gmail.com> rkern <>
+Robert Kern <robert.kern at gmail.com> Robert Kern <rkern at enthought.com>
+Robert Kern <robert.kern at gmail.com> Robert Kern <rkern at Sacrilege.local>
+Robert Kern <robert.kern at gmail.com> Robert Kern <>
+Robert Marchman <bo.marchman at gmail.com> Robert Marchman <robert.l.marchman at dartmouth.edu>
+Satrajit Ghosh <satra at mit.edu> Satrajit Ghosh <satra at ba5.mit.edu>
+Satrajit Ghosh <satra at mit.edu> Satrajit Ghosh <satrajit.ghosh at gmail.com>
+Scott Sanderson <scoutoss at gmail.com> Scott Sanderson <ssanderson at quantopian.com>
+smithj1 <smithj1 at LMC-022896.local> smithj1 <smithj1 at LMC-022896.swisscom.com>
+smithj1 <smithj1 at LMC-022896.local> smithj1 <smithj1 at lmc-022896.local>
+Steven Johnson <steven.johnson at drake.edu> stevenJohnson <steven.johnson at drake.edu>
+Steven Silvester <steven.silvester at ieee.org> blink1073 <steven.silvester at ieee.org>
+S. Weber <s8weber at c4.usr.sh> s8weber <s8weber at c5.usr.sh>
+Stefan van der Walt <stefan at sun.ac.za> Stefan van der Walt <bzr at mentat.za.net>
+Silvia Vinyes <silvia.vinyes at gmail.com> Silvia <silvia at silvia-U44SG.(none)>
+Silvia Vinyes <silvia.vinyes at gmail.com> silviav12 <silvia.vinyes at gmail.com>
+Sylvain Corlay <scorlay at bloomberg.net> <sylvain.corlay at gmail.com>
+Sylvain Corlay <scorlay at bloomberg.net> sylvain.corlay <sylvain.corlay at gmail.com>
+Ted Drain <ted.drain at gmail.com> TD22057 <ted.drain at gmail.com>
+Théophile Studer <theo.studer at gmail.com> Théophile Studer <studer at users.noreply.github.com>
+Thomas Kluyver <takowl at gmail.com> Thomas <takowl at gmail.com>
+Thomas Spura <tomspur at fedoraproject.org> Thomas Spura <thomas.spura at gmail.com>
+Timo Paulssen <timonator at perpetuum-immobile.de> timo <timonator at perpetuum-immobile.de>
+vds <vds at VIVIAN> vds2212 <vds2212 at VIVIAN>
+vds <vds at VIVIAN> vds <vds at vivian>
+Ville M. Vainio <vivainio at gmail.com> <vivainio2 at WN-W0941>
+Ville M. Vainio <vivainio at gmail.com> ville <ville at VILLE-PC>
+Ville M. Vainio <vivainio at gmail.com> ville <ville at ville-desktop>
+Ville M. Vainio <vivainio at gmail.com> vivainio <>
+Ville M. Vainio <vivainio at gmail.com> Ville M. Vainio <vivainio at villev>
+Ville M. Vainio <vivainio at gmail.com> Ville M. Vainio <vivainio at ville_vmw>
+Walter Doerwald <walter at livinglogic.de> walter.doerwald <>
+Walter Doerwald <walter at livinglogic.de> Walter Doerwald <>
+W. Trevor King <wking at tremily.us> W. Trevor King <wking at drexel.edu>
+Yoval P. <yoval at gmx.com> y-p <yoval at gmx.com>
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..caa32c7
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,34 @@
+# http://travis-ci.org/#!/ipython/ipython
+language: python
+group: edge
+cache:
+    directories:
+        - ~/.cache/bower
+python:
+    - 3.5
+    - 2.7
+sudo: false
+env:
+  global:
+    - PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
+  matrix:
+    - GROUP=python
+    - GROUP=js/base
+    - GROUP=js/notebook
+    - GROUP=js/services
+    - GROUP=js/tree
+before_install:
+    - 'if [[ $GROUP == js* ]]; then npm install -g casperjs at 1.1.1; fi'
+    - git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
+install:
+    - pip install -f travis-wheels/wheelhouse file://$PWD#egg=notebook[test]
+script:
+    - 'if [[ $GROUP == js* ]]; then python -m notebook.jstest ${GROUP:3}; fi'
+    - 'if [[ $GROUP == python ]]; then nosetests --with-coverage --cover-package=notebook notebook; fi'
+matrix:
+    include:
+        - python: 3.3
+          env: GROUP=python
+        - python: 3.4
+          env: GROUP=python
+
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..6e377a7
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,28 @@
+include COPYING.md
+include CONTRIBUTING.md
+include README.md
+include package.json
+include bower.json
+include .bowerrc
+include setupbase.py
+include Dockerfile
+graft tools
+
+# Documentation
+graft docs
+exclude docs/\#*
+
+# Examples
+graft examples
+
+# docs subdirs we want to skip
+prune docs/build
+prune docs/gh-pages
+prune docs/dist
+
+# Patterns to exclude from any directory
+global-exclude *~
+global-exclude *.pyc
+global-exclude *.pyo
+global-exclude .git
+global-exclude .ipynb_checkpoints
diff --git a/PKG-INFO b/PKG-INFO
deleted file mode 100644
index ff80bd6..0000000
--- a/PKG-INFO
+++ /dev/null
@@ -1,28 +0,0 @@
-Metadata-Version: 1.1
-Name: notebook
-Version: 4.2.3
-Summary: A web-based notebook environment for interactive computing
-Home-page: http://jupyter.org
-Author: Jupyter Development Team
-Author-email: jupyter at googlegroups.com
-License: BSD
-Description: 
-        The Jupyter Notebook is a web application that allows you to create and
-        share documents that contain live code, equations, visualizations, and
-        explanatory text. The Notebook has support for multiple programming
-        languages, sharing, and interactive widgets.
-        
-        Read `the documentation <https://jupyter-notebook.readthedocs.org>`_
-        for more information.
-            
-Keywords: Interactive,Interpreter,Shell,Web
-Platform: Linux
-Platform: Mac OS X
-Platform: Windows
-Classifier: Intended Audience :: Developers
-Classifier: Intended Audience :: System Administrators
-Classifier: Intended Audience :: Science/Research
-Classifier: License :: OSI Approved :: BSD License
-Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3
diff --git a/git-hooks/README.md b/git-hooks/README.md
new file mode 100644
index 0000000..959b752
--- /dev/null
+++ b/git-hooks/README.md
@@ -0,0 +1,9 @@
+git hooks for Jupyter
+
+add these to your `.git/hooks`
+
+For now, we just have `post-checkout` and `post-merge`,
+both of which attempt to rebuild javascript and css sourcemaps,
+so make sure that you have a fully synced repo whenever you checkout or pull.
+
+To use these hooks, run `./install-hooks.sh`.  
diff --git a/git-hooks/install-hooks.sh b/git-hooks/install-hooks.sh
new file mode 100755
index 0000000..60ea641
--- /dev/null
+++ b/git-hooks/install-hooks.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+DOTGIT=`git rev-parse --git-dir`
+TOPLEVEL=`git rev-parse --show-toplevel`
+TO=${DOTGIT}/hooks
+FROM=${TOPLEVEL}/git-hooks
+
+ln -s ${FROM}/post-checkout ${TO}/post-checkout
+ln -s ${FROM}/post-merge ${TO}/post-merge
diff --git a/git-hooks/post-checkout b/git-hooks/post-checkout
new file mode 100755
index 0000000..f329619
--- /dev/null
+++ b/git-hooks/post-checkout
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+if [[ "$(basename $0)" == "post-merge" ]]; then
+  PREVIOUS_HEAD=ORIG_HEAD
+else
+  PREVIOUS_HEAD=$1
+fi
+
+# if style changed (and less available), rebuild sourcemaps
+if [[
+  ! -z "$(git diff $PREVIOUS_HEAD notebook/static/*/js/**.js)"
+]]; then
+  echo "rebuilding javascript"
+  python setup.py js || echo "fail to rebuild javascript"
+fi
+
+if [[
+  ! -z "$(git diff $PREVIOUS_HEAD notebook/static/*/less/**.less)"
+]]; then
+  echo "rebuilding css sourcemaps"
+  python setup.py css || echo "fail to recompile css"
+fi
diff --git a/git-hooks/post-merge b/git-hooks/post-merge
new file mode 120000
index 0000000..5513d1d
--- /dev/null
+++ b/git-hooks/post-merge
@@ -0,0 +1 @@
+post-checkout
\ No newline at end of file
diff --git a/notebook/services/api/api.yaml b/notebook/services/api/api.yaml
new file mode 100644
index 0000000..1c8b7c9
--- /dev/null
+++ b/notebook/services/api/api.yaml
@@ -0,0 +1,365 @@
+swagger: '2.0'
+info:
+  title: Jupyter Notebook API
+  description: Notebook API
+  version: "4"
+  contact:
+    name: Jupyter Project
+    url: jupyter.org
+# will be prefixed to all paths
+basePath: /api
+produces:
+  - application/json
+consumes:
+  - application/json
+parameters:
+  kernel:
+    name: kernel
+    required: true
+    in: path
+    description: kernel uuid
+    type: string
+    format: uuid
+  session:
+    name: session
+    required: true
+    in: path
+    description: session uuid
+    type: string
+    format: uuid
+
+paths:
+  /sessions/{session}:
+    parameters:
+      - $ref: '#/parameters/session'
+    get:
+      summary: Get session
+      tags:
+        - sessions
+      responses:
+        200:
+          description: Session
+          schema:
+            $ref: '#/definitions/Session'
+    patch:
+      summary: This can be used to rename the notebook, or move it to a new directory.
+      tags:
+        - sessions
+      parameters:
+        - name: model
+          in: body
+          required: true
+          schema:
+            type: object
+            properties:
+              notebook:
+                type: object
+                properties:
+                  path:
+                    type: string
+                    format: path
+                    description: new path for notebook
+      responses:
+        200:
+          description: Session
+          schema:
+            $ref: '#/definitions/Session'
+        400:
+          description: No data provided
+    delete:
+      summary: Delete a session
+      tags:
+        - sessions
+      responses:
+        204:
+          description: Session (and kernel) were deleted
+        410:
+          description: Kernel was deleted before the session, and the session was *not* deleted (TODO - check to make sure session wasn't deleted)
+  /sessions:
+    get:
+      summary: List available sessions
+      tags:
+        - sessions
+      responses:
+        200:
+          description: List of current sessions
+          schema:
+            type: array
+            items:
+              $ref: '#/definitions/Session'
+    post:
+      summary: Create a new session, or return an existing session if a session for the notebook path already exists
+      tags:
+        - sessions
+      parameters:
+        - name: session
+          in: body
+          schema:
+            type: object
+            properties:
+              notebook:
+                type: object
+                required:
+                  - path
+                properties:
+                  path:
+                    type: string
+                    description: path to notebook file
+              kernel:
+                type: object
+                properties:
+                  name:
+                    type: string
+                    description: Kernel spec name, defaults to default kernel spec
+      responses:
+        201:
+          description: Session created or returned
+          schema:
+            $ref: '#/definitions/Session'
+          headers:
+            Location:
+              description: URL for session commands
+              type: string
+              format: url
+        501:
+          description: Kernel not available
+          schema:
+            type: object
+            description: error message
+            properties:
+              message:
+                type: string
+              short_message:
+                type: string
+
+  /kernels:
+    get:
+      summary: List the JSON data for all kernels that are currently running
+      tags:
+        - kernels
+      responses:
+        200:
+          description: List of currently-running kernel uuids
+          schema:
+            type: array
+            items:
+              $ref: '#/definitions/Kernel'
+    post:
+      summary: Start a kernel and return the uuid
+      tags:
+        - kernels
+      parameters:
+        - name: name
+          in: body
+          description: Kernel spec name (defaults to default kernel spec for server)
+          schema:
+            type: object
+            properties:
+              name:
+                type: string
+      responses:
+        201:
+          description: Kernel started
+          headers:
+            Location:
+              description: URL for kernel commands
+              type: string
+              format: url
+  /kernels/{kernel}:
+    parameters:
+      - $ref: '#/parameters/kernel'
+    get:
+      summary: Get kernel information
+      tags:
+        - kernels
+      responses:
+        200:
+          description: Kernel information
+          schema:
+            $ref: '#/definitions/Kernel'
+    delete:
+      summary: Kill a kernel and delete the kernel id
+      tags:
+        - kernels
+      responses:
+        204:
+          description: Kernel deleted
+  /kernels/{kernel}/interrupt:
+    parameters:
+      - $ref: '#/parameters/kernel'
+    post:
+      summary: Interrupt a kernel
+      tags:
+        - kernels
+      responses:
+        204:
+          description: Kernel interrupted
+  /kernels/{kernel}/restart:
+    parameters:
+      - $ref: '#/parameters/kernel'
+    post:
+      summary: Restart a kernel
+      tags:
+        - kernels
+      responses:
+        200:
+          description: Kernel interrupted
+          headers:
+            Location:
+              description: URL for kernel commands
+              type: string
+              format: url
+          schema:
+            $ref: '#/definitions/Kernel'
+
+  /kernelspecs:
+    get:
+      summary: List kernel specs
+      tags:
+        - kernelspecs
+      responses:
+        200:
+          description: Kernel specs
+          schema:
+            type: object
+            properties:
+              default:
+                type: string
+                description: Default kernel name
+              kernelspecs:
+                type: array
+                items:
+                  $ref: '#/definitions/KernelSpec'
+  /kernelspecs/{kernel}:
+    parameters:
+      - $ref: '#/parameters/kernel'
+    get:
+      summary: Kernel information
+      tags:
+        - kernelspecs
+      responses:
+        200:
+          description: The contents of kernel.json
+          schema:
+            $ref: '#/definitions/KernelSpec'
+        404:
+          description: Kernel spec not found
+  /kernelspecs/{kernel}/{filename}:
+    get:
+      summary: Retrieve a file from the kernel directory
+      tags:
+        - kernelspecs
+      parameters:
+        - name: kernel
+          in: path
+          description: Kernel uuid
+          type: string
+          required: true
+        - name: filename
+          in: path
+          description: filename
+          type: string
+          required: true
+      responses:
+        200:
+          description: file
+
+definitions:
+  KernelSpec:
+    description: Kernel spec (contents of kernel.json)
+    properties:
+      name:
+        type: string
+        description: Unique name for kernel
+      spec:
+        $ref: '#/definitions/KernelSpecFile'
+        description: Kernel spec json file
+      resources:
+        type: object
+        properties:
+          kernel.js:
+            type: string
+            format: filename
+            description: path for kernel.js file
+          kernel.css:
+            type: string
+            format: filename
+            description: path for kernel.css file
+          logo-*:
+            type: string
+            format: filename
+            description: path for logo file.  Logo filenames are of the form `logo-widthxheight`
+  KernelSpecFile:
+    description: Kernel spec json file
+    required:
+      - argv
+      - display_name
+      - language
+    properties:
+      language:
+        type: string
+        description: The programming language which this kernel runs. This will be stored in notebook metadata.
+      argv:
+        type: array
+        description: A list of command line arguments used to start the kernel. The text `{connection_file}` in any argument will be replaced with the path to the connection file.
+        items:
+          type: string
+      display_name:
+        type: string
+        description: The kernel's name as it should be displayed in the UI. Unlike the kernel name used in the API, this can contain arbitrary unicode characters.
+      codemirror_mode:
+        type: string
+        description: Codemirror mode.  Can be a string *or* an valid Codemirror mode object.  This defaults to the string from the `language` property.
+      env:
+        type: object
+        description: A dictionary of environment variables to set for the kernel. These will be added to the current environment variables.
+        additionalProperties:
+          type: string
+      help_links:
+        type: array
+        description: Help items to be displayed in the help menu in the notebook UI.
+        items:
+          type: object
+          required:
+          - text
+          - url
+          properties:
+            text:
+              type: string
+              description: menu item link text
+            url:
+              type: string
+              format: URL
+              description: menu item link url
+  Kernel:
+    description: Kernel information
+    required:
+      - id
+      - name
+    properties:
+      id:
+        type: string
+        format: uuid
+        description: uuid of kernel
+      name:
+        type: string
+        description: kernel spec name
+  Session:
+    description: A session
+    type: object
+    properties:
+      id:
+        type: string
+        format: uuid
+      notebook:
+        type: object
+        properties:
+          path:
+            type: string
+            description: path to notebook
+      kernel:
+        $ref: '#/definitions/Kernel'
+        
+        
+
+
diff --git a/notebook/static/auth/js/main.min.js b/notebook/static/auth/js/main.min.js
deleted file mode 100644
index d83b2fb..0000000
--- a/notebook/static/auth/js/main.min.js
+++ /dev/null
@@ -1,218 +0,0 @@
-// Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.
-
-
-var Jupyter = Jupyter || {};
-
-var jprop = function(name, module_path){
-    Object.defineProperty(Jupyter, name, {
-      get: function() { 
-          console.warn('accessing `'+name+'` is deprecated. Use `require("'+module_path+'")`');
-          return require(module_path); 
-      },
-      enumerable: true,
-      configurable: false
-    });
-}
-
-var jglobal = function(name, module_path){
-    Object.defineProperty(Jupyter, name, {
-      get: function() { 
-          console.warn('accessing `'+name+'` is deprecated. Use `require("'+module_path+'").'+name+'`');
-          return require(module_path)[name]; 
-      },
-      enumerable: true,
-      configurable: false
-    });
-}
-
-define('base/js/namespace',[],function(){
-    "use strict";
-
-    // expose modules
-    
-    jprop('utils','base/js/utils')
-    
-    //Jupyter.load_extensions = Jupyter.utils.load_extensions;
-    // 
-    jprop('security','base/js/security');
-    jprop('keyboard','base/js/keyboard');
-    jprop('dialog','base/js/dialog');
-    jprop('mathjaxutils','notebook/js/mathjaxutils');
-
-
-    //// exposed constructors
-    jglobal('CommManager','services/kernels/comm')
-    jglobal('Comm','services/kernels/comm')
-
-    jglobal('NotificationWidget','base/js/notificationwidget');
-    jglobal('Kernel','services/kernels/kernel');
-    jglobal('Session','services/sessions/session');
-    jglobal('LoginWidget','auth/js/loginwidget');
-    jglobal('Page','base/js/page');
-
-    // notebook
-    jglobal('TextCell','notebook/js/textcell');
-    jglobal('OutputArea','notebook/js/outputarea');
-    jglobal('KeyboardManager','notebook/js/keyboardmanager');
-    jglobal('Completer','notebook/js/completer');
-    jglobal('Notebook','notebook/js/notebook');
-    jglobal('Tooltip','notebook/js/tooltip');
-    jglobal('Toolbar','notebook/js/toolbar');
-    jglobal('SaveWidget','notebook/js/savewidget');
-    jglobal('Pager','notebook/js/pager');
-    jglobal('QuickHelp','notebook/js/quickhelp');
-    jglobal('MarkdownCell','notebook/js/textcell');
-    jglobal('RawCell','notebook/js/textcell');
-    jglobal('Cell','notebook/js/cell');
-    jglobal('MainToolBar','notebook/js/maintoolbar');
-    jglobal('NotebookNotificationArea','notebook/js/notificationarea');
-    jglobal('NotebookTour', 'notebook/js/tour');
-    jglobal('MenuBar', 'notebook/js/menubar');
-
-    // tree
-    jglobal('SessionList','tree/js/sessionlist');
-
-    Jupyter.version = "4.2.3";
-    Jupyter._target = '_blank';
-    return Jupyter;
-});
-
-// deprecated since 4.0, remove in 5+
-var IPython = Jupyter
-;
-/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
-//@ sourceMappingURL=jquery.min.map
-*/
-(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],p="2.0.3",f=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("D [...]
-};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(thi [...]
-},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Xt,Ut,Yt=x.now(),Vt=/\?/,Gt=/#.*$/,Jt=/([?&])_=[^&]*/,Qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zt=/^(?:GET|HEAD)$/,en=/^\/\//,tn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,nn=x.fn.load,rn={},on={},sn="*/".concat("*");try{Ut=i.href}catch(an){Ut=o.createElement("a"),Ut.href="",Ut=U [...]
-
-// Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.
-
-// Give us an object to bind all events to. This object should be created
-// before all other objects so it exists when others register event handlers.
-// To register an event handler:
-//
-// require(['base/js/events'], function (events) {
-//     events.on("event.Namespace", function () { do_stuff(); });
-// });
-
-define('base/js/events',['base/js/namespace', 'jquery'], function(IPython, $) {
-    "use strict";
-
-    var Events = function () {};
-    
-    var events = new Events();
-    
-    // Backwards compatability.
-    IPython.Events = Events;
-    IPython.events = events;
-    
-    return $([events]);
-});
-
-// Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.
-
-define('base/js/page',[
-    'jquery',
-    'base/js/events',
-], function($, events){
-    "use strict";
-
-    var Page = function () {
-        this.bind_events();
-    };
-
-    Page.prototype.bind_events = function () {
-        // resize site on:
-        // - window resize
-        // - header change
-        // - page load
-        var _handle_resize = $.proxy(this._resize_site, this);
-        
-        $(window).resize(_handle_resize);
-
-        // On document ready, resize codemirror.
-        $(document).ready(_handle_resize);
-        events.on('resize-header.Page', _handle_resize);
-    };
-
-    Page.prototype.show = function () {
-        /**
-         * The header and site divs start out hidden to prevent FLOUC.
-         * Main scripts should call this method after styling everything.
-         */
-        this.show_header();
-        this.show_site();
-    };
-
-    Page.prototype.show_header = function () {
-        /**
-         * The header and site divs start out hidden to prevent FLOUC.
-         * Main scripts should call this method after styling everything.
-         * TODO: selector are hardcoded, pass as constructor argument
-         */
-        $('div#header').css('display','block');
-    };
-
-    Page.prototype.show_site = function () {
-        /**
-         * The header and site divs start out hidden to prevent FLOUC.
-         * Main scripts should call this method after styling everything.
-         * TODO: selector are hardcoded, pass as constructor argument
-         */
... 107014 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/notebook.git



More information about the Python-modules-commits mailing list