more-compute 0.2.4__tar.gz → 0.2.6__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 (109) hide show
  1. {more_compute-0.2.4/more_compute.egg-info → more_compute-0.2.6}/PKG-INFO +2 -3
  2. {more_compute-0.2.4 → more_compute-0.2.6}/README.md +1 -2
  3. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/popups/SettingsPopup.tsx +3 -0
  4. more_compute-0.2.6/frontend/styling_README.md +10 -0
  5. {more_compute-0.2.4 → more_compute-0.2.6}/kernel_run.py +25 -7
  6. {more_compute-0.2.4 → more_compute-0.2.6/more_compute.egg-info}/PKG-INFO +2 -3
  7. more_compute-0.2.6/morecompute/__version__.py +1 -0
  8. more_compute-0.2.4/frontend/styling_README.md +0 -18
  9. more_compute-0.2.4/morecompute/__version__.py +0 -1
  10. {more_compute-0.2.4 → more_compute-0.2.6}/LICENSE +0 -0
  11. {more_compute-0.2.4 → more_compute-0.2.6}/MANIFEST.in +0 -0
  12. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/.DS_Store +0 -0
  13. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/.gitignore +0 -0
  14. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/README.md +0 -0
  15. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/__init__.py +0 -0
  16. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/app/favicon.ico +0 -0
  17. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/app/globals.css +0 -0
  18. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/app/layout.tsx +0 -0
  19. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/app/page.tsx +0 -0
  20. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/Cell.tsx +0 -0
  21. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/Notebook.tsx +0 -0
  22. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/cell/AddCellButton.tsx +0 -0
  23. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/cell/CellButton.tsx +0 -0
  24. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/cell/MonacoCell.tsx +0 -0
  25. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/layout/ConnectionBanner.tsx +0 -0
  26. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/layout/Sidebar.tsx +0 -0
  27. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/modals/ConfirmModal.tsx +0 -0
  28. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/modals/ErrorModal.tsx +0 -0
  29. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/modals/SuccessModal.tsx +0 -0
  30. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/output/CellOutput.tsx +0 -0
  31. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/output/ErrorDisplay.tsx +0 -0
  32. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/output/MarkdownRenderer.tsx +0 -0
  33. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/popups/ComputePopup.tsx +0 -0
  34. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/popups/FilterPopup.tsx +0 -0
  35. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/popups/FolderPopup.tsx +0 -0
  36. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/popups/MetricsPopup.tsx +0 -0
  37. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/components/popups/PackagesPopup.tsx +0 -0
  38. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/contexts/PodWebSocketContext.tsx +0 -0
  39. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/eslint.config.mjs +0 -0
  40. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/lib/api.ts +0 -0
  41. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/lib/monaco-themes.ts +0 -0
  42. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/lib/settings.ts +0 -0
  43. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/lib/themes.json +0 -0
  44. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/lib/websocket-native.ts +0 -0
  45. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/lib/websocket.ts +0 -0
  46. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/next-env.d.ts +0 -0
  47. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/next.config.mjs +0 -0
  48. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/next.config.ts +0 -0
  49. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/package-lock.json +0 -0
  50. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/package.json +0 -0
  51. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/postcss.config.mjs +0 -0
  52. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/add.svg +0 -0
  53. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/check.svg +0 -0
  54. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/copy.svg +0 -0
  55. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/folder.svg +0 -0
  56. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/metric.svg +0 -0
  57. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/packages.svg +0 -0
  58. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/play.svg +0 -0
  59. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/python.svg +0 -0
  60. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/setting.svg +0 -0
  61. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/stop.svg +0 -0
  62. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/trash.svg +0 -0
  63. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/up-down.svg +0 -0
  64. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/assets/icons/x.svg +0 -0
  65. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/file.svg +0 -0
  66. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/fonts/Fira.ttf +0 -0
  67. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/fonts/Tiempos.woff2 +0 -0
  68. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/fonts/VeraMono.ttf +0 -0
  69. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/globe.svg +0 -0
  70. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/next.svg +0 -0
  71. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/vercel.svg +0 -0
  72. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/public/window.svg +0 -0
  73. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/tailwind.config.ts +0 -0
  74. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/tsconfig.json +0 -0
  75. {more_compute-0.2.4 → more_compute-0.2.6}/frontend/types/notebook.ts +0 -0
  76. {more_compute-0.2.4 → more_compute-0.2.6}/more_compute.egg-info/SOURCES.txt +0 -0
  77. {more_compute-0.2.4 → more_compute-0.2.6}/more_compute.egg-info/dependency_links.txt +0 -0
  78. {more_compute-0.2.4 → more_compute-0.2.6}/more_compute.egg-info/entry_points.txt +0 -0
  79. {more_compute-0.2.4 → more_compute-0.2.6}/more_compute.egg-info/requires.txt +0 -0
  80. {more_compute-0.2.4 → more_compute-0.2.6}/more_compute.egg-info/top_level.txt +0 -0
  81. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/__init__.py +0 -0
  82. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/cli.py +0 -0
  83. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/execution/__init__.py +0 -0
  84. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/execution/__main__.py +0 -0
  85. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/execution/executor.py +0 -0
  86. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/execution/worker.py +0 -0
  87. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/models/__init__.py +0 -0
  88. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/models/api_models.py +0 -0
  89. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/notebook.py +0 -0
  90. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/process_worker.py +0 -0
  91. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/server.py +0 -0
  92. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/services/data_manager.py +0 -0
  93. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/services/lsp_service.py +0 -0
  94. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/services/pod_manager.py +0 -0
  95. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/services/pod_monitor.py +0 -0
  96. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/services/prime_intellect.py +0 -0
  97. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/static/styles.css +0 -0
  98. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/__init__.py +0 -0
  99. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/cache_util.py +0 -0
  100. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/config_util.py +0 -0
  101. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/error_utils.py +0 -0
  102. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/notebook_util.py +0 -0
  103. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/python_environment_util.py +0 -0
  104. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/special_commands.py +0 -0
  105. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/system_environment_util.py +0 -0
  106. {more_compute-0.2.4 → more_compute-0.2.6}/morecompute/utils/zmq_util.py +0 -0
  107. {more_compute-0.2.4 → more_compute-0.2.6}/pyproject.toml +0 -0
  108. {more_compute-0.2.4 → more_compute-0.2.6}/setup.cfg +0 -0
  109. {more_compute-0.2.4 → more_compute-0.2.6}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: more-compute
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: An interactive notebook environment for local and GPU computing
5
5
  Home-page: https://github.com/DannyMang/MORECOMPUTE
