akernel 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {akernel-0.3.0 → akernel-0.3.2}/PKG-INFO +1 -1
- {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/pyproject.toml +2 -1
- {akernel-0.3.0 → akernel-0.3.2}/pyproject.toml +1 -1
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/akernel.py +4 -4
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/connect.py +3 -1
- {akernel-0.3.0 → akernel-0.3.2}/.github/workflows/main.yml +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/.pre-commit-config.yaml +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/LICENSE +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/MANIFEST.in +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/README.md +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/binder/environment.yml +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/binder/postBuild +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/examples/concurrency.ipynb +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/examples/reactivity.ipynb +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/LICENSE +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/README.md +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/__init__.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/akernel_task.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/main.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/py.typed +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/share/jupyter/kernels/akernel/kernel.json +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/IPython/__init__.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/IPython/core/__init__.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/IPython/core/getipython.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/IPython/core/interactiveshell.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/__init__.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/cache.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/code.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/comm/__init__.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/comm/comm.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/comm/manager.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/display/__init__.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/display/display.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/execution.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/kernel.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/kernelspec.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/message.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/src/akernel/traceback.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/tests/conftest.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/tests/test_async_code.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/tests/test_execution.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/tests/test_kernel.py +0 -0
- {akernel-0.3.0 → akernel-0.3.2}/tests/test_react_code.py +0 -0
|
@@ -4,13 +4,14 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "fps_akernel_task"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "An FPS plugin for the kernel task API"
|
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
|
10
10
|
requires-python = ">=3.9"
|
|
11
11
|
dependencies = [
|
|
12
12
|
"jupyverse-api >=0.10.0,<0.11.0",
|
|
13
13
|
"anyio",
|
|
14
|
+
"akernel",
|
|
14
15
|
]
|
|
15
16
|
|
|
16
17
|
[[project.authors]]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
|
-
from typing import cast
|
|
4
|
+
from typing import Optional, cast
|
|
5
5
|
|
|
6
6
|
import typer
|
|
7
7
|
from anyio import create_memory_object_stream, create_task_group, run, sleep_forever
|
|
@@ -18,7 +18,7 @@ cli = typer.Typer()
|
|
|
18
18
|
@cli.command()
|
|
19
19
|
def install(
|
|
20
20
|
mode: str = typer.Argument("", help="Mode of the kernel to install."),
|
|
21
|
-
cache_dir: str
|
|
21
|
+
cache_dir: Optional[str] = typer.Option(
|
|
22
22
|
None, "-c", help="Path to the cache directory, if mode is 'cache'."
|
|
23
23
|
),
|
|
24
24
|
):
|
|
@@ -35,10 +35,10 @@ def install(
|
|
|
35
35
|
@cli.command()
|
|
36
36
|
def launch(
|
|
37
37
|
mode: str = typer.Argument("", help="Mode of the kernel to launch."),
|
|
38
|
-
cache_dir: str
|
|
38
|
+
cache_dir: Optional[str] = typer.Option(
|
|
39
39
|
None, "-c", help="Path to the cache directory, if mode is 'cache'."
|
|
40
40
|
),
|
|
41
|
-
connection_file: str
|
|
41
|
+
connection_file: str = typer.Option(..., "-f", help="Path to the connection file."),
|
|
42
42
|
):
|
|
43
43
|
akernel = AKernel(mode, cache_dir, connection_file)
|
|
44
44
|
run(akernel.start)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from typing import Union
|
|
4
|
+
|
|
3
5
|
import zmq
|
|
4
6
|
from zmq import Context
|
|
5
7
|
from zmq_anyio import Socket
|
|
@@ -7,7 +9,7 @@ from zmq_anyio import Socket
|
|
|
7
9
|
|
|
8
10
|
context = Context()
|
|
9
11
|
|
|
10
|
-
cfg_t = dict[str, str
|
|
12
|
+
cfg_t = dict[str, Union[str, int]]
|
|
11
13
|
|
|
12
14
|
channel_socket_types = {
|
|
13
15
|
"shell": zmq.ROUTER,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|