Skip to content

๐Ÿ Execute Python code in your browser using WebAssembly - YUV.PYTHON Terminal by Yuval Avidani

License

Notifications You must be signed in to change notification settings

hoodini/yuv-python-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

YUV.PY // Neural Nexus

YUV.PY Banner

โœจ Live Demo - Try it in your browser!

Welcome to YUV.PY! This is a futuristic, web-based Python Playground that lets you write and run Python code directly in your browser. No complex installations, no heavy backendโ€”just you and the code, powered by WebAssembly.

๐ŸŒŸ What is this?

YUV.PY is a "Terminal of the Future". It combines a beautiful, sci-fi interface with the power of Python.

  • Run Python Instantly: Type code and press Run. It happens right in your browser.
  • Learn & Experiment: Use our built-in templates to learn sorting, data structures, and more.
  • Build AI Visually: Use the Neural Network Builder to design AI models without writing boilerplate code.

๐Ÿš€ Quick Start (How to Run)

Method 1: The Easiest Way (VS Code)

If you are using Visual Studio Code:

  1. Install the "Live Server" extension.
  2. Right-click on index.html and choose "Open with Live Server".
  3. That's it! The app will open in your browser.

Method 2: The Developer Way (Node.js)

If you prefer using the terminal (command line):

  1. Install Node.js: Make sure you have Node.js installed.
  2. Open Terminal: Open your command prompt/terminal in this project folder.
  3. Start the Server: Run this command to start a local web server:
    npx serve .
  4. Open in Browser: The terminal will show a link (usually http://localhost:3000). Click it to open the app!

Note: Opening index.html directly (double-clicking it) might not work in some browsers due to security restrictions on WebAssembly. Please use a local server as described above.

๐ŸŽฎ How to Use

1. The Terminal

The main screen is your Python playground.

  • Write Code: Type Python in the editor.
  • Run: Click the โ–ถ RUN button (or press Ctrl+Enter).
  • Clear: Click the refresh icon to clear the output.

Main Interface

2. Using Templates

Stuck? Need inspiration?

  • Click the Menu icon (โ˜ฐ) on mobile, or check the sidebar on desktop.
  • Select a template like Fibonacci, Sorting, or Neural Networks.
  • The code will instantly load into the editor. Run it and see what happens!

๐Ÿ”ฐ Beginner's Guide: Your First Steps

New to Python or just exploring? Here is the perfect path to get started:

  1. Say Hello:
    • When the app opens, you'll see a "Hello World" script.
    • Just hit RUN! You'll see the computer greet you in the terminal below.
  2. Learn Loops:
    • Open the sidebar (or menu on mobile).
    • Click Fibonacci.
    • Hit RUN. You'll see how Python calculates numbers in a sequence!
  3. Build a Brain:
    • Click Neural Networks.
    • The interface will transform!
    • Click Generate & Run to train your first AI model right in the browser.

4. Neural Network Builder (NEW!)

Want to build AI?

  1. Select the Neural Networks template ๐Ÿง .
  2. You will see a glowing network visualization.
  3. The Builder Panel will open automatically.
  4. Customize:
    • Add/Remove layers.
    • Change layer sizes (how many "neurons").
    • Pick activation functions (ReLU, Sigmoid, etc.).
  5. Generate: Click Generate & Run.
    • Pure Python: Runs a simulation instantly in the browser.
    • PyTorch/TensorFlow: Generates professional code you can copy and use in real AI projects!

Neural Builder

5. Mobile Experience

YUV.PY is fully responsive. Code on your phone with a dedicated mobile view!

Mobile View

๐Ÿ“ฆ Features Summary

  • Zero Install: Powered by Pyodide (WebAssembly).
  • Responsive Design: Works on Desktop, Tablet, and Mobile.
  • Real Python: Supports standard library, math, random, and more.
  • Visual AI: Interactive particle system visualizing neural connections.

๐Ÿค Contributing

Feel free to fork this repository and submit Pull Requests. We love open source!


Created with โค๏ธ by Yuval Avidani - YUV.AI

About

๐Ÿ Execute Python code in your browser using WebAssembly - YUV.PYTHON Terminal by Yuval Avidani

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published