├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── examples ├── browser-require │ ├── README.md │ ├── index.html │ ├── index.js │ └── main.py ├── browser │ ├── README.md │ ├── index.html │ ├── index.ts │ ├── main.py │ ├── package.json │ ├── tsconfig.json │ └── webpack.config.js └── node │ ├── README.md │ ├── index.js │ ├── main.py │ └── package.json ├── package.json ├── scripts ├── travis_after_success.sh ├── travis_install.sh └── travis_script.sh ├── src ├── config │ └── index.ts ├── contents │ ├── index.ts │ └── validate.ts ├── index.ts ├── kernel │ ├── comm.ts │ ├── default.ts │ ├── future.ts │ ├── index.ts │ ├── kernel.ts │ ├── manager.ts │ ├── messages.ts │ ├── serialize.ts │ └── validate.ts ├── manager.ts ├── nbformat.ts ├── session │ ├── default.ts │ ├── index.ts │ ├── manager.ts │ ├── session.ts │ └── validate.ts ├── terminal │ ├── default.ts │ ├── index.ts │ ├── manager.ts │ └── terminal.ts ├── tsconfig.json ├── typedoc.d.ts ├── typings.d.ts └── utils.ts ├── test ├── integration_test.py └── src │ ├── config │ └── config.spec.ts │ ├── contents │ ├── index.spec.ts │ └── validate.spec.ts │ ├── integration.ts │ ├── kernel │ ├── comm.spec.ts │ ├── kernel.spec.ts │ ├── manager.spec.ts │ ├── messages.spec.ts │ └── validate.spec.ts │ ├── manager.spec.ts │ ├── mockxhr.ts │ ├── nbformat.spec.ts │ ├── session │ ├── manager.spec.ts │ ├── session.spec.ts │ └── validate.spec.ts │ ├── target.ts │ ├── terminal │ ├── manager.spec.ts │ └── terminal.spec.ts │ ├── tsconfig.json │ ├── typings.d.ts │ ├── utils.spec.ts │ └── utils.ts ├── typedoc.json ├── typings ├── path-posix │ └── path-posix.d.ts ├── url-parse │ └── url-parse.d.ts └── xmlhttprequest │ └── xmlhttprequest.d.ts └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | *.suo 2 | *.user 3 | .DS_Store 4 | node_modules 5 | typings/tsd.d.ts 6 | npm-debug.log 7 | test/build 8 | test/coverage 9 | lib 10 | dist 11 | build 12 | docs 13 | example/*.js 14 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.12' 4 | - '5.1' 5 | sudo: false 6 | env: 7 | matrix: 8 | - GROUP= 9 | global: 10 | - GH_REF: github.com/jupyterlab/services.git 11 | - secure: VksMSktfsYS7q60EhjFK+acMlRSgDbMYZ67djRy6Gu17C8e3fBpXgZHT1d9RB9eN1GGji3l889ocUOmvcR5bD/0GgidPwTwQpZnDsrTX5O7TbinKP8K228V/hGfPWhEC5lIViRGISzZkxrQmEA+TIcIqqPY6rRCoXMGzV/EVHztFFLzTeAhLPg/9cp1U24ZlLpz2n/a+rIaOASj9KVLDwwj3gGduzrwszP4idZlkFd6pgvSUn1J/YL+9IseI2+H0G/9ybEmPWPSOdOkrK6yeg7KpKaF9PDoxyik3vAnWfdO6JV/AsyWc2zcZmobf2pJ/m0W8hvsUlFsg0fBzOX6rf7U78orahPt+1o5+9M2mI48G5itazbXeVNi/7hedJM0Zj0g9sEQsnxzCMDcFEUVF8tqd2fShDdgEFAaCTVn2DMGk+kSCjcfXHj0OZs51IHMVZdihlliwYaPxaQrbQYvf0E7RyeDs512RSc5k3ivd/OjwIdFVoL0u4e+aJL3YVGTY4qA51K0wTi++IPVqbnZ7R1GnmtBiTD5Yl1KpyGqdW3fvH4YISAXT8t+O5Bze6AnaNd/zRUsiUQfq4rDabptA1u5P6lEzgnwthKSnh2OLDlMV+XVw92gOfRTTPlL4In8hWoytPJWWQBNaHu1sY7f24TGudX/ERwddkSJzBzYbqb0= 12 | install: 13 | - bash ./scripts/travis_install.sh 14 | script: 15 | - bash ./scripts/travis_script.sh 16 | after_success: 17 | - bash ./scripts/travis_after_success.sh 18 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | We follow the [IPython Contributing Guide](https://github.com/ipython/ipython/blob/master/CONTRIBUTING.md). 4 | 5 | All source code is written in [TypeScript](http://www.typescriptlang.org/Handbook). See the [Style Guide](https://github.com/phosphorjs/phosphor/wiki/Style-Guide). 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Project Jupyter 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of jupyter-js-services nor the names of its 15 | contributors may be used to endorse or promote products derived from 16 | this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | JupyterLab Services 2 | =================== 3 | 4 | Javascript client for the Jupyter services REST APIs 5 | 6 | [API Docs](http://jupyterlab.github.io/services/) 7 | 8 | [REST API Docs](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/master/notebook/services/api/api.yaml) 9 | 10 | Note: All functions and classes using the REST API allow an `ajaxOptions` 11 | parameter to configure requests. 12 | 13 | 14 | Package Install 15 | --------------- 16 | 17 | **Prerequisites** 18 | - [node](http://nodejs.org/) 19 | - [python](https://www.continuum.io/downloads) 20 | 21 | ```bash 22 | npm install --save @jupyterlab/services 23 | conda install notebook # notebook 4.2+ required 24 | ``` 25 | 26 | 27 | Source Build 28 | ------------ 29 | 30 | **Prerequisites** 31 | - [git](http://git-scm.com/) 32 | - [node 0.12+](http://nodejs.org/) 33 | - [python](https://www.continuum.io/downloads) 34 | 35 | ```bash 36 | git clone https://github.com/jupyterlab/services.git 37 | cd services 38 | npm install 39 | npm run build 40 | conda install notebook # notebook 4.2+ required 41 | ``` 42 | 43 | **Rebuild** 44 | ```bash 45 | npm run clean 46 | npm run build 47 | ``` 48 | 49 | 50 | Run Tests 51 | --------- 52 | 53 | Follow the source build instructions first. 54 | 55 | ```bash 56 | npm test 57 | ``` 58 | 59 | 60 | Build Docs 61 | ---------- 62 | 63 | Follow the source build instructions first. 64 | 65 | ```bash 66 | npm run docs 67 | ``` 68 | 69 | Navigate to `docs/index.html`. 70 | 71 | 72 | Supported Runtimes 73 | ------------------ 74 | 75 | The runtime versions which are currently *known to work* are listed below. 76 | Earlier versions may also work, but come with no guarantees. 77 | 78 | - Node 0.12.7+ 79 | - IE 11+ 80 | - Firefox 32+ 81 | - Chrome 38+ 82 | 83 | Note: "requirejs" must be included in a global context for Comm targets. 84 | This can be as a ` 6 | 11 | 12 |
13 | 14 |16 | Type code in the text area and click run to execute it. 17 | You will see a log of the messages produced by the kernel below. 18 |
19 |Starting...22 |