more-compute 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.
- {more_compute-0.3.1/more_compute.egg-info → more_compute-0.3.2}/PKG-INFO +1 -1
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/app/globals.css +1 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/cell/MonacoCell.tsx +31 -31
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/popups/PackagesPopup.tsx +19 -8
- {more_compute-0.3.1 → more_compute-0.3.2/more_compute.egg-info}/PKG-INFO +1 -1
- more_compute-0.3.2/morecompute/__version__.py +1 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/execution/worker.py +8 -1
- more_compute-0.3.1/morecompute/__version__.py +0 -1
- {more_compute-0.3.1 → more_compute-0.3.2}/LICENSE +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/MANIFEST.in +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/README.md +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/.DS_Store +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/.gitignore +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/README.md +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/__init__.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/app/favicon.ico +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/app/layout.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/app/page.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/Notebook.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/cell/AddCellButton.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/cell/CellButton.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/layout/ConnectionBanner.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/layout/Sidebar.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/modals/ConfirmModal.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/modals/ErrorModal.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/modals/SuccessModal.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/output/CellOutput.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/output/ErrorDisplay.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/output/MarkdownRenderer.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/popups/ComputePopup.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/popups/FilterPopup.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/popups/FolderPopup.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/popups/MetricsPopup.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/components/popups/SettingsPopup.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/contexts/PodWebSocketContext.tsx +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/eslint.config.mjs +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/lib/api.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/lib/monaco-themes.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/lib/settings.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/lib/themes.json +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/lib/websocket-native.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/lib/websocket.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/next-env.d.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/next.config.mjs +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/next.config.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/package-lock.json +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/package.json +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/postcss.config.mjs +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/add.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/check.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/copy.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/folder.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/metric.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/packages.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/play.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/python.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/setting.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/stop.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/trash.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/up-down.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/assets/icons/x.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/file.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/fonts/Fira.ttf +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/fonts/Tiempos.woff2 +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/fonts/VeraMono.ttf +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/globe.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/next.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/vercel.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/public/window.svg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/styling_README.md +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/tailwind.config.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/tsconfig.json +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/frontend/types/notebook.ts +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/kernel_run.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/more_compute.egg-info/SOURCES.txt +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/more_compute.egg-info/dependency_links.txt +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/more_compute.egg-info/entry_points.txt +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/more_compute.egg-info/requires.txt +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/more_compute.egg-info/top_level.txt +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/__init__.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/cli.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/execution/__init__.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/execution/__main__.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/execution/executor.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/models/__init__.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/models/api_models.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/notebook.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/process_worker.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/server.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/services/data_manager.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/services/lsp_service.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/services/pod_manager.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/services/pod_monitor.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/services/prime_intellect.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/static/styles.css +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/__init__.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/cache_util.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/cell_magics.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/config_util.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/error_utils.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/line_magics.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/notebook_util.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/python_environment_util.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/shell_utils.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/special_commands.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/system_environment_util.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/morecompute/utils/zmq_util.py +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/pyproject.toml +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/setup.cfg +0 -0
- {more_compute-0.3.1 → more_compute-0.3.2}/setup.py +0 -0
|
@@ -580,9 +580,9 @@ export const MonacoCell: React.FC<CellProps> = ({
|
|
|
580
580
|
data-cell-index={index}
|
|
581
581
|
>
|
|
582
582
|
{/* Hover Controls */}
|
|
583
|
-
|
|
584
|
-
<div className="cell-
|
|
585
|
-
|
|
583
|
+
<div className="cell-hover-controls">
|
|
584
|
+
<div className="cell-actions-right">
|
|
585
|
+
{!isMarkdownWithContent && (
|
|
586
586
|
<CellButton
|
|
587
587
|
icon={<PlayIcon className="w-6 h-6" />}
|
|
588
588
|
onClick={(e) => {
|
|
@@ -592,35 +592,35 @@ export const MonacoCell: React.FC<CellProps> = ({
|
|
|
592
592
|
title={isExecuting ? "Stop execution" : "Run cell"}
|
|
593
593
|
isLoading={isExecuting}
|
|
594
594
|
/>
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
595
|
+
)}
|
|
596
|
+
<CellButton
|
|
597
|
+
icon={<ChevronUpIcon className="w-6 h-6" />}
|
|
598
|
+
onClick={(e) => {
|
|
599
|
+
e.stopPropagation();
|
|
600
|
+
onMoveUp(indexRef.current);
|
|
601
|
+
}}
|
|
602
|
+
title="Move cell up"
|
|
603
|
+
disabled={index === 0}
|
|
604
|
+
/>
|
|
605
|
+
<CellButton
|
|
606
|
+
icon={<ChevronDownIcon className="w-6 h-6" />}
|
|
607
|
+
onClick={(e) => {
|
|
608
|
+
e.stopPropagation();
|
|
609
|
+
onMoveDown(indexRef.current);
|
|
610
|
+
}}
|
|
611
|
+
title="Move cell down"
|
|
612
|
+
disabled={index === totalCells - 1}
|
|
613
|
+
/>
|
|
614
|
+
<CellButton
|
|
615
|
+
icon={<LinkBreak2Icon className="w-5 h-5" />}
|
|
616
|
+
onClick={(e) => {
|
|
617
|
+
e.stopPropagation();
|
|
618
|
+
onDelete(indexRef.current);
|
|
619
|
+
}}
|
|
620
|
+
title="Delete cell"
|
|
621
|
+
/>
|
|
622
622
|
</div>
|
|
623
|
-
|
|
623
|
+
</div>
|
|
624
624
|
|
|
625
625
|
{/* Cell Content */}
|
|
626
626
|
<div
|
|
@@ -70,9 +70,6 @@ const PackagesPopup: React.FC<PackagesPopupProps> = ({ onClose }) => {
|
|
|
70
70
|
return packages.filter(p => p.name.toLowerCase().includes(q));
|
|
71
71
|
}, [packages, query]);
|
|
72
72
|
|
|
73
|
-
if (loading) return <div className="packages-list">Loading...</div>;
|
|
74
|
-
if (error) return <div className="packages-list">{error}</div>;
|
|
75
|
-
|
|
76
73
|
return (
|
|
77
74
|
<div className="packages-container">
|
|
78
75
|
<div className="packages-toolbar">
|
|
@@ -98,12 +95,26 @@ const PackagesPopup: React.FC<PackagesPopupProps> = ({ onClose }) => {
|
|
|
98
95
|
<div className="col-version">Version</div>
|
|
99
96
|
</div>
|
|
100
97
|
<div className="packages-list">
|
|
101
|
-
{
|
|
102
|
-
<div
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
{loading ? (
|
|
99
|
+
<div style={{ padding: '20px', textAlign: 'center', color: 'var(--mc-text-color)' }}>
|
|
100
|
+
Loading packages...
|
|
101
|
+
</div>
|
|
102
|
+
) : error ? (
|
|
103
|
+
<div style={{ padding: '20px', textAlign: 'center', color: '#dc2626' }}>
|
|
104
|
+
{error}
|
|
105
|
+
</div>
|
|
106
|
+
) : filtered.length === 0 ? (
|
|
107
|
+
<div style={{ padding: '20px', textAlign: 'center', color: 'var(--mc-text-color)', opacity: 0.6 }}>
|
|
108
|
+
{query ? 'No packages found' : 'No packages installed'}
|
|
105
109
|
</div>
|
|
106
|
-
)
|
|
110
|
+
) : (
|
|
111
|
+
filtered.map((pkg) => (
|
|
112
|
+
<div key={`${pkg.name}@${pkg.version}`} className="package-row">
|
|
113
|
+
<div className="col-name package-name">{pkg.name}</div>
|
|
114
|
+
<div className="col-version package-version">{pkg.version}</div>
|
|
115
|
+
</div>
|
|
116
|
+
))
|
|
117
|
+
)}
|
|
107
118
|
</div>
|
|
108
119
|
</div>
|
|
109
120
|
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.2"
|
|
@@ -332,7 +332,14 @@ def worker_main():
|
|
|
332
332
|
if lines:
|
|
333
333
|
last = lines[-1].strip()
|
|
334
334
|
# Skip comments and empty lines
|
|
335
|
-
if last
|
|
335
|
+
if not last or last.startswith('#'):
|
|
336
|
+
last = None
|
|
337
|
+
# Skip orphaned closing brackets from multi-line expressions
|
|
338
|
+
# e.g., the ')' from: model = func(\n arg1,\n arg2\n)
|
|
339
|
+
elif last.lstrip().startswith(')') or last.lstrip().startswith('}') or last.lstrip().startswith(']'):
|
|
340
|
+
last = None
|
|
341
|
+
|
|
342
|
+
if last:
|
|
336
343
|
# Check if it looks like a statement (assignment, import, etc)
|
|
337
344
|
is_statement = False
|
|
338
345
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.3.1"
|
|
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
|
|
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
|
|
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
|