kernel-checkpoint 0.1.3__tar.gz → 0.1.5__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.
Files changed (50) hide show
  1. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/PKG-INFO +1 -1
  2. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/jupyter-notebook-image/Dockerfile +1 -1
  3. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/__init__.py +1 -0
  4. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/_version.py +1 -1
  5. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/package.json +1 -1
  6. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/src/checkpoint-panel.tsx +3 -3
  7. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/src/index.ts +3 -2
  8. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/src/types.ts +1 -1
  9. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/.copier-answers.yml +0 -0
  10. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/.gitignore +0 -0
  11. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/.prettierignore +0 -0
  12. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/.yarnrc.yml +0 -0
  13. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/4 +0 -0
  14. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/=4 +0 -0
  15. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/CHANGELOG.md +0 -0
  16. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/LICENSE +0 -0
  17. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/README.md +0 -0
  18. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/RELEASE.md +0 -0
  19. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/babel.config.js +0 -0
  20. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/cursor_jupyterlab_extension_for_checkpo.md +0 -0
  21. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/install.json +0 -0
  22. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/jest.config.js +0 -0
  23. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/jupyter-config/jupyter_server_config.d/kernel_checkpoint.json +0 -0
  24. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/Untitled.ipynb +0 -0
  25. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/handlers.py +0 -0
  26. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/build_log.json +0 -0
  27. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/package.json +0 -0
  28. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/static/lib_index_js.bcb2d92b281a36765a67.js +0 -0
  29. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/static/lib_index_js.bcb2d92b281a36765a67.js.map +0 -0
  30. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/static/remoteEntry.ff55aa1cac6b05f762e9.js +0 -0
  31. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/static/remoteEntry.ff55aa1cac6b05f762e9.js.map +0 -0
  32. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/static/style.js +0 -0
  33. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/static/style_index_js.c3e72438ed03e9dee0fc.js +0 -0
  34. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/kernel_checkpoint/labextension/static/style_index_js.c3e72438ed03e9dee0fc.js.map +0 -0
  35. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/pyproject.toml +0 -0
  36. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/setup.py +0 -0
  37. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/src/__tests__/kernel_checkpoint.spec.ts +0 -0
  38. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/src/api.ts +0 -0
  39. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/style/base.css +0 -0
  40. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/style/index.css +0 -0
  41. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/style/index.js +0 -0
  42. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/tsconfig.json +0 -0
  43. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/tsconfig.test.json +0 -0
  44. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/ui-tests/README.md +0 -0
  45. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/ui-tests/jupyter_server_test_config.py +0 -0
  46. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/ui-tests/package.json +0 -0
  47. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/ui-tests/playwright.config.js +0 -0
  48. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/ui-tests/tests/kernel_checkpoint.spec.ts +0 -0
  49. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/ui-tests/yarn.lock +0 -0
  50. {kernel_checkpoint-0.1.3 → kernel_checkpoint-0.1.5}/yarn.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kernel_checkpoint
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: An extension for saving and restoring kernel pod state with jupyter enterprise gateway
5
5
  Project-URL: Homepage, https://github.com/lehuannhatrang/kernel-checkpoint-extension.git
6
6
  Project-URL: Bug Tracker, https://github.com/lehuannhatrang/kernel-checkpoint-extension.git/issues
@@ -4,6 +4,6 @@ USER root
4
4
 
5
5
  RUN pip install --upgrade pip
6
6
 
7
- RUN pip install --no-cache-dir kernel-checkpoint==0.1.2
7
+ RUN pip install --no-cache-dir kernel-checkpoint==0.1.5
8
8
 
9
9
  USER jovyan
@@ -85,6 +85,7 @@ def _patch_kernel_handler_for_env_passthrough(server_app):
85
85
  server_app.config.GatewayClient.client_envs = [
86
86
  "KERNEL_CHECKPOINT_NAME",
87
87
  "KERNEL_CHECKPOINT_FILE_PATH",
88
+ "KERNEL_CHECKPOINT_CONTAINER_NAME",
88
89
  ]
89
90
  except Exception:
90
91
  pass
@@ -1,4 +1,4 @@
1
1
  # This file is auto-generated by Hatchling. As such, do not:
2
2
  # - modify
3
3
  # - track in version control e.g. be sure to add to .gitignore
4
- __version__ = VERSION = '0.1.3'
4
+ __version__ = VERSION = '0.1.5'
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kernel-checkpoint",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "An extension for saving and restoring kernel pod state with jupyter enterprise gateway",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -144,11 +144,11 @@ export function CheckpointPanel(props: ICheckpointPanelProps): JSX.Element {
144
144
  setFlash(null);
145
145
  try {
146
146
  const detail = await CheckpointAPI.getCheckpoint(namespace, checkpointName);
147
- const filePath = detail.checkpointFiles?.[0]?.filePath ?? '';
148
- if (!filePath) {
147
+ const checkpointFile = detail.checkpointFiles?.[0];
148
+ if (!checkpointFile?.storagePath) {
149
149
  throw new Error('No checkpoint file path available for this checkpoint');
150
150
  }
151
- await onRestore(checkpointName, filePath);
151
+ await onRestore(checkpointName, checkpointFile.storagePath, checkpointFile.containerName);
152
152
  setFlash({
153
153
  type: 'success',
154
154
  text: `Kernel restored from "${checkpointName}". The kernel is restarting.`
@@ -92,7 +92,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
92
92
  const kernelId = kernel.id;
93
93
  const kernelSpecName = kernel.name || 'python_kubernetes';
94
94
 
95
- const onRestore = async (checkpointName: string, checkpointFilePath: string): Promise<void> => {
95
+ const onRestore = async (checkpointName: string, checkpointFilePath: string, containerName: string): Promise<void> => {
96
96
  const settings = ServerConnection.makeSettings();
97
97
  const kernelUrl = URLExt.join(settings.baseUrl, 'api', 'kernels');
98
98
 
@@ -105,7 +105,8 @@ const plugin: JupyterFrontEndPlugin<void> = {
105
105
  name: kernelSpecName,
106
106
  env: {
107
107
  KERNEL_CHECKPOINT_NAME: checkpointName,
108
- KERNEL_CHECKPOINT_FILE_PATH: checkpointFilePath
108
+ KERNEL_CHECKPOINT_FILE_PATH: checkpointFilePath,
109
+ KERNEL_CHECKPOINT_CONTAINER_NAME: containerName
109
110
  }
110
111
  })
111
112
  },
@@ -59,5 +59,5 @@ export interface ICheckpointPanelProps {
59
59
  namespace: string;
60
60
  kernelId: string;
61
61
  kernelSpecName: string;
62
- onRestore: (checkpointName: string, checkpointFilePath: string) => Promise<void>;
62
+ onRestore: (checkpointName: string, checkpointFilePath: string, containerName: string) => Promise<void>;
63
63
  }
File without changes
File without changes