Skip to content

Commit 92edb77

Browse files
Apply auto-formatters (#391)
* Apply auto-formatters * Apply auto-formatters * revert pre-commit changes * Revert "revert pre-commit changes" This reverts commit fad4b17. * Revert "Apply auto-formatters" This reverts commit 32b06a6. * try again * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b4f4fa6 commit 92edb77

Some content is hidden

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

53 files changed

+1763
-1460
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,32 @@ jobs:
1313
strategy:
1414
matrix:
1515
python:
16-
- "3.8"
17-
- "3.9"
18-
- "3.10"
19-
- "3.11"
20-
- "3.12"
16+
- "3.8"
17+
- "3.9"
18+
- "3.10"
19+
- "3.11"
20+
- "3.12"
2121

2222
runs-on: ubuntu-latest
2323
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
2426

25-
- name: Checkout
26-
uses: actions/checkout@v4
27+
- name: Base Setup
28+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2729

28-
- name: Base Setup
29-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
30+
- name: Install dependencies
31+
run: |
32+
pip install -e .
33+
pip freeze
3034
31-
- name: Install dependencies
32-
run: |
33-
pip install -e .
34-
pip freeze
35+
- name: Show help
36+
run: jupyter kernelgateway --help
3537

36-
- name: Show help
37-
run: jupyter kernelgateway --help
38+
- name: Run tests
39+
run: hatch run cov:test
40+
env:
41+
ASYNC_TEST_TIMEOUT: 10
3842

39-
- name: Run tests
40-
run: hatch run cov:test
41-
env:
42-
ASYNC_TEST_TIMEOUT: 10
43-
44-
- name: Build docs
45-
run: hatch run docs:build
43+
- name: Build docs
44+
run: hatch run docs:build

CHANGELOG.md

Lines changed: 104 additions & 104 deletions
Large diffs are not rendered by default.

LICENSE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ change to one of the Jupyter repositories.
5757
With this in mind, the following banner should be used in any source code file
5858
to indicate the copyright and license terms:
5959

60-
# Copyright (c) Jupyter Development Team.
61-
# Distributed under the terms of the Modified BSD License.
60+
```
61+
# Copyright (c) Jupyter Development Team.
62+
# Distributed under the terms of the Modified BSD License.
63+
```

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Jupyter Kernel Gateway
22

3-
[![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)
3+
[![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)
44
[![PyPI version](https://badge.fury.io/py/jupyter_kernel_gateway.svg)](https://badge.fury.io/py/jupyter_kernel_gateway)
55
[![Build Status](https://github.com/jupyter/kernel_gateway/workflows/Tests/badge.svg)](https://github.com/jupyter/kernel_gateway/actions?query=workflow%3ATests)
66
[![Documentation Status](http://readthedocs.org/projects/jupyter-kernel-gateway/badge/?version=latest)](https://jupyter-kernel-gateway.readthedocs.io/en/latest/?badge=latest)
@@ -14,13 +14,13 @@ There are no provisions for editing notebooks through the Kernel Gateway.
1414
The following operation modes, called personalities, are supported
1515
out of the box:
1616

17-
* Send code snippets for execution using the
17+
- Send code snippets for execution using the
1818
[Jupyter kernel protocol](https://jupyter-client.readthedocs.io/en/latest/messaging.html)
1919
over Websockets. Start and stop kernels through REST calls.
2020
This HTTP API is compatible with the respective API sections
2121
of the Jupyter Notebook server.
2222

23-
* Serve HTTP requests from annotated notebook cells. The code snippets
23+
- Serve HTTP requests from annotated notebook cells. The code snippets
2424
are cells of a static notebook configured in the Kernel Gateway.
2525
Annotations define which HTTP verbs and resources it supports.
2626
Incoming requests are served by executing one of the cells in a kernel.
@@ -31,13 +31,13 @@ It can be containerized and scaled out using common technologies like [tmpnb](ht
3131

3232
### Example Uses of Kernel Gateway
3333

34-
* Attach a local Jupyter Notebook server to a compute cluster in the cloud running near big data (e.g., interactive gateway to Spark)
35-
* Enable a new breed of non-notebook web clients to provision and use kernels (e.g., web dashboards using [jupyter-js-services](https://github.com/jupyter/jupyter-js-services))
36-
* Create microservices from notebooks using the Kernel Gateway [`notebook-http` mode](https://jupyter-kernel-gateway.readthedocs.io/en/latest/http-mode.html)
34+
- Attach a local Jupyter Notebook server to a compute cluster in the cloud running near big data (e.g., interactive gateway to Spark)
35+
- Enable a new breed of non-notebook web clients to provision and use kernels (e.g., web dashboards using [jupyter-js-services](https://github.com/jupyter/jupyter-js-services))
36+
- Create microservices from notebooks using the Kernel Gateway [`notebook-http` mode](https://jupyter-kernel-gateway.readthedocs.io/en/latest/http-mode.html)
3737

3838
### Features
3939

40-
See the [Features page](https://jupyter-kernel-gateway.readthedocs.io/en/latest/features.html) in the
40+
See the [Features page](https://jupyter-kernel-gateway.readthedocs.io/en/latest/features.html) in the
4141
documentation for a list of the Jupyter Kernel Gateway features.
4242

4343
## Installation

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def jp_configurable_serverapp(
3434
.. code-block:: python
3535
3636
def my_test(jp_configurable_serverapp):
37-
app = jp_configurable_serverapp(...)
38-
...
37+
app = jp_configurable_serverapp(...)
38+
...
3939
"""
4040
KernelGatewayApp.clear_instance()
4141

0 commit comments

Comments
 (0)