Skip to main content

An interactive notebook environment for local and GPU computing

Project description

more-compute

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

For references:

https://marimo.io/

https://colab.google/

FOR LOCAL DEVELOPMENT:

pip install -e .

Installation

Recommended: Using uv (fastest, auto-handles PATH)

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install more-compute
uv tool install more-compute

Alternative: Using pip

pip install more-compute
# If "command not found", run: python3 -m kernel_run new

Usage

Create a new notebook

more-compute new

This creates a timestamped notebook like notebook_20241007_153302.ipynb

Or run directly:

python3 kernel_run.py new

Open an existing notebook

# Open a specific notebook
more-compute your_notebook.ipynb

# Or run directly
python3 kernel_run.py your_notebook.ipynb

# If no path provided, opens default notebook
more-compute

Features

  • Interactive notebook interface similar to Google Colab
  • Support for both .py and .ipynb files
  • Real-time cell execution with execution timing
  • Magic commands support:
    • !pip install package_name - Install Python packages
    • !ls - List directory contents
    • !pwd - Print working directory
    • !any_shell_command - Run any shell command
  • Visual execution feedback:
    • ✅ Green check icon for successful execution
    • ❌ Red X icon for failed execution
    • Execution timing displayed for each cell
  • Local development environment - runs on your machine
  • Web-based interface accessible via localhost
  • Cell management:
    • Add/delete cells
    • Drag and drop to reorder
    • Code and Markdown cell types

Usage Examples

Installing and Using Libraries

# Install packages using magic commands (like Colab)
!pip install pandas numpy matplotlib

# Import and use them
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

# Create some data
df = pd.DataFrame({
    'x': np.range(10),
    'y': np.random.randn(10)
})

print(df.head())

Shell Commands

# List files
!ls -la

# Check current directory
!pwd

# Run any shell command
!echo "Hello from the shell!"

Data Analysis Example

# Load data
data = pd.read_csv('your_data.csv')

# Analyze
data.describe()

# Plot
plt.figure(figsize=(10, 6))
plt.plot(data['x'], data['y'])
plt.title('My Analysis')
plt.show()

Development

To install in development mode:

pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

more_compute-0.1.1.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

more_compute-0.1.1-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

Details for the file more_compute-0.1.1.tar.gz.

File metadata

  • Download URL: more_compute-0.1.1.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for more_compute-0.1.1.tar.gz
Algorithm Hash digest
SHA256 41f997833afaa46822f922a36275d02d7d14f13c61893ed0b4b43a4994a2dd39
MD5 9d267e58d0de976e9dccd91d5bb69246
BLAKE2b-256 03a4b6196ba3f845984e28d87d9f4a895aaeeec01435137ae1b16f7e5cafbbab

See more details on using hashes here.

File details

Details for the file more_compute-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: more_compute-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for more_compute-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f71f7de7a4aa45773c3b8fc7051dbfa31e5fcd30050f2cfe0aca0aef4c75894
MD5 75273cedbaf171b0fae8c00abedc46b1
BLAKE2b-256 730bcfb53632db72c7aafdbd9d2eb776830bb6d6b9b777def1f9a92bbb346e17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page