Metadata-Version: 2.4
Name: java-magic
Version: 0.1.0
Summary: Magic cell para ejecutar Java de forma interactiva en Jupyter y Colab
Project-URL: Homepage, https://github.com/mgarcesdev/java-magic
Author-email: Manuel <manuegp1994@gmail.com>
Classifier: Framework :: IPython
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: ipython>=7.0.0
Requires-Dist: traitlets>=5.0.0
Description-Content-Type: text/markdown

Jupyter Java Magic (with Interactive Mode)
A lightweight Jupyter Notebook extension to write, compile, and execute Java code directly inside cells. It features automatic Google Colab setup and real-time interactive console input support (Scanner, System.in).

🛠️ Installation

```bash
pip install your-package-name
```

🚀 Quick Start

1. Load the extension
   In your first notebook cell, load the magic:

```python
%load_ext your_package_module_name
```

2. Run standard Java code
   You don't even need a main class wrapper for simple snippets; the extension handles it automatically:

```java
%%java
System.out.println("Hello from Jupyter!");
```

3. Run interactive Java code
   If the extension detects Scanner or System.in, it automatically switches to an interactive terminal loop:

```java
%%java
import java.util.Scanner;

Scanner scanner = new Scanner(System.in);
System.out.print("Enter your name: ");
String name = scanner.nextLine();
System.out.println("Hello, " + name + "!");
```

⚙️ Configuration
By default, generated .java files are kept in your directory. If you want them automatically deleted after execution, run:

```python
%config JavaMagics.remove_java_file = True
```

📄 License
MIT
