Metadata-Version: 2.4
Name: mrx-link-magic
Version: 2.5.0.dev5
Summary: IPython magic commands for MRX Link
Author-email: makinarocks <mrx.dev@makinarocks.ai>
License: proprietary
Keywords: Jupyter,IPython,Magic
Platform: Linux
Platform: Mac OS X
Platform: Windows
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Framework :: Jupyter
Classifier: Framework :: IPython
Requires-Python: <3.12,>=3.8
Description-Content-Type: text/markdown
Requires-Dist: astor>=0.8
Requires-Dist: IPython>=7.0
Requires-Dist: jupyter-server<3.0,>=2.4.0
Requires-Dist: mrx-link-core<2.6,>=2.5.0.dev5
Provides-Extra: dev
Requires-Dist: black<=22.12,>=19.3b0; extra == "dev"
Requires-Dist: Cython>=3.0; extra == "dev"
Requires-Dist: flake8>=3.9; extra == "dev"
Requires-Dist: isort>=5.7; extra == "dev"
Requires-Dist: mypy>=0.910; extra == "dev"
Requires-Dist: pylint<3.3,>=2.9; extra == "dev"
Requires-Dist: pytest>=6.2; extra == "dev"
Requires-Dist: pytest-cov>=2.12; extra == "dev"
Requires-Dist: pytest-mock>=3.6; extra == "dev"
Requires-Dist: wheel>=0.37; extra == "dev"

# mrx-link-magic

IPython magic commands for MRX Link.

## Overview

`mrx-link-magic` provides IPython magic commands that enable DAG-based pipeline management within Jupyter notebooks. It integrates with the MRX Link ecosystem for AI/ML model development workflows.

## Installation

```bash
pip install mrx-link-magic
```

## Requirements

- Python 3.8 - 3.11
- IPython >= 7.0
- jupyter-server >= 2.4.0, < 3.0
- mrx-link-core >= 2.3.1, < 2.4

## Usage

### Loading the Extension

```python
%load_ext mrx_link_magic
```

### Available Magic Commands

| Command | Type | Description |
|---------|------|-------------|
| `%mrxlink_init_dag` | Line | Initialize the MRXLink DAG |
| `%%mrxlink_update_dag` | Cell | Update DAG structure |
| `%%mrxlink_execute_component` | Cell | Execute a component |
| `%mrxlink_execute_components` | Line | Execute multiple components |
| `%mrxlink_reference_dag` | Line | Get reference to DAG object |
| `%mrxlink_cache_dir` | Line | Set/get cache directory |
| `%mrxlink_clear_cache` | Line | Clear component cache |
| `%mrxlink_clear_all_cache` | Line | Clear all caches |
| `%mrxlink_use_diskcache` | Line | Enable/disable disk cache |
| `%mrxlink_logging_level` | Line | Set logging level |
| `%mrxlink_logging_filename` | Line | Set log file path |
| `%%mrxlink_set_parameters` | Cell | Set DAG parameters |
| `%%mrxlink_optimize_parameters` | Cell | Run hyperparameter optimization |

### Example

```python
# Load the extension
%load_ext mrx_link_magic

# Initialize DAG with server connection
%mrxlink_init_dag -b http://localhost:8888

# Execute a component
%%mrxlink_execute_component -i component_id
# Cell code here
```

## License

Proprietary - MakinaRocks Co., Ltd.
