Metadata-Version: 2.4
Name: scg-lab
Version: 5.5.7
Summary: SCG Lab — Multi-language interactive notebook environment by Squid Consultancy Group
Author-email: Squid Consultancy Group <info@squidconsultancy.co.uk>
License: ﻿MIT License
        
        Copyright (c) 2026 Analytics With Harry - Squid Consultancy Group Limited (SCG Ltd)
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/analyticswithharry/scg-lab
Project-URL: Documentation, https://github.com/analyticswithharry/scg-lab#readme
Project-URL: Issues, https://github.com/analyticswithharry/scg-lab/issues
Keywords: notebook,jupyter,interactive,python,javascript,c,c++,ide
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.115.0
Requires-Dist: uvicorn[standard]>=0.32.0
Requires-Dist: websockets>=12.0
Requires-Dist: click>=8.1.0
Requires-Dist: jupyter-client>=8.6.0
Requires-Dist: ipykernel>=6.29.0
Requires-Dist: rich>=13.0.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-multipart>=0.0.9
Requires-Dist: aiofiles>=23.0.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Requires-Dist: httpx>=0.27.0; extra == "dev"
Requires-Dist: ruff>=0.6.0; extra == "dev"
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/analyticswithharry/scg-lab/main/logo.webp" alt="SCG Lab" width="120" />
</p>

<h1 align="center">SCG Lab</h1>

<p align="center">
  A modern, offline-first multi-language notebook IDE — Jupyter Lab feel, single <code>pip install</code>.
  <br/>
  <em>by <strong>Squid Consultancy Group</strong> · <a href="https://github.com/analyticswithharry">@analyticswithharry</a></em>
</p>

---

## What is it?

SCG Lab is a browser-based notebook environment that runs **entirely on your machine**. It bundles a React/Monaco frontend with a FastAPI + Jupyter-kernel backend into one installable Python package.

- **Languages**: Python, JavaScript (Node), C, C++
- **Jupyter-style UI**: tabbed File / Edit / View / Insert / Cell / Run / Kernel / Tabs / Settings / Demo / Help menus, command palette, dark/light theme
- **Mandatory line numbers** in every code cell
- **Built-in demos** for every supported language (one click to load)
- **Environment manager**: create/activate per-project Python envs from the CLI

---

## Install (works on any machine)

```bash
pip install scg-lab
```

## Run

```bash
scg-lab                 # opens http://127.0.0.1:8765
scg-lab --port 9000
```

That's it — no Node, no extra build steps. The frontend ships pre-built inside the wheel.

## Brief Usage

1. `pip install scg-lab` then run `scg-lab`.
2. Pick a language tile from the **Launcher** (or click **Demo** in the menu bar to load a ready-made notebook).
3. Type code in a cell — line numbers are always on.
4. **Shift+Enter** to run, **Ctrl+Enter** to run in place.
5. Use the **Run** menu for *Run All / Run Above / Run Below / Restart & Run All*.

---


## Environment Management

```bash
# List environments
scg-lab env list

# Create a Python environment
scg-lab env create myenv --lang python

# Install packages into an environment
scg-lab env install myenv numpy pandas matplotlib

# Activate an environment
scg-lab env activate myenv
```

---

## Supported Languages

| Language   | Requirements                        |
|------------|-------------------------------------|
| Python     | Built-in (uses ipykernel)           |
| JavaScript | Node.js                             |
| C          | GCC                                 |
| C++        | G++                                 |

---

## Developer Build

```bash
cd frontend
npm install
npm run build    # outputs to ../scg_lab/static/

pip install -e ".[dev]"
scg-lab
```

---

## License

MIT © Squid Consultancy Group
