Skip to content

Commit 3c4ceff

Browse files
committed
added hyperml-submit-notebooks frontend ext
1 parent f93c26e commit 3c4ceff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4309
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
- name: Install node
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '10.x'
19+
- name: Install Python
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: '3.7'
23+
architecture: 'x64'
24+
- name: Install dependencies
25+
run: python -m pip install jupyterlab
26+
- name: Build the extension
27+
run: |
28+
jlpm && jlpm run build
29+
jupyter labextension install .
30+
python -m jupyterlab.browser_check

hyperml-submit-notebooks/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.bundle.*
2+
lib/
3+
node_modules/
4+
*.egg-info/
5+
.ipynb_checkpoints
6+
*.tsbuildinfo
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# hyperml-submit-notebooks
2+
3+
![Github Actions Status](https://github.com/hyper-ml/submit-notebooks/workflows/Build/badge.svg)
4+
5+
HyperML Submit Notebooks extensions
6+
7+
8+
## Requirements
9+
10+
* JupyterLab >= 2.0
11+
12+
## Install
13+
14+
```bash
15+
jupyter labextension install hyperml-submit-notebooks
16+
```
17+
18+
## Contributing
19+
20+
### Install
21+
22+
The `jlpm` command is JupyterLab's pinned version of
23+
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
24+
`yarn` or `npm` in lieu of `jlpm` below.
25+
26+
```bash
27+
# Clone the repo to your local environment
28+
# Move to hyperml-submit-notebooks directory
29+
# Install dependencies
30+
jlpm
31+
# Build Typescript source
32+
jlpm build
33+
# Link your development version of the extension with JupyterLab
34+
jupyter labextension link .
35+
# Rebuild Typescript source after making changes
36+
jlpm build
37+
# Rebuild JupyterLab after making any changes
38+
jupyter lab build
39+
```
40+
41+
You can watch the source directory and run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild the extension and application.
42+
43+
```bash
44+
# Watch the source directory in another terminal tab
45+
jlpm watch
46+
# Run jupyterlab in watch mode in one terminal tab
47+
jupyter lab --watch
48+
```
49+
50+
### Uninstall
51+
52+
```bash
53+
jupyter labextension uninstall hyperml-submit-notebooks
54+
```
55+

hyperml-submit-notebooks/LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2020, All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
* Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

hyperml-submit-notebooks/package.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "hyperml-submit-notebooks",
3+
"version": "0.1.0",
4+
"description": "HyperML Submit Notebooks extensions",
5+
"keywords": [
6+
"jupyter",
7+
"jupyterlab",
8+
"jupyterlab-extension"
9+
],
10+
"homepage": "https://github.com/hyper-ml/submit-notebooks",
11+
"bugs": {
12+
"url": "https://github.com/hyper-ml/submit-notebooks/issues"
13+
},
14+
"license": "BSD-3-Clause",
15+
"author": "",
16+
"files": [
17+
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
18+
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
19+
],
20+
"main": "lib/index.js",
21+
"types": "lib/index.d.ts",
22+
"style": "style/index.css",
23+
"repository": {
24+
"type": "git",
25+
"url": "https://github.com/hyper-ml/submit-notebooks.git"
26+
},
27+
"scripts": {
28+
"build": "tsc",
29+
"clean": "rimraf lib tsconfig.tsbuildinfo",
30+
"prepare": "jlpm run clean && jlpm run build",
31+
"watch": "tsc -w"
32+
},
33+
"dependencies": {
34+
"@jupyterlab/application": "^2.0.0",
35+
"@jupyterlab/apputils": "^2.0.0",
36+
"@jupyterlab/coreutils": "^4.0.0",
37+
"@jupyterlab/docmanager": "^2.0.0",
38+
"@jupyterlab/filebrowser": "^2.0.0",
39+
"@jupyterlab/launcher": "^2.0.0",
40+
"@jupyterlab/mainmenu": "^2.0.0",
41+
"@jupyterlab/notebook": "^2.0.0",
42+
"@lumino/disposable": "^1.1.2",
43+
"requests-helper": "^0.1.5",
44+
"@lumino/datagrid": "^0.5.3"
45+
},
46+
"devDependencies": {
47+
"rimraf": "^2.6.1",
48+
"typescript": "~3.7.0"
49+
},
50+
"sideEffects": [
51+
"style/*.css"
52+
],
53+
"jupyterlab": {
54+
"extension": true
55+
}
56+
}

hyperml-submit-notebooks/src/index.js

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hyperml-submit-notebooks/src/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)