Metadata-Version: 2.4
Name: more-compute
Version: 0.4.2
Summary: An interactive notebook environment for local and GPU computing
Home-page: https://github.com/DannyMang/MORECOMPUTE
Author: MoreCompute Team
Author-email: Daniel Ung <daniel.haidang.ung@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/DannyMang/MORECOMPUTE
Project-URL: Repository, https://github.com/DannyMang/MORECOMPUTE
Project-URL: Issues, https://github.com/DannyMang/MORECOMPUTE/issues
Keywords: jupyter,notebook,gpu,computing,interactive
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.104.0
Requires-Dist: uvicorn[standard]>=0.24.0
Requires-Dist: python-multipart>=0.0.5
Requires-Dist: nbformat>=5.0.0
Requires-Dist: click>=8.0.0
Requires-Dist: pyzmq>=25.0.0
Requires-Dist: psutil>=5.9.0
Requires-Dist: httpx>=0.24.0
Requires-Dist: cachetools>=5.3.0
Requires-Dist: matplotlib>=3.5.0
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# more-compute

[![PyPI version](https://badge.fury.io/py/more-compute.svg)](https://pypi.org/project/more-compute/)
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

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](https://nodejs.org/) >= 20.10.0 required for web interface
- Python >= 3.10 (uv installs this automatically, pip users need to install manually)

### Using uv (Recommended)

```bash
# 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

```bash
pip install more-compute

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

## Usage

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

Opens automatically at http://localhost:3141

### Converting Between Formats

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

**From .ipynb to .py:**
```bash
# 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:**
```bash
# 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

```bash
git clone https://github.com/DannyMang/MORECOMPUTE.git
cd MORECOMPUTE
uv venv && source .venv/bin/activate
uv pip install -e .
cd frontend && npm install && cd ..
more-compute notebook.py
```

## License

MIT - see [LICENSE](LICENSE)
