Skip to content

Commit 799c588

Browse files
committed
add: license
1 parent f8921db commit 799c588

File tree

16 files changed

+143
-10663
lines changed

16 files changed

+143
-10663
lines changed

.licenserc.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
header:
2+
license:
3+
spdx-id: Datalayer
4+
copyright-owner: Datalayer, Inc.
5+
copyright-year: 2024-2025
6+
content: |
7+
Copyright (c) [year] [owner]
8+
Distributed under the terms of the Modified BSD License.
9+
10+
paths-ignore:
11+
- '**/*.apt'
12+
- '**/*.cedar'
13+
- '**/*.dash'
14+
- '**/*.fga'
15+
- '**/*.ipynb'
16+
- '**/*.j2'
17+
- '**/*.json'
18+
- '**/*.mamba'
19+
- '**/*.md'
20+
- '**/*.mod'
21+
- '**/*.nblink'
22+
- '**/*.rego'
23+
- '**/*.sum'
24+
- '**/*.svg'
25+
- '**/*.template'
26+
- '**/*.tsbuildinfo'
27+
- '**/*.txt'
28+
- '**/*.yaml'
29+
- '**/*.yml'
30+
- '**/*_key'
31+
- '**/*_key.pub'
32+
- '**/.*'
33+
- '**/LICENSE.txt'
34+
- '**/MANIFEST.in'
35+
- '**/build'
36+
- '**/lib'
37+
- '**/node_modules'
38+
- '**/schemas'
39+
- '**/ssh/*'
40+
- '**/static'
41+
- '**/themes'
42+
- '**/typings'
43+
- '**/*.patch'
44+
- '**/*.bundle.js'
45+
- '**/*.map.js'
46+
- 'LICENSE'
47+
48+
comment: on-failure

Makefile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright (c) 2023-2024 Datalayer, Inc.
2+
#
3+
# BSD 3-Clause License
4+
5+
SHELL=/bin/bash
6+
7+
.DEFAULT_GOAL := default
8+
9+
.PHONY: clean build
10+
11+
default: all ## Default target is all.
12+
13+
help: ## display this help.
14+
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
15+
16+
all: clean dev ## Clean Install and Build
17+
18+
install:
19+
pip install .
20+
21+
dev:
22+
pip install ".[test,lint,typing]"
23+
24+
build:
25+
pip install build
26+
python -m build .
27+
28+
clean: ## clean
29+
git clean -fdx
30+
31+
jupyter-server: ## jupyter-server
32+
jupyter server --port 8888 --autoreload --ServerApp.disable_check_xsrf=True --IdentityProvider.token= --ServerApp.port_retries=0
33+
34+
publish-pypi: # publish the pypi package
35+
git clean -fdx && \
36+
python -m build
37+
@exec echo
38+
@exec echo twine upload ./dist/*-py3-none-any.whl
39+
@exec echo
40+
@exec echo https://pypi.org/project/jupyter-server-nbmodel/#history

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
# jupyter_server_nbmodel
1+
2+
[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)
3+
4+
[![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=1ABC9C)](https://github.com/sponsors/datalayer)
5+
6+
# 🪐 Jupyter Server NbModel
27

38
[![Github Actions Status](https://github.com/datalayer/jupyter-server-nbmodel/workflows/Build/badge.svg)](https://github.com/datalayer/jupyter-server-nbmodel/actions/workflows/build.yml)
49
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/datalayer/jupyter-server-nbmodel/main?urlpath=lab)
510

11+
> Stop session timeouts and lost.
12+
613
A Jupyter Server extension to execute code cell from the server.
714

815
This extension is composed of a Python package named `jupyter_server_nbmodel`
@@ -12,7 +19,7 @@ for the frontend extension.
1219
## Requirements
1320

1421
- Jupyter Server
15-
- \[recommended\] Real-time collaboration for JupyterLab/Notebook:
22+
- \[RECOMMENDED\] Real-time collaboration for JupyterLab/Notebook:
1623
This will push the kernels results in the notebook from the server.
1724

1825
## Install

jupyter_server_nbmodel/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2024-2025 Datalayer, Inc.
2+
# Distributed under the terms of the Modified BSD License.
3+
14
try:
25
from ._version import __version__
36
except ImportError:

jupyter_server_nbmodel/event_logger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2024-2025 Datalayer, Inc.
2+
# Distributed under the terms of the Modified BSD License.
3+
14
from jupyter_events import EventLogger
25
import pathlib
36

jupyter_server_nbmodel/extension.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2024-2025 Datalayer, Inc.
2+
# Distributed under the terms of the Modified BSD License.
3+
14
from __future__ import annotations
25

36
import asyncio

jupyter_server_nbmodel/handlers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2024-2025 Datalayer, Inc.
2+
# Distributed under the terms of the Modified BSD License.
3+
14
from __future__ import annotations
25

36
import asyncio

jupyter_server_nbmodel/log.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2024-2025 Datalayer, Inc.
2+
# Distributed under the terms of the Modified BSD License.
3+
14
from __future__ import annotations
25

36
import logging
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# Copyright (c) 2024-2025 Datalayer, Inc.
2+
# Distributed under the terms of the Modified BSD License.
3+
14
"""Python unit tests for jupyter_server_nbmodel."""

jupyter_server_nbmodel/tests/test_handlers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2024-2025 Datalayer, Inc.
2+
# Distributed under the terms of the Modified BSD License.
3+
14
import asyncio
25
import datetime
36
import json
@@ -8,6 +11,7 @@
811
from jupyter_client.kernelspec import NATIVE_KERNEL_NAME
912

1013
TEST_TIMEOUT = 15
14+
1115
SLEEP = 0.25
1216

1317

0 commit comments

Comments
 (0)