6
6
  Author: MoreCompute Team
@@ -44,8 +44,7 @@ Dynamic: requires-python
44
44
  [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
45
45
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
46
46
 
47
- Interactive notebook environment for local Python development. Works with standard `.ipynb` files,
48
- similar to Jupyter Lab but more awesome.
47
+ An interactive notebook environment, similar to Marimo and Google Colab, that runs locally. It works with standard `.ipynb` files, similar to Jupyter Lab but more awesome.
49
48
 
50
49
  ## Installation
51
50
 
@@ -4,8 +4,7 @@
4
4
  [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
6
 
7
- Interactive notebook environment for local Python development. Works with standard `.ipynb` files,
8
- similar to Jupyter Lab but more awesome.
7
+ An interactive notebook environment, similar to Marimo and Google Colab, that runs locally. It works with standard `.ipynb` files, similar to Jupyter Lab but more awesome.
9
8
 
10
9
  ## Installation
11
10
 
@@ -46,6 +46,9 @@ const SettingsPopup: React.FC<{ onSettingsChange?: (settings: NotebookSettings)
46
46
 
47
47
  return (
48
48
  <div className="settings-container">
49
+ <div style={{ fontSize: '12px', marginBottom: '8px', color: 'var(--mc-text-secondary, #6b7280)' }}>
50
+ See all themes at <a href="https://github.com/DannyMang/more-compute/blob/main/frontend/styling_README.md" target="_blank" rel="noopener noreferrer" style={{ color: 'var(--mc-link-color, #3b82f6)', textDecoration: 'underline' }}>styling_README.md</a>
51
+ </div>
49
52
  <textarea
50
53
  className="settings-editor"
51
54
  value={settingsJson}
@@ -0,0 +1,10 @@
1
+ # For settings.json
2
+
3
+ Available themes: `light`, `dark`, `tokyo-night`, `tokyo-night-storm`, `tokyo-night-light`, `night-owl`, `night-owl-light`, `synthwave-84`, `one-dark-pro`
4
+
5
+ Example:
6
+ ```json
7
+ {
8
+ "theme": "dark"
9
+ }
10
+ ```
@@ -305,13 +305,19 @@ class NotebookLauncher:
305
305
  print("\n Edit notebook in your browser!\n")
306
306
  print(" ➜ URL: http://localhost:3000\n")
307
307
 
308
+ # Track Ctrl+C presses
309
+ interrupt_count = [0] # Use list to allow modification in nested function
310
+
308
311
  # Set up signal handlers
309
312
  def signal_handler(signum, frame):
310
- # Shutdown immediately on Ctrl+C
311
- print("\nREMINDER: Any running GPU pods will continue to incur costs until you terminate them in the Compute popup.")
312
- print("\n Thanks for using MoreCompute!\n")
313
- self.cleanup()
314
- sys.exit(0)
313
+ interrupt_count[0] += 1
314
+ if interrupt_count[0] == 1:
315
+ print("\n\nREMINDER: Any running GPU pods will continue to incur costs until you terminate them in the Compute popup.")
316
+ print("[CTRL-C AGAIN TO EXIT]")
317
+ else:
318
+ print("\n Thanks for using MoreCompute!\n")
319
+ self.cleanup()
320
+ sys.exit(0)
315
321
 
316
322
  # Windows signal handling is different
317
323
  if not self.is_windows:
@@ -341,6 +347,7 @@ class NotebookLauncher:
341
347
  time.sleep(1)
342
348
 
343
349
  except KeyboardInterrupt:
350
+ # This shouldn't be reached due to signal handler, but keep as fallback
344
351
  print("\n\n Thanks for using MoreCompute!\n")
345
352
  self.cleanup()
346
353
 
@@ -371,11 +378,22 @@ def build_parser() -> argparse.ArgumentParser:
371
378
  def ensure_notebook_exists(notebook_path: Path):
372
379
  if notebook_path.exists():
373
380
  if notebook_path.suffix != '.ipynb':
374
- raise ValueError("Notebook path must be a .ipynb file")
381
+ raise ValueError(
382
+ f"Error: '{notebook_path}' is not a notebook file.\n"
383
+ f"Notebook files must have a .ipynb extension.\n"
384
+ f"Example: more-compute {notebook_path}.ipynb"
385
+ )
375
386
  return
376
387
 
377
388
  if notebook_path.suffix != '.ipynb':
378
- raise ValueError("Notebook path must end with .ipynb")
389
+ raise ValueError(
390
+ f"Error: '{notebook_path}' does not have the .ipynb extension.\n"
391
+ f"Notebook files must end with .ipynb\n\n"
392
+ f"Did you mean?\n"
393
+ f" more-compute {notebook_path}.ipynb\n\n"
394
+ f"Or to create a new notebook with timestamp:\n"
395
+ f" more-compute new"
396
+ )
379
397
 
380
398
  notebook_path.parent.mkdir(parents=True, exist_ok=True)
381
399
  notebook = Notebook()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: more-compute
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: An interactive notebook environment for local and GPU computing
5
5
  Home-page: https://github.com/DannyMang/MORECOMPUTE
6
6
  Author: MoreCompute Team
@@ -44,8 +44,7 @@ Dynamic: requires-python
44
44
  [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
45
45
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
46
46
 
47
- Interactive notebook environment for local Python development. Works with standard `.ipynb` files,
48
- similar to Jupyter Lab but more awesome.
47
+ An interactive notebook environment, similar to Marimo and Google Colab, that runs locally. It works with standard `.ipynb` files, similar to Jupyter Lab but more awesome.
49
48
 
50
49
  ## Installation
51
50
 
@@ -0,0 +1 @@
1
+ __version__ = "0.2.6"
@@ -1,18 +0,0 @@
1
- (for settings.json)
2
-
3
- Possible Themes:
4
-
5
- light
6
- dark
7
- tokyo-night
8
- tokyo-night-storm
9
- tokyo-night-light
10
- night-owl
11
- night-owl-light
12
- synthwave-84
13
- one-dark-pro
14
-
15
- Example settings.json:
16
- {
17
- "theme": "dark"
18
- }
@@ -1 +0,0 @@
1
- __version__ = "0.2.4"
File without changes
File without changes
File without changes
File without changes