akernel 0.3.1__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.1 → akernel-0.3.2}/PKG-INFO +1 -1
- {akernel-0.3.1 → akernel-0.3.2}/plugins/akernel_task/pyproject.toml +1 -1
- {akernel-0.3.1 → akernel-0.3.2}/pyproject.toml +1 -1
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/akernel.py +4 -4
- {akernel-0.3.1 → akernel-0.3.2}/.github/workflows/main.yml +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/.pre-commit-config.yaml +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/LICENSE +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/MANIFEST.in +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/README.md +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/binder/environment.yml +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/binder/postBuild +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/examples/concurrency.ipynb +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/examples/reactivity.ipynb +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/plugins/akernel_task/LICENSE +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/plugins/akernel_task/README.md +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/__init__.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/akernel_task.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/main.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/plugins/akernel_task/fps_akernel_task/py.typed +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/share/jupyter/kernels/akernel/kernel.json +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/IPython/__init__.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/IPython/core/__init__.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/IPython/core/getipython.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/IPython/core/interactiveshell.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/__init__.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/cache.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/code.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/comm/__init__.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/comm/comm.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/comm/manager.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/connect.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/display/__init__.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/display/display.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/execution.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/kernel.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/kernelspec.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/message.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/src/akernel/traceback.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/tests/conftest.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/tests/test_async_code.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/tests/test_execution.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/tests/test_kernel.py +0 -0
- {akernel-0.3.1 → akernel-0.3.2}/tests/test_react_code.py +0 -0
|
@@ -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)
|
|
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
|
|
File without changes
|