Skip to main content

more-compute

PyPI version Python 3.10+ License: MIT

An interactive Python notebook environment, similar to Marimo and Google Colab, that runs locally.

https://github.com/user-attachments/assets/8c7ec716-dade-4de2-ad37-71d328129c97

Installation

Prerequisites:

  • Node.js v20 (see .nvmrc)
  • Python 3.12 (see .python-version)

Using uv (Recommended)

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
uv tool install more-compute

# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
uv tool install more-compute

Using pip

pip install more-compute

# Add to PATH if needed:
# macOS/Linux: echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
# Windows: See troubleshooting below

Usage

more-compute notebook.py     # Open existing notebook
more-compute new             # Create new notebook
more-compute --debug         # Show logs

Opens automatically at http://localhost:2718

Converting Between Formats

MoreCompute uses .py notebooks with # %% cell markers, but you can convert to/from .ipynb:

From .ipynb to .py:

# Auto-detect output name (notebook.ipynb -> notebook.py)
more-compute convert notebook.ipynb

# Or specify output
more-compute convert notebook.ipynb -o my_notebook.py

# Then open in MoreCompute
more-compute my_notebook.py

The converter automatically extracts dependencies from !pip install commands and adds UV inline script metadata.

From .py to .ipynb:

# Auto-detect output name (notebook.py -> notebook.ipynb)
more-compute convert notebook.py

# Or specify output
more-compute convert notebook.py -o colab_notebook.ipynb

This makes your notebooks compatible with Google Colab, Jupyter, and other tools that require .ipynb format.

Troubleshooting

will add things here as things progress...

Development

Option 1: Devcontainer

Works on Mac, Windows, and Linux with identical environments.

Prerequisites: Docker Desktop and VS Code/Cursor with the Dev Containers extension.

  1. Clone the repo and open in VS Code/Cursor
  2. Press Cmd/Ctrl + Shift + P → "Dev Containers: Reopen in Container"
  3. Wait for the container to build (first time takes a few minutes)
  4. Run more-compute new in the terminal

Option 2: Docker (No IDE Required)

# Build the image
docker build -t morecompute .

# Run with your notebooks mounted
docker run -p 3141:3141 -p 2718:2718 -v $(pwd):/notebooks morecompute

Option 3: Native Setup

Prerequisites:

  • Python 3.12 (install via pyenv: pyenv install 3.12)
  • Node.js 20 (install via nvm: nvm install 20)
# Clone and enter directory
git clone https://github.com/DannyMang/MORECOMPUTE.git
cd MORECOMPUTE

# Use pinned versions
pyenv local 3.12  # or: pyenv install 3.12 && pyenv local 3.12
nvm use           # reads .nvmrc automatically

# Create virtual environment and install
uv venv && source .venv/bin/activate  # Windows: .venv\Scripts\activate
uv pip install -e .

# Install frontend dependencies
cd frontend && npm ci && cd ..  # npm ci uses package-lock.json for exact versions

# Run
more-compute notebook.py

Environment Variables

Variable Default Description
MORECOMPUTE_PORT 3141 Backend API port
MORECOMPUTE_FRONTEND_PORT 2718 Frontend UI port

License

MIT - see LICENSE

Metadata

Release files for more-compute 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for more-compute 0.5.0
File Size Uploaded
more_compute-0.5.0.tar.gz 515.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for more-compute 0.5.0
File Interpreter ABI Platform
more_compute-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / more_compute-0.5.0.tar.gz

Download URL more_compute-0.5.0.tar.gz
Size 515.2 kB
Tags Source
SHA-256 checksum
How to use checksums
82165853cf7984189dd73d6e940a771af8ff923267cb1550b46fa0d94ea9803e
BLAKE2b-256 checksum
How to use checksums
821906f8d675731cb711bdca2b72356e2880dcd26e0dae27a89356ed6460043f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / more_compute-0.5.0-py3-none-any.whl

Download URL more_compute-0.5.0-py3-none-any.whl
Size 549.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1da6903ea6e131bfc106ca93a5937b693d3809f047018a77b4b099332dbe309
BLAKE2b-256 checksum
How to use checksums
46c5ad8b742ec004c5ff23e2f598bc5c0896287abd1a1a09e51bb0e18d080c8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